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, waitUntilFinished
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRunContext
cancel, fail, getReason, getStartTime, getStatus, getTestRunnable, isRunning, start, waitUntilFinished
public 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>
Exception
protected abstract void failTestRunnableOnErrors(T2 runContext)
protected abstract int runCurrentTestStep(T2 runContext, int currentStepIndex) throws Exception
runContext
- currentStepIndex
- Exception
protected void internalFinally(T2 runContext)
internalFinally
in class AbstractTestRunner<T extends TestRunnable,T2 extends WsdlTestRunContext>
protected void runTearDownScripts(T2 runContext) throws Exception
Exception
protected void clear(T2 runContext)
protected void fillInTestRunnableListeners()
public TestStepResult runTestStepByName(String name)
TestCaseRunner
runTestStepByName
in interface TestCaseRunner
public 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()
TestCaseRunner
getTestCase
in interface TestCaseRunner
public long getTimeTaken()
TestRunner
getTimeTaken
in interface TestRunner
getTimeTaken
in class AbstractTestRunner<T extends TestRunnable,T2 extends WsdlTestRunContext>
public List<TestStepResult> getResults()
TestCaseRunner
getResults
in interface TestCaseRunner
public void setResultCount(int resultCount)
public int getResultCount()
public void gotoStep(int index)
TestCaseRunner
gotoStep
in interface TestCaseRunner
public void enforceMaxResults(long maxResults)
public void gotoStepByName(String stepName)
TestCaseRunner
gotoStepByName
in interface TestCaseRunner
Copyright © 2019. All Rights Reserved.