TestBaseClass class. More...
Public Member Functions | |
__init__ (self, argv, desc, mode) | |
Provide input argument list, description and mode of the suite being executed. | |
override_cmds (self) | |
Can be used by importing suite to handle custom commands. | |
parseargs (self, argv, desc) | |
Parses the commandline arguments. | |
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 50 of file TestBase.py.
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 64 of file TestBase.py.
TestBase.TestBaseClass.override_cmds | ( | self | ) |
Can be used by importing suite to handle custom commands.
self | this object |
Definition at line 123 of file TestBase.py.
References TestBase.TestBaseClass.options.
TestBase.TestBaseClass.parseargs | ( | self, | |
argv, | |||
desc ) |
Parses the commandline arguments.
self | this object |
argv | argument list |
desc | description |
Definition at line 79 of file TestBase.py.
References TestBase.TestBaseClass.outfile.
TestBase.TestBaseClass.runtests | ( | self, | |
cmds ) |
Execute the tests.
self | this object |
cmds | test commands |
Definition at line 131 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().
TestBase.TestBaseClass.mode |
mode
Definition at line 75 of file TestBase.py.
TestBase.TestBaseClass.my_env |
os environment
Definition at line 72 of file TestBase.py.
Referenced by TestBase.TestBaseClass.runtests().
TestBase.TestBaseClass.options |
options
Definition at line 77 of file TestBase.py.
Referenced by TestBase.TestBaseClass.override_cmds(), and TestBase.TestBaseClass.runtests().
TestBase.TestBaseClass.outfile |
output file
Definition at line 76 of file TestBase.py.
Referenced by TestBase.TestBaseClass.parseargs().