| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- class AutomationFrameworkException(Exception):
- """自动化框架基础异常"""
- pass
- class ElementNotFoundException(AutomationFrameworkException):
- """元素未找到异常"""
- def __init__(self, message="元素未找到"):
- super().__init__(message)
- class ElementNotInteractableException(AutomationFrameworkException):
- """元素不可交互异常"""
- def __init__(self, message="元素不可交互"):
- super().__init__(message)
- class ElementNotVisibleException(AutomationFrameworkException):
- """元素不可见异常"""
- def __init__(self, message="元素不可见"):
- super().__init__(message)
- class TimeoutException(AutomationFrameworkException):
- """超时异常"""
- def __init__(self, message="操作超时"):
- super().__init__(message)
- class ConfigurationException(AutomationFrameworkException):
- """配置异常"""
- def __init__(self, message="配置错误"):
- super().__init__(message)
- class DatabaseException(AutomationFrameworkException):
- """数据库异常"""
- def __init__(self, message="数据库操作错误"):
- super().__init__(message)
- class APIException(AutomationFrameworkException):
- """API异常"""
- def __init__(self, message="API调用错误"):
- super().__init__(message)
- class TestDataException(AutomationFrameworkException):
- """测试数据异常"""
- def __init__(self, message="测试数据错误"):
- super().__init__(message)
- class SecurityTestException(AutomationFrameworkException):
- """安全测试异常"""
- def __init__(self, message="安全测试错误"):
- super().__init__(message)
- class PerformanceTestException(AutomationFrameworkException):
- """性能测试异常"""
- def __init__(self, message="性能测试错误"):
- super().__init__(message)
|