com.eviware.soapui.model.testsuite
Interface TestRunner

All Known Subinterfaces:
LoadTestRunner, ProjectRunner, TestCaseRunner, TestSuiteRunner
All Known Implementing Classes:
AbstractMockTestRunner, AbstractTestRunner, MockLoadTestRunner, MockProjectRunner, MockTestRunner, MockTestSuiteRunner, WsdlLoadTestRunner, WsdlProjectRunner, WsdlTestCaseRunner, WsdlTestSuiteRunner

public interface TestRunner


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.
 TestRunContext getRunContext()
           
 long getStartTime()
          Returns the time this runner was last started
 TestRunner.Status getStatus()
          Gets the current status of this TestRunner
 TestRunnable getTestRunnable()
           
 long getTimeTaken()
          Returns the time taken by this runner since its last start
 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

getStatus

TestRunner.Status getStatus()
Gets the current status of this TestRunner


start

void start(boolean async)
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

Parameters:
async - flag controlling if TestCase should be run in seperate or callers thread.

getTimeTaken

long getTimeTaken()
Returns the time taken by this runner since its last start


getStartTime

long getStartTime()
Returns the time this runner was last started


waitUntilFinished

TestRunner.Status waitUntilFinished()
Blocks until this runner is finished, (returns directly if it already has finished)


cancel

void cancel(java.lang.String reason)
Cancels an ongoing test run with the specified reason


fail

void fail(java.lang.String reason)
Fails an ongoing test run with the specified reason


getReason

java.lang.String getReason()
Gets the reason why a running test was canceled or failed.


getRunContext

TestRunContext getRunContext()

getTestRunnable

TestRunnable getTestRunnable()


Copyright © 2005-2010 eviware.com. All Rights Reserved.