public class WsdlLoadTestRunner extends Object implements LoadTestRunner
| Modifier and Type | Class and Description |
|---|---|
class |
WsdlLoadTestRunner.InternalPropertyChangeListener |
class |
WsdlLoadTestRunner.InternalTestCaseRunner |
TestRunner.Status| Constructor and Description |
|---|
WsdlLoadTestRunner(WsdlLoadTest test) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(String reason)
Cancels an ongoing test run with the specified reason
|
void |
fail(String reason)
Fails an ongoing test run with the specified reason
|
void |
finishRunner(WsdlLoadTestRunner.InternalTestCaseRunner runner) |
void |
finishTestCase(String reason,
WsdlTestCase testCase) |
WsdlLoadTest |
getLoadTest() |
float |
getProgress()
Returns the progress of the loadtest as a value between 0 and 1.
|
String |
getReason()
Gets the reason why a running test was canceled or failed.
|
TestRunContext |
getRunContext() |
int |
getRunningThreadCount()
Gets the number of threads currently running
|
long |
getStartTime()
Returns the time this runner was last started
|
TestRunner.Status |
getStatus()
Gets the current status of this TestRunner
|
TestRunnable |
getTestRunnable() |
long |
getTimeTaken()
Returns the time taken by this runner since its last start
|
boolean |
hasStopped()
Confusing but unfortunately necessary; isStopped will return false until
the loadtest has called all handlers, etc..
|
boolean |
isRunning() |
void |
release() |
void |
start(boolean async)
Starts running this TestRunners TestCase.
|
void |
updateThreadCount() |
TestRunner.Status |
waitUntilFinished()
Blocks until this runner is finished, (returns directly if it already has
finished)
|
public WsdlLoadTestRunner(WsdlLoadTest test)
public TestRunner.Status getStatus()
TestRunnergetStatus in interface TestRunnerpublic void cancel(String reason)
TestRunnercancel in interface TestRunnerpublic void fail(String reason)
TestRunnerfail in interface TestRunnerpublic TestRunner.Status waitUntilFinished()
TestRunnerwaitUntilFinished in interface TestRunnerpublic void finishTestCase(String reason, WsdlTestCase testCase)
public void finishRunner(WsdlLoadTestRunner.InternalTestCaseRunner runner)
public boolean hasStopped()
LoadTestRunnerhasStopped in interface LoadTestRunnerpublic int getRunningThreadCount()
LoadTestRunnergetRunningThreadCount in interface LoadTestRunnerpublic float getProgress()
LoadTestRunnergetProgress in interface LoadTestRunnerpublic WsdlLoadTest getLoadTest()
getLoadTest in interface LoadTestRunnerpublic void updateThreadCount()
public String getReason()
TestRunnergetReason in interface TestRunnerpublic long getTimeTaken()
TestRunnergetTimeTaken in interface TestRunnerpublic boolean isRunning()
isRunning in interface TestRunnerpublic TestRunContext getRunContext()
getRunContext in interface TestRunnerpublic long getStartTime()
TestRunnergetStartTime in interface TestRunnerpublic void start(boolean async)
TestRunnerstart in interface TestRunnerasync - flag controlling if TestCase should be run in seperate or
callers thread.public TestRunnable getTestRunnable()
getTestRunnable in interface TestRunnerpublic void release()
Copyright © 2019. All Rights Reserved.