public class SoapUILoadTestRunner extends AbstractSoapUITestRunner implements LoadTestRunListener
For standalone usage, set the project file (with setProjectFile) and other desired properties before calling run
AbstractSoapUIRunner.SoapUIOptions
Modifier and Type | Field and Description |
---|---|
static String |
TITLE |
ABNORMAL_TERMINATION, log, NORMAL_TERMINATION
Constructor and Description |
---|
SoapUILoadTestRunner() |
SoapUILoadTestRunner(String title) |
Modifier and Type | Method and Description |
---|---|
void |
afterLoadTest(LoadTestRunner loadTestRunner,
LoadTestRunContext context)
Called after the execution of a loadtest when all threads have terminated
|
void |
afterTestCase(LoadTestRunner loadTestRunner,
LoadTestRunContext context,
TestCaseRunner testRunner,
TestCaseRunContext runContext)
Called after the execution of a testcase
|
void |
afterTestStep(LoadTestRunner loadTestRunner,
LoadTestRunContext context,
TestCaseRunner testRunner,
TestCaseRunContext runContext,
TestStepResult testStepResult)
Called after the execution of a teststep
|
void |
beforeLoadTest(LoadTestRunner loadTestRunner,
LoadTestRunContext context)
Called before a load-test is about to be run
|
void |
beforeTestCase(LoadTestRunner loadTestRunner,
LoadTestRunContext context,
TestCaseRunner testRunner,
TestCaseRunContext runContext)
Called before the execution of a testcase
|
void |
beforeTestStep(LoadTestRunner loadTestRunner,
LoadTestRunContext context,
TestCaseRunner testRunner,
TestCaseRunContext runContext,
TestStep testStep)
Called before the execution of a teststep
|
protected AbstractSoapUIRunner.SoapUIOptions |
initCommandLineOptions() |
void |
loadTestStarted(LoadTestRunner loadTestRunner,
LoadTestRunContext context)
Called after all initial loadtest threads have been started
|
void |
loadTestStopped(LoadTestRunner loadTestRunner,
LoadTestRunContext context)
Called when a loadtest has been stopped for some reason
|
static void |
main(String[] args)
Runs the loadtests in the specified soapUI project file, see SoapUI xdocs
for details.
|
protected boolean |
processCommandLine(org.apache.commons.cli.CommandLine cmd) |
boolean |
runRunner()
Runs the testcases as configured with setXXX methods
|
void |
runSuite(TestSuite suite)
Run tests in the specified TestSuite
|
protected void |
runWsdlLoadTest(WsdlLoadTest loadTest)
Runs the specified LoadTest
|
void |
setLimit(int limit) |
void |
setLoadTest(String loadTest) |
void |
setPrintReport(boolean printReport) |
void |
setSaveAfterRun(boolean saveAfterRun) |
void |
setTestCase(String testCase)
Sets the testcase to run
|
void |
setTestSuite(String testSuite)
Sets the TestSuite to run.
|
void |
setThreadCount(long threadCount) |
afterRun, afterStep, beforeRun, beforeStep, beforeStep, getDomain, getEndpoint, getHost, getPassword, getProjectPassword, getUsername, getWssPasswordType, prepareRequestStep, setDomain, setEndpoint, setHost, setPassword, setProjectPassword, setUsername, setWssPasswordType
createSoapUICore, ensureConsoleAppenderIsDefined, ensureFolder, ensureOutputFolder, getAbsoluteOutputFolder, getCommandLineOptionSubstSpace, getLog, getModelItemOutputFolder, getOutputFolder, getProjectFile, getProjectProperties, getSettingsFile, getSoapUISettingsPassword, initFromCommandLine, initGroovyLog, initProjectProperties, isEnableUI, requiresProjectArgument, run, run, runFromCommandLine, setCustomHeaders, setEnableUI, setGlobalProperties, setOutputFolder, setProjectFile, setProjectProperties, setSettingsFile, setSoapUISettingsPassword, setSystemProperties, validateCommandLineArgument
public static String TITLE
public SoapUILoadTestRunner()
public SoapUILoadTestRunner(String title)
public static void main(String[] args)
args
- Exception
protected boolean processCommandLine(org.apache.commons.cli.CommandLine cmd)
processCommandLine
in class AbstractSoapUIRunner
public void setLimit(int limit)
public void setThreadCount(long threadCount)
protected AbstractSoapUIRunner.SoapUIOptions initCommandLineOptions()
initCommandLineOptions
in class AbstractSoapUIRunner
public void setLoadTest(String loadTest)
public void setPrintReport(boolean printReport)
public void setSaveAfterRun(boolean saveAfterRun)
public boolean runRunner() throws Exception
runRunner
in class AbstractSoapUIRunner
Exception
- thrown if any tests failpublic void runSuite(TestSuite suite)
suite
- the TestSuite to runprotected void runWsdlLoadTest(WsdlLoadTest loadTest)
loadTest
- the loadTest to runpublic void setTestCase(String testCase)
testCase
- the testcase to runpublic void setTestSuite(String testSuite)
testSuite
- the testSuite to run.public void afterLoadTest(LoadTestRunner loadTestRunner, LoadTestRunContext context)
LoadTestRunListener
afterLoadTest
in interface LoadTestRunListener
public void afterTestCase(LoadTestRunner loadTestRunner, LoadTestRunContext context, TestCaseRunner testRunner, TestCaseRunContext runContext)
LoadTestRunListener
afterTestCase
in interface LoadTestRunListener
public void afterTestStep(LoadTestRunner loadTestRunner, LoadTestRunContext context, TestCaseRunner testRunner, TestCaseRunContext runContext, TestStepResult testStepResult)
LoadTestRunListener
afterTestStep
in interface LoadTestRunListener
public void beforeLoadTest(LoadTestRunner loadTestRunner, LoadTestRunContext context)
LoadTestRunListener
beforeLoadTest
in interface LoadTestRunListener
public void beforeTestCase(LoadTestRunner loadTestRunner, LoadTestRunContext context, TestCaseRunner testRunner, TestCaseRunContext runContext)
LoadTestRunListener
beforeTestCase
in interface LoadTestRunListener
public void beforeTestStep(LoadTestRunner loadTestRunner, LoadTestRunContext context, TestCaseRunner testRunner, TestCaseRunContext runContext, TestStep testStep)
LoadTestRunListener
beforeTestStep
in interface LoadTestRunListener
public void loadTestStarted(LoadTestRunner loadTestRunner, LoadTestRunContext context)
LoadTestRunListener
loadTestStarted
in interface LoadTestRunListener
public void loadTestStopped(LoadTestRunner loadTestRunner, LoadTestRunContext context)
LoadTestRunListener
loadTestStopped
in interface LoadTestRunListener
Copyright © 2019. All Rights Reserved.