TestBaseClass class. More...
| Public Member Functions | |
| def | __init__ (self, argv, desc, mode) | 
| Provide input argument list, description and mode of the suite being executed.  More... | |
| def | override_cmds (self) | 
| Can be used by importing suite to handle custom commands.  More... | |
| def | parseargs (self, argv, desc) | 
| Parses the commandline arguments.  More... | |
| def | runtests (self, cmds) | 
| Execute the tests.  More... | |
| Public Attributes | |
| mode | |
| mode  More... | |
| my_env | |
| os environment  More... | |
| options | |
| options  More... | |
| outfile | |
| output file  More... | |
TestBaseClass class.
Generic class for testing tools based on provided commands and test cases.
Definition at line 53 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 66 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 102 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 82 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 110 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:
 Here is the call graph for this function:| TestBase.TestBaseClass.mode | 
mode
Definition at line 78 of file TestBase.py.
| TestBase.TestBaseClass.my_env | 
os environment
Definition at line 75 of file TestBase.py.
Referenced by TestBase.TestBaseClass.runtests().
| TestBase.TestBaseClass.options | 
options
Definition at line 80 of file TestBase.py.
Referenced by TestBase.TestBaseClass.override_cmds(), and TestBase.TestBaseClass.runtests().
| TestBase.TestBaseClass.outfile | 
output file
Definition at line 79 of file TestBase.py.
Referenced by TestBase.TestBaseClass.parseargs().