|
Jetif v1.8.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjetif.SuiteController
This class SuiteController represents a controller to control
a suite. This class is used only by a custom UI for the framework.
A custom UI should provides a suite spec to construct the suite controller,
and then call start() method of this class to run the suite.
| Constructor Summary | |
SuiteController(SuiteSpec spec)
Construct from a suite spec. |
|
| Method Summary | |
void |
interrupt()
Interrupt current running suite. |
boolean |
isRunning()
Test if this suite is running. |
TestListener |
setListener(TestListener listener)
Assign a test listener to this suite controller. |
boolean |
start()
Start the suite controlled by this controller. |
boolean |
waitCompleted(long timeout)
Wait this running suite completed or the specified milliseconds. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SuiteController(SuiteSpec spec)
throws FrameworkException
spec - the suite spec for this suite.
FrameworkException - if any error occurs.| Method Detail |
public TestListener setListener(TestListener listener)
listener - The new test listener
public boolean start()
public void interrupt()
interrupt() of the suite thread.
This method may do nothing if you catch the InterruptedException in your code
and do nothing in the catch statement.
public boolean waitCompleted(long timeout)
timeout - the maximum time to wait in milliseconds.
zero or negative value means wait till the suite completed.
public boolean isRunning()
|
Jetif v1.8.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||