public interface TestRunner
Modifiers | Name | Description |
---|---|---|
enum |
TestRunner.Status |
Type Params | Return Type | Name and description |
---|---|---|
|
public void |
cancel(java.lang.String reason) Cancels an ongoing test run with the specified reason |
|
public void |
fail(java.lang.String reason) Fails an ongoing test run with the specified reason |
|
public java.lang.String |
getReason() Gets the reason why a running test was canceled or failed. |
|
public TestRunContext |
getRunContext() |
|
public long |
getStartTime() Returns the time this runner was last started |
|
public Submit.Status |
getStatus() Gets the current status of this TestRunner |
|
public TestRunnable |
getTestRunnable() |
|
public long |
getTimeTaken() Returns the time taken by this runner since its last start |
|
public boolean |
isRunning() |
|
public boolean |
shouldSaveMetrics() |
|
public void |
start(boolean async) Starts running this TestRunners TestCase. |
|
public Submit.Status |
waitUntilFinished() Blocks until this runner is finished, (returns directly if it already has finished) |
Cancels an ongoing test run with the specified reason
Fails an ongoing test run with the specified reason
Gets the reason why a running test was canceled or failed.
Returns the time this runner was last started
Gets the current status of this TestRunner
Returns the time taken by this runner since its last start
Starts running this TestRunners TestCase. If the async flag is set to true, this method will return directly, otherwise it will block until the TestCase is finished
async
- flag controlling if TestCase should be run in a separate thread or
the caller's thread.Blocks until this runner is finished, (returns directly if it already has finished)