TestON will initiate the specified test. The main tasks are : *
Initiate the required Component handles for the test. * Create Log file
Handles.
|
__init__(self,
options)
Initialise the component handles specified in the topology file of
the specified test. |
source code
|
|
|
configparser(self)
It will parse the config file (teston.cfg) and return as dictionary |
source code
|
|
|
componentInit(self,
component)
This method will initialize specified component |
source code
|
|
|
run(self)
The Execution of the test script's cases listed in the Test params
file will be done here. |
source code
|
|
|
|
|
runStep(self,
stepList,
code,
testCaseNumber) |
source code
|
|
|
|
|
|
|
cleanup(self)
Print a summary of the current test's results then attempt to release
all the component handles and the close opened file handles. |
source code
|
|
|
pause(self)
This function will pause the test's execution, and will continue
after user provide 'resume' command. |
source code
|
|
|
onfail(self,
*components)
When test step failed, calling all the components onfail. |
source code
|
|
|
getDriverPath(self,
driverName)
Based on the component 'type' specified in the params , this method
will find the absolute path , by recursively searching the name of
the component. |
source code
|
|
|
step(self,
stepDesc)
The step information of the test-case will append to the logs. |
source code
|
|
|
case(self,
testCaseName)
Test's each test-case information will append to the logs. |
source code
|
|
|
testDesc(self,
description)
Test description will append to the logs. |
source code
|
|
|
_getTest(self)
This method will parse the test script to find required test
information. |
source code
|
|
|
response_parser(self,
response,
return_format)
It will load the default response parser |
source code
|
|
|
response_to_dict(self,
response,
return_format) |
source code
|
|
|
dict_to_return_format(self,
response,
return_format,
response_dict) |
source code
|
|
|
|
|
|