com.eviware.soapui.model.testsuite
Interface TestRunner

All Known Implementing Classes:
MockTestRunner, WsdlTestCaseRunner

public interface TestRunner

Runs a TestCase

Author:
Ole.Matzura

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

getTestCase

TestCase getTestCase()
Gets the TestCase being run

Returns:
the TestCase being run

getResults

java.util.List<TestStepResult> getResults()
Gets the accumulated results so far; each TestStep returns a TestStepResult when running.

Returns:
the accumulated results so far

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.


gotoStep

void gotoStep(int index)
Transfers execution of this TestRunner to the TestStep with the specified index in the TestCase


gotoStepByName

void gotoStepByName(java.lang.String stepName)
Transfers execution of this TestRunner to the TestStep with the specified name in the TestCase


runTestStepByName

TestStepResult runTestStepByName(java.lang.String name)
Runs the specified TestStep and returns the result



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