Package TestON :: Package core :: Module teston :: Class TestON
[hide private]
[frames] | no frames]

Class TestON

source code

TestON will initiate the specified test. The main tasks are : * Initiate the required Component handles for the test. * Create Log file Handles.

Instance Methods [hide private]
 
__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 (ofa.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
 
runCase(self, testCaseNumber) source code
 
runStep(self, stepList, code, testCaseNumber) source code
 
addCaseHeader(self) source code
 
addCaseFooter(self) source code
 
cleanup(self)
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
 
exit(self) source code
Method Details [hide private]

run(self)

source code 

The Execution of the test script's cases listed in the Test params file will be done here. And Update each test case result. This method will return TRUE if it executed all the test cases successfully, else will retun FALSE

cleanup(self)

source code 

Release all the component handles and the close opened file handles. This will return TRUE if all the component handles and log handles closed properly, else return FALSE