mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +08:00
82 lines
1.0 KiB
Python
82 lines
1.0 KiB
Python
""" failure type exceptions
|
|
these exceptions will mark test as failure
|
|
"""
|
|
|
|
|
|
class MyBaseFailure(Exception):
|
|
pass
|
|
|
|
|
|
class ParseTestsFailure(MyBaseFailure):
|
|
pass
|
|
|
|
|
|
class ValidationFailure(MyBaseFailure):
|
|
pass
|
|
|
|
|
|
class ExtractFailure(MyBaseFailure):
|
|
pass
|
|
|
|
|
|
class SetupHooksFailure(MyBaseFailure):
|
|
pass
|
|
|
|
|
|
class TeardownHooksFailure(MyBaseFailure):
|
|
pass
|
|
|
|
|
|
""" error type exceptions
|
|
these exceptions will mark test as error
|
|
"""
|
|
|
|
|
|
class MyBaseError(Exception):
|
|
pass
|
|
|
|
|
|
class FileFormatError(MyBaseError):
|
|
pass
|
|
|
|
|
|
class ParamsError(MyBaseError):
|
|
pass
|
|
|
|
|
|
class NotFoundError(MyBaseError):
|
|
pass
|
|
|
|
|
|
class FileNotFound(FileNotFoundError, NotFoundError):
|
|
pass
|
|
|
|
|
|
class FunctionNotFound(NotFoundError):
|
|
pass
|
|
|
|
|
|
class VariableNotFound(NotFoundError):
|
|
pass
|
|
|
|
|
|
class EnvNotFound(NotFoundError):
|
|
pass
|
|
|
|
|
|
class CSVNotFound(NotFoundError):
|
|
pass
|
|
|
|
|
|
class ApiNotFound(NotFoundError):
|
|
pass
|
|
|
|
|
|
class TestcaseNotFound(NotFoundError):
|
|
pass
|
|
|
|
|
|
class SummaryEmpty(MyBaseError):
|
|
""" test result summary data is empty
|
|
"""
|