|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--TestRunner
Class implementing a graphical test runner
Defined in TestRunner.js
Field Summary | |
Object |
name
|
Object |
testGroupPrototype
|
Object |
testGroupRunners
|
Object |
testMapper
|
Object |
testProcedurePrototype
|
Object |
testProcedures
|
Object |
testReport
|
Constructor Summary | |
TestRunner(<String> name)
Create a test runner using a Smart Card Shell outline for navigation |
Method Summary | |
void
|
actionListener(<Object> source, <String> actionName)
Event listener for actions selected from context menu |
void
|
addTest(<String> name, <Object> listener)
Add test to test mapper, which maps test unique id to listening object |
void
|
addTestGroup(<TestGroup> testGroup)
Add a test group to the test runner |
void
|
addTestGroupFromXML(<String> file, <Object> parameter)
Create test group from XML file and add to test runner |
void
|
addTestProcedure(<TestProcedure> proc)
Add a test procedure constructor to the list |
void
|
addTestProcedureFromXML(<String> file, <Object> parameter)
Create test procedure from XML file and add to test runner |
void
|
clearResults()
Clear result of last test run |
void
|
collapseAll()
Collapse all test groups |
Object
|
enable(<String> name, <Boolean> state)
Enable or disable test |
void
|
expandAll()
Expand all test groups |
Object
|
getFailedCounter()
|
Object
|
getLog()
|
TestProcedure
|
getTestProcedure(<String> name)
Return constructor of test procedure |
void
|
hasFailed(<String> name, <String> log)
hasFailed Listener |
void
|
hasPassed(<String> name, <String> log)
hasPassed Listener |
boolean
|
isEnabled(<String> name)
isEnabled query from TestGroup runner |
void
|
report(fn)
Write test report |
void
|
run()
Run all test groups |
void
|
setReportDirectory(<String> dir)
Set directory to write reports |
Field Detail |
Object name
Object testGroupPrototype
Object testGroupRunners
Object testMapper
Object testProcedurePrototype
Object testProcedures
Object testReport
Constructor Detail |
TestRunner(<String> name)
name
- the test suite name
Method Detail |
void actionListener(<Object> source, <String> actionName)
source
- the outline node for which the action was invoked
actionName
- the name of the action selected
void addTest(<String> name, <Object> listener)
name
- the unique test name
listener
- the listener object implementing the clearResults(), enable(), isEnabled(), hasPassed() and hasFailed() methods
void addTestGroup(<TestGroup> testGroup)
This call will iterate through all test cases and locate used procedures and steps.
testGroup
- the test group object
void addTestGroupFromXML(<String> file, <Object> parameter)
file
- the file name containing the test group
parameter
- the parameter object
void addTestProcedure(<TestProcedure> proc)
Use the getName() method to obtain the test procedure name
proc
- the test procedure object
void addTestProcedureFromXML(<String> file, <Object> parameter)
file
- the file name containing the test procedure
parameter
- the parameter object
void clearResults()
void collapseAll()
Object enable(<String> name, <Boolean> state)
name
- the unique test name
state
- the enable / disable state
void expandAll()
Object getFailedCounter()
Object getLog()
TestProcedure getTestProcedure(<String> name)
name
- the name of the test procedure
void hasFailed(<String> name, <String> log)
name
- the unique test name
log
- the test log
void hasPassed(<String> name, <String> log)
name
- the unique test name
log
- the test log
boolean isEnabled(<String> name)
name
- the unique test name
void report(fn)
void run()
void setReportDirectory(<String> dir)
dir
- the directory to store reports
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |