|
Tekvel Magic
|
Class for test result. More...
Public Member Functions | |
| def | __init__ (self, result, test_log=[], errors_log=[]) |
| Initializes the TestResult object. More... | |
| def | is_success (self) |
| Checks if the test was successful. More... | |
Public Attributes | |
| result | |
| test_log | |
| errors_log | |
Class for test result.
This class encapsulates the result of a test, including the test log and error log.
| def __init__ | ( | self, | |
| result, | |||
test_log = [], |
|||
errors_log = [] |
|||
| ) |
Initializes the TestResult object.
This constructor initializes the TestResult object with the result, test log, and error log.
| result | The result of the test, an instance of the Result class. |
| test_log | The log of the test execution, which should be recorded in the test log. |
| errors_log | The error log, which should be recorded in the test log. |
| def is_success | ( | self | ) |
Checks if the test was successful.
This method returns True if the test result is SUCCESS.
| errors_log |
| result |
| test_log |