Tekvel Magic
Loading...
Searching...
No Matches
TestResult Class Reference

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
 

Detailed Description

Class for test result.

This class encapsulates the result of a test, including the test log and error log.

Constructor & Destructor Documentation

◆ __init__()

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.

Parameters
resultThe result of the test, an instance of the Result class.
test_logThe log of the test execution, which should be recorded in the test log.
errors_logThe error log, which should be recorded in the test log.

Member Function Documentation

◆ is_success()

def is_success (   self)

Checks if the test was successful.

This method returns True if the test result is SUCCESS.

Returns
True if the test result is SUCCESS, otherwise False.

Member Data Documentation

◆ errors_log

errors_log

◆ result

result

◆ test_log

test_log