|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TestRunner
Runs a TestCase
Nested Class Summary | |
---|---|
static class |
TestRunner.Status
|
Method Summary | |
---|---|
void |
cancel(java.lang.String reason)
Cancels an ongoing test run with the specified reason |
void |
fail(java.lang.String reason)
Fails an ongoing test run with the specified reason |
java.lang.String |
getReason()
Gets the reason why a running test was canceled or failed. |
java.util.List<TestStepResult> |
getResults()
Gets the accumulated results so far; each TestStep returns a TestStepResult when running. |
long |
getStartTime()
Returns the time this runner was last started |
TestRunner.Status |
getStatus()
Gets the current status of this TestRunner |
TestCase |
getTestCase()
Gets the TestCase being run |
long |
getTimeTaken()
Returns the time taken by this runner since its last start |
void |
gotoStep(int index)
Transfers execution of this TestRunner to the TestStep with the specified index in the TestCase |
void |
gotoStepByName(java.lang.String stepName)
Transfers execution of this TestRunner to the TestStep with the specified name in the TestCase |
TestStepResult |
runTestStepByName(java.lang.String name)
Runs the specified TestStep and returns the result |
void |
start(boolean async)
Starts running this TestRunners TestCase. |
TestRunner.Status |
waitUntilFinished()
Blocks until this runner is finished, (returns directly if it already has finished) |
Method Detail |
---|
TestCase getTestCase()
java.util.List<TestStepResult> getResults()
TestRunner.Status getStatus()
void start(boolean async)
async
- flag controlling if TestCase should be run in seperate or callers thread.long getTimeTaken()
long getStartTime()
TestRunner.Status waitUntilFinished()
void cancel(java.lang.String reason)
void fail(java.lang.String reason)
java.lang.String getReason()
void gotoStep(int index)
void gotoStepByName(java.lang.String stepName)
TestStepResult runTestStepByName(java.lang.String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |