TestBaseClass class. More...
Public Member Functions | |
| def | __init__ (self, argv, desc, mode) | 
| Provide input argument list, description and mode of the suite being executed.   | |
| def | override_cmds (self) | 
| Can be used by importing suite to handle custom commands.   | |
| def | parseargs (self, argv, desc) | 
| Parses the commandline arguments.   | |
| def | runtests (self, cmds) | 
| Execute the tests.   | |
Public Attributes | |
| mode | |
| mode   | |
| my_env | |
| os environment   | |
| options | |
| options   | |
| outfile | |
| output file   | |
TestBaseClass class.
Generic class for testing tools based on provided commands and test cases.
Definition at line 61 of file TestBase.py.
| def TestBase.TestBaseClass.__init__ | ( | self, | |
| argv, | |||
| desc, | |||
| mode | |||
| ) | 
Provide input argument list, description and mode of the suite being executed.
| self | this object | 
| argv | argument list | 
| desc | description | 
| mode | test mode | 
Definition at line 75 of file TestBase.py.
| def TestBase.TestBaseClass.override_cmds | ( | self | ) | 
Can be used by importing suite to handle custom commands.
| self | this object | 
Definition at line 134 of file TestBase.py.
References TestBase.TestBaseClass.options.
| def TestBase.TestBaseClass.parseargs | ( | self, | |
| argv, | |||
| desc | |||
| ) | 
Parses the commandline arguments.
| self | this object | 
| argv | argument list | 
| desc | description | 
Definition at line 90 of file TestBase.py.
References TestBase.TestBaseClass.outfile.
| def TestBase.TestBaseClass.runtests | ( | self, | |
| cmds | |||
| ) | 
Execute the tests.
| self | this object | 
| cmds | test commands | 
Definition at line 142 of file TestBase.py.
References TestBase.TestBaseClass.my_env, TestBase.TestBaseClass.options, TestBase.print_case_in_file(), TestBase.print_cmds(), and TestBase.print_failed_cases().
 Here is the call graph for this function:| TestBase.TestBaseClass.mode | 
mode
Definition at line 86 of file TestBase.py.
| TestBase.TestBaseClass.my_env | 
os environment
Definition at line 83 of file TestBase.py.
Referenced by TestBase.TestBaseClass.runtests().
| TestBase.TestBaseClass.options | 
options
Definition at line 88 of file TestBase.py.
Referenced by TestBase.TestBaseClass.override_cmds(), and TestBase.TestBaseClass.runtests().
| TestBase.TestBaseClass.outfile | 
output file
Definition at line 87 of file TestBase.py.
Referenced by TestBase.TestBaseClass.parseargs().