public abstract class AbstractTestCaseRunner<T extends TestRunnable,T2 extends WsdlTestRunContext> extends AbstractTestRunner<T,T2> implements TestCaseRunner
TestRunner.Status| Constructor and Description | 
|---|
| AbstractTestCaseRunner(T modelItem,
                      StringToObjectMap properties) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | clear(T2 runContext) | 
| void | enforceMaxResults(long maxResults) | 
| protected abstract void | failTestRunnableOnErrors(T2 runContext) | 
| protected void | fillInTestRunnableListeners() | 
| int | getGotoStepIndex() | 
| int | getResultCount() | 
| 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(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(String reason) | 
| void | onFail(String reason) | 
| protected boolean | runBeforeSteps(TestStep testStep) | 
| 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(String name)Runs the specified TestStep and returns the result | 
| void | setResultCount(int resultCount) | 
| void | setStartStep(int startStep) | 
cancel, createContext, fail, getError, getId, getReason, getRunContext, getStartTime, getStatus, getTestRunnable, getThread, isCanceled, isFailed, isRunning, run, setError, setStartTime, setStatus, setTimeTaken, start, startTimeoutTimer, waitUntilFinishedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRunContextcancel, fail, getReason, getStartTime, getStatus, getTestRunnable, isRunning, start, waitUntilFinishedpublic AbstractTestCaseRunner(T modelItem, StringToObjectMap properties)
public int getGotoStepIndex()
public int getStartStep()
public void setStartStep(int startStep)
public void onCancel(String reason)
onCancel in class AbstractTestRunner<T extends TestRunnable,T2 extends WsdlTestRunContext>public void onFail(String reason)
onFail in class AbstractTestRunner<T extends TestRunnable,T2 extends WsdlTestRunContext>public void internalRun(T2 runContext) throws Exception
internalRun in class AbstractTestRunner<T extends TestRunnable,T2 extends WsdlTestRunContext>Exceptionprotected abstract void failTestRunnableOnErrors(T2 runContext)
protected abstract int runCurrentTestStep(T2 runContext, int currentStepIndex) throws Exception
runContext - currentStepIndex - Exceptionprotected void internalFinally(T2 runContext)
internalFinally in class AbstractTestRunner<T extends TestRunnable,T2 extends WsdlTestRunContext>protected void runTearDownScripts(T2 runContext) throws Exception
Exceptionprotected void clear(T2 runContext)
protected void fillInTestRunnableListeners()
public TestStepResult runTestStepByName(String name)
TestCaseRunnerrunTestStepByName in interface TestCaseRunnerpublic TestStepResult runTestStep(TestStep testStep)
public TestStepResult runTestStep(TestStep testStep, boolean discard, boolean process)
protected boolean runBeforeSteps(TestStep testStep)
protected void notifyAfterRun()
protected void notifyBeforeRun()
public abstract WsdlTestCase getTestCase()
TestCaseRunnergetTestCase in interface TestCaseRunnerpublic long getTimeTaken()
TestRunnergetTimeTaken in interface TestRunnergetTimeTaken in class AbstractTestRunner<T extends TestRunnable,T2 extends WsdlTestRunContext>public List<TestStepResult> getResults()
TestCaseRunnergetResults in interface TestCaseRunnerpublic void setResultCount(int resultCount)
public int getResultCount()
public void gotoStep(int index)
TestCaseRunnergotoStep in interface TestCaseRunnerpublic void enforceMaxResults(long maxResults)
public void gotoStepByName(String stepName)
TestCaseRunnergotoStepByName in interface TestCaseRunnerCopyright © 2019. All Rights Reserved.