com.eviware.soapui.impl.wsdl.testcase
Class WsdlTestCaseRunner

java.lang.Object
  extended by com.eviware.soapui.impl.wsdl.support.AbstractTestRunner<WsdlTestCase,WsdlTestRunContext>
      extended by com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner
All Implemented Interfaces:
TestCaseRunner, TestRunner, java.lang.Runnable

public class WsdlTestCaseRunner
extends AbstractTestRunner<WsdlTestCase,WsdlTestRunContext>
implements TestCaseRunner

WSDL TestCase Runner - runs all steps in a testcase and collects performance data

Author:
Ole.Matzura

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.eviware.soapui.model.testsuite.TestRunner
TestRunner.Status
 
Constructor Summary
WsdlTestCaseRunner(WsdlTestCase testCase, StringToObjectMap properties)
           
 
Method Summary
 WsdlTestRunContext createContext(StringToObjectMap properties)
           
 void enforceMaxResults(long maxResults)
           
 int getResultCount()
           
 java.util.List<TestStepResult> getResults()
          Gets the accumulated results so far; each TestStep returns a TestStepResult when running.
 WsdlTestCase 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
protected  void internalFinally(WsdlTestRunContext runContext)
           
 void internalRun(WsdlTestRunContext runContext)
           
 void onCancel(java.lang.String reason)
           
 void onFail(java.lang.String reason)
           
 TestStepResult runTestStep(TestStep testStep)
           
 TestStepResult runTestStep(TestStep testStep, boolean discard, boolean process)
           
 TestStepResult runTestStepByName(java.lang.String name)
          Runs the specified TestStep and returns the result
 
Methods inherited from class com.eviware.soapui.impl.wsdl.support.AbstractTestRunner
cancel, fail, getError, getId, getReason, getRunContext, getStartTime, getStatus, getTestRunnable, getThread, isCanceled, isFailed, isRunning, run, setError, setStartTime, setStatus, setTimeTaken, start, startTimeoutTimer, waitUntilFinished
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.eviware.soapui.model.testsuite.TestCaseRunner
getRunContext
 
Methods inherited from interface com.eviware.soapui.model.testsuite.TestRunner
cancel, fail, getReason, getStartTime, getStatus, getTestRunnable, start, waitUntilFinished
 

Constructor Detail

WsdlTestCaseRunner

public WsdlTestCaseRunner(WsdlTestCase testCase,
                          StringToObjectMap properties)
Method Detail

createContext

public WsdlTestRunContext createContext(StringToObjectMap properties)
Specified by:
createContext in class AbstractTestRunner<WsdlTestCase,WsdlTestRunContext>

onCancel

public void onCancel(java.lang.String reason)
Overrides:
onCancel in class AbstractTestRunner<WsdlTestCase,WsdlTestRunContext>

onFail

public void onFail(java.lang.String reason)
Overrides:
onFail in class AbstractTestRunner<WsdlTestCase,WsdlTestRunContext>

internalRun

public void internalRun(WsdlTestRunContext runContext)
                 throws java.lang.Exception
Specified by:
internalRun in class AbstractTestRunner<WsdlTestCase,WsdlTestRunContext>
Throws:
java.lang.Exception

internalFinally

protected void internalFinally(WsdlTestRunContext runContext)
Specified by:
internalFinally in class AbstractTestRunner<WsdlTestCase,WsdlTestRunContext>

runTestStepByName

public TestStepResult runTestStepByName(java.lang.String name)
Description copied from interface: TestCaseRunner
Runs the specified TestStep and returns the result

Specified by:
runTestStepByName in interface TestCaseRunner

runTestStep

public TestStepResult runTestStep(TestStep testStep)

runTestStep

public TestStepResult runTestStep(TestStep testStep,
                                  boolean discard,
                                  boolean process)

getTestCase

public WsdlTestCase getTestCase()
Description copied from interface: TestCaseRunner
Gets the TestCase being run

Specified by:
getTestCase in interface TestCaseRunner
Returns:
the TestCase being run

getTimeTaken

public long getTimeTaken()
Description copied from interface: TestRunner
Returns the time taken by this runner since its last start

Specified by:
getTimeTaken in interface TestRunner
Overrides:
getTimeTaken in class AbstractTestRunner<WsdlTestCase,WsdlTestRunContext>

getResults

public java.util.List<TestStepResult> getResults()
Description copied from interface: TestCaseRunner
Gets the accumulated results so far; each TestStep returns a TestStepResult when running.

Specified by:
getResults in interface TestCaseRunner
Returns:
the accumulated results so far

getResultCount

public int getResultCount()

gotoStep

public void gotoStep(int index)
Description copied from interface: TestCaseRunner
Transfers execution of this TestRunner to the TestStep with the specified index in the TestCase

Specified by:
gotoStep in interface TestCaseRunner

enforceMaxResults

public void enforceMaxResults(long maxResults)

gotoStepByName

public void gotoStepByName(java.lang.String stepName)
Description copied from interface: TestCaseRunner
Transfers execution of this TestRunner to the TestStep with the specified name in the TestCase

Specified by:
gotoStepByName in interface TestCaseRunner


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