com.eviware.soapui.impl.wsdl.panels.support
Class MockTestRunner

java.lang.Object
  extended by com.eviware.soapui.impl.wsdl.panels.support.AbstractMockTestRunner<WsdlTestCase>
      extended by com.eviware.soapui.impl.wsdl.panels.support.MockTestRunner
All Implemented Interfaces:
TestCaseRunner, TestRunner

public class MockTestRunner
extends AbstractMockTestRunner<WsdlTestCase>
implements TestCaseRunner

Dummy TestRunner used when executing TestSteps one by one

Author:
ole.matzura

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.eviware.soapui.model.testsuite.TestRunner
TestRunner.Status
 
Constructor Summary
MockTestRunner(WsdlTestCase testCase)
           
MockTestRunner(WsdlTestCase testCase, org.apache.log4j.Logger logger)
           
 
Method Summary
 java.util.List<TestStepResult> getResults()
          Gets the accumulated results so far; each TestStep returns a TestStepResult when running.
 TestCaseRunContext getRunContext()
          Returns the context used by this runner
 WsdlTestCase getTestCase()
          Gets the TestCase being run
 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 runTestStep(TestStep testStep)
           
 TestStepResult runTestStepByName(java.lang.String name)
          Runs the specified TestStep and returns the result
 void setMockRunContext(MockTestRunContext mockRunContext)
           
 
Methods inherited from class com.eviware.soapui.impl.wsdl.panels.support.AbstractMockTestRunner
cancel, fail, getLog, getReason, getStartTime, getStatus, getTestRunnable, getTimeTaken, setRunContext, start, 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.TestRunner
cancel, fail, getReason, getStartTime, getStatus, getTestRunnable, getTimeTaken, start, waitUntilFinished
 

Constructor Detail

MockTestRunner

public MockTestRunner(WsdlTestCase testCase)

MockTestRunner

public MockTestRunner(WsdlTestCase testCase,
                      org.apache.log4j.Logger logger)
Method Detail

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

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

getRunContext

public TestCaseRunContext getRunContext()
Description copied from interface: TestCaseRunner
Returns the context used by this runner

Specified by:
getRunContext in interface TestCaseRunner
Specified by:
getRunContext in interface TestRunner
Overrides:
getRunContext in class AbstractMockTestRunner<WsdlTestCase>

runTestStep

public TestStepResult runTestStep(TestStep testStep)

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

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

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

setMockRunContext

public void setMockRunContext(MockTestRunContext mockRunContext)


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