|
||||||||||
| 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>
public abstract class AbstractTestRunner<T extends TestRunnable,T2 extends TestRunContext>
WSDL TestCase Runner - runs all steps in a testcase and collects performance data
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.eviware.soapui.model.testsuite.TestRunner |
|---|
TestRunner.Status |
| Constructor Summary | |
|---|---|
AbstractTestRunner(T modelItem,
StringToObjectMap properties)
|
|
| Method Summary | |
|---|---|
void |
cancel(java.lang.String reason)
Cancels an ongoing test run with the specified reason |
abstract T2 |
createContext(StringToObjectMap properties)
|
void |
fail(java.lang.String reason)
Fails an ongoing test run with the specified reason |
java.lang.Throwable |
getError()
|
int |
getId()
|
java.lang.String |
getReason()
Gets the reason why a running test was canceled or failed. |
T2 |
getRunContext()
|
long |
getStartTime()
Returns the time this runner was last started |
TestRunner.Status |
getStatus()
Gets the current status of this TestRunner |
T |
getTestRunnable()
|
java.lang.Thread |
getThread()
|
long |
getTimeTaken()
Returns the time taken by this runner since its last start |
protected abstract void |
internalFinally(T2 runContext2)
|
protected abstract void |
internalRun(T2 runContext2)
|
boolean |
isCanceled()
|
boolean |
isFailed()
|
boolean |
isRunning()
|
protected void |
onCancel(java.lang.String reason2)
|
protected void |
onFail(java.lang.String reason)
|
void |
run()
|
protected void |
setError(java.lang.Throwable error)
|
protected void |
setStartTime()
|
protected void |
setStatus(TestRunner.Status status)
|
protected void |
setTimeTaken()
|
void |
start(boolean async)
Starts running this TestRunners TestCase. |
protected void |
startTimeoutTimer(long timeout)
|
TestRunner.Status |
waitUntilFinished()
Blocks until this runner is finished, (returns directly if it already has finished) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractTestRunner(T modelItem,
StringToObjectMap properties)
| Method Detail |
|---|
public abstract T2 createContext(StringToObjectMap properties)
public T2 getRunContext()
getRunContext in interface TestRunnerpublic void start(boolean async)
TestRunner
start in interface TestRunnerasync - flag controlling if TestCase should be run in seperate or
callers thread.public void cancel(java.lang.String reason)
TestRunner
cancel in interface TestRunnerprotected void onCancel(java.lang.String reason2)
public void fail(java.lang.String reason)
TestRunner
fail in interface TestRunnerprotected void onFail(java.lang.String reason)
public TestRunner.Status getStatus()
TestRunner
getStatus in interface TestRunnerpublic int getId()
public java.lang.Thread getThread()
public void run()
run in interface java.lang.Runnableprotected void setStartTime()
public boolean isRunning()
isRunning in interface TestRunnerpublic boolean isCanceled()
public boolean isFailed()
protected void setStatus(TestRunner.Status status)
protected void setError(java.lang.Throwable error)
protected abstract void internalRun(T2 runContext2)
throws java.lang.Exception
java.lang.Exceptionprotected abstract void internalFinally(T2 runContext2)
protected void startTimeoutTimer(long timeout)
public T getTestRunnable()
getTestRunnable in interface TestRunnerpublic TestRunner.Status waitUntilFinished()
TestRunner
waitUntilFinished in interface TestRunnerprotected void setTimeTaken()
public long getTimeTaken()
TestRunner
getTimeTaken in interface TestRunnerpublic long getStartTime()
TestRunner
getStartTime in interface TestRunnerpublic java.lang.Throwable getError()
public java.lang.String getReason()
TestRunner
getReason in interface TestRunner
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||