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()
TestRunner
getStatus
in interface TestRunner
public void cancel(String reason)
TestRunner
cancel
in interface TestRunner
public void fail(String reason)
TestRunner
fail
in interface TestRunner
public TestRunner.Status waitUntilFinished()
TestRunner
waitUntilFinished
in interface TestRunner
public void finishTestCase(String reason, WsdlTestCase testCase)
public void finishRunner(WsdlLoadTestRunner.InternalTestCaseRunner runner)
public boolean hasStopped()
LoadTestRunner
hasStopped
in interface LoadTestRunner
public int getRunningThreadCount()
LoadTestRunner
getRunningThreadCount
in interface LoadTestRunner
public float getProgress()
LoadTestRunner
getProgress
in interface LoadTestRunner
public WsdlLoadTest getLoadTest()
getLoadTest
in interface LoadTestRunner
public void updateThreadCount()
public String getReason()
TestRunner
getReason
in interface TestRunner
public long getTimeTaken()
TestRunner
getTimeTaken
in interface TestRunner
public boolean isRunning()
isRunning
in interface TestRunner
public TestRunContext getRunContext()
getRunContext
in interface TestRunner
public long getStartTime()
TestRunner
getStartTime
in interface TestRunner
public void start(boolean async)
TestRunner
start
in interface TestRunner
async
- flag controlling if TestCase should be run in seperate or
callers thread.public TestRunnable getTestRunnable()
getTestRunnable
in interface TestRunner
public void release()
Copyright © 2019. All Rights Reserved.