com.eviware.soapui.impl.wsdl.loadtest
Class WsdlLoadTestRunner

java.lang.Object
  extended by com.eviware.soapui.impl.wsdl.loadtest.WsdlLoadTestRunner
All Implemented Interfaces:
LoadTestRunner, TestRunner

public class WsdlLoadTestRunner
extends java.lang.Object
implements LoadTestRunner

TestRunner for load-tests.

Author:
Ole.Matzura

Nested Class Summary
 class WsdlLoadTestRunner.InternalPropertyChangeListener
           
 class WsdlLoadTestRunner.InternalTestCaseRunner
           
 
Nested classes/interfaces inherited from interface com.eviware.soapui.model.testsuite.TestRunner
TestRunner.Status
 
Constructor Summary
WsdlLoadTestRunner(WsdlLoadTest test)
           
 
Method Summary
 void cancel(java.lang.String reason)
          Cancels an ongoing test run with the specified reason
 void fail(java.lang.String reason)
          Fails an ongoing test run with the specified reason
 void finishRunner(WsdlLoadTestRunner.InternalTestCaseRunner runner)
           
 void finishTestCase(java.lang.String reason, WsdlTestCase testCase)
           
 WsdlLoadTest getLoadTest()
           
 float getProgress()
          Returns the progress of the loadtest as a value between 0 and 1.
 java.lang.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
 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)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WsdlLoadTestRunner

public WsdlLoadTestRunner(WsdlLoadTest test)
Method Detail

getStatus

public TestRunner.Status getStatus()
Description copied from interface: TestRunner
Gets the current status of this TestRunner

Specified by:
getStatus in interface TestRunner

cancel

public void cancel(java.lang.String reason)
Description copied from interface: TestRunner
Cancels an ongoing test run with the specified reason

Specified by:
cancel in interface TestRunner

fail

public void fail(java.lang.String reason)
Description copied from interface: TestRunner
Fails an ongoing test run with the specified reason

Specified by:
fail in interface TestRunner

waitUntilFinished

public TestRunner.Status waitUntilFinished()
Description copied from interface: TestRunner
Blocks until this runner is finished, (returns directly if it already has finished)

Specified by:
waitUntilFinished in interface TestRunner

finishTestCase

public void finishTestCase(java.lang.String reason,
                           WsdlTestCase testCase)

finishRunner

public void finishRunner(WsdlLoadTestRunner.InternalTestCaseRunner runner)

getRunningThreadCount

public int getRunningThreadCount()
Description copied from interface: LoadTestRunner
Gets the number of threads currently running

Specified by:
getRunningThreadCount in interface LoadTestRunner

getProgress

public float getProgress()
Description copied from interface: LoadTestRunner
Returns the progress of the loadtest as a value between 0 and 1. Progress is measured depending on the LoadTest limit configuration

Specified by:
getProgress in interface LoadTestRunner

getLoadTest

public WsdlLoadTest getLoadTest()
Specified by:
getLoadTest in interface LoadTestRunner

updateThreadCount

public void updateThreadCount()

getReason

public java.lang.String getReason()
Description copied from interface: TestRunner
Gets the reason why a running test was canceled or failed.

Specified by:
getReason in interface TestRunner

getTimeTaken

public long getTimeTaken()
Description copied from interface: TestRunner
Returns the time taken by this runner since its last start

Specified by:
getTimeTaken in interface TestRunner

getRunContext

public TestRunContext getRunContext()
Specified by:
getRunContext in interface TestRunner

getStartTime

public long getStartTime()
Description copied from interface: TestRunner
Returns the time this runner was last started

Specified by:
getStartTime in interface TestRunner

start

public void start(boolean async)
Description copied from interface: TestRunner
Starts running this TestRunners TestCase. If the async flag is set to true, this method will return directly, otherwise it will block until the TestCase is finished

Specified by:
start in interface TestRunner
Parameters:
async - flag controlling if TestCase should be run in seperate or callers thread.

getTestRunnable

public TestRunnable getTestRunnable()
Specified by:
getTestRunnable in interface TestRunner


Copyright © 2005-2009 eviware.com. All Rights Reserved.