|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.eviware.soapui.impl.wsdl.support.AbstractTestRunner<T,T2>
com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner<T,T2>
public abstract class AbstractTestCaseRunner<T extends TestRunnable,T2 extends WsdlTestRunContext>
Abstract runner class - runs all steps in a TestCase or a SecurityTest and collects performance data
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.eviware.soapui.model.testsuite.TestRunner |
|---|
TestRunner.Status |
| Constructor Summary | |
|---|---|
AbstractTestCaseRunner(T modelItem,
StringToObjectMap properties)
|
|
| Method Summary | |
|---|---|
protected void |
clear(T2 runContext)
|
void |
enforceMaxResults(long maxResults)
|
protected abstract void |
failTestRunnableOnErrors(T2 runContext)
|
protected void |
fillInTestRunnableListeners()
|
int |
getGotoStepIndex()
|
int |
getResultCount()
|
java.util.List<TestStepResult> |
getResults()
Gets the accumulated results so far; each TestStep returns a TestStepResult when running. |
int |
getStartStep()
|
abstract 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(T2 runContext)
|
void |
internalRun(T2 runContext)
|
protected void |
notifyAfterRun()
|
protected void |
notifyBeforeRun()
|
void |
onCancel(java.lang.String reason)
|
void |
onFail(java.lang.String reason)
|
protected abstract int |
runCurrentTestStep(T2 runContext,
int currentStepIndex)
Runs current testStep , returns index of the next step to be run and -2 in case execution should break if canceled |
protected void |
runSetupScripts(T2 runContext)
|
protected void |
runTearDownScripts(T2 runContext)
|
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 |
void |
setResultCount(int resultCount)
|
void |
setStartStep(int startStep)
|
| Methods inherited from class com.eviware.soapui.impl.wsdl.support.AbstractTestRunner |
|---|
cancel, createContext, 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, isRunning, start, waitUntilFinished |
| Constructor Detail |
|---|
public AbstractTestCaseRunner(T modelItem,
StringToObjectMap properties)
| Method Detail |
|---|
public int getGotoStepIndex()
public int getStartStep()
public void setStartStep(int startStep)
public void onCancel(java.lang.String reason)
onCancel in class AbstractTestRunner<T extends TestRunnable,T2 extends WsdlTestRunContext>public void onFail(java.lang.String reason)
onFail in class AbstractTestRunner<T extends TestRunnable,T2 extends WsdlTestRunContext>
public void internalRun(T2 runContext)
throws java.lang.Exception
internalRun in class AbstractTestRunner<T extends TestRunnable,T2 extends WsdlTestRunContext>java.lang.Exceptionprotected abstract void failTestRunnableOnErrors(T2 runContext)
protected abstract int runCurrentTestStep(T2 runContext,
int currentStepIndex)
throws java.lang.Exception
runContext - currentStepIndex -
java.lang.Exceptionprotected void internalFinally(T2 runContext)
internalFinally in class AbstractTestRunner<T extends TestRunnable,T2 extends WsdlTestRunContext>
protected void runSetupScripts(T2 runContext)
throws java.lang.Exception
java.lang.Exception
protected void runTearDownScripts(T2 runContext)
throws java.lang.Exception
java.lang.Exceptionprotected void clear(T2 runContext)
protected void fillInTestRunnableListeners()
public TestStepResult runTestStepByName(java.lang.String name)
TestCaseRunner
runTestStepByName in interface TestCaseRunnerpublic TestStepResult runTestStep(TestStep testStep)
public TestStepResult runTestStep(TestStep testStep,
boolean discard,
boolean process)
protected void notifyAfterRun()
protected void notifyBeforeRun()
public abstract WsdlTestCase getTestCase()
TestCaseRunner
getTestCase in interface TestCaseRunnerpublic long getTimeTaken()
TestRunner
getTimeTaken in interface TestRunnergetTimeTaken in class AbstractTestRunner<T extends TestRunnable,T2 extends WsdlTestRunContext>public java.util.List<TestStepResult> getResults()
TestCaseRunner
getResults in interface TestCaseRunnerpublic void setResultCount(int resultCount)
public int getResultCount()
public void gotoStep(int index)
TestCaseRunner
gotoStep in interface TestCaseRunnerpublic void enforceMaxResults(long maxResults)
public void gotoStepByName(java.lang.String stepName)
TestCaseRunner
gotoStepByName in interface TestCaseRunner
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||