|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.eviware.soapui.tools.AbstractSoapUIRunner
com.eviware.soapui.tools.SoapUITestCaseRunner
public class SoapUITestCaseRunner
Standalone test-runner used from maven-plugin, can also be used from command-line (see xdocs) or directly from other classes.
For standalone usage, set the project file (with setProjectFile) and other desired properties before calling run
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.eviware.soapui.tools.AbstractSoapUIRunner |
---|
AbstractSoapUIRunner.SoapUIOptions |
Field Summary | |
---|---|
static java.lang.String |
TITLE
|
Fields inherited from class com.eviware.soapui.tools.AbstractSoapUIRunner |
---|
log |
Constructor Summary | |
---|---|
SoapUITestCaseRunner()
|
|
SoapUITestCaseRunner(java.lang.String title)
|
Method Summary | |
---|---|
void |
afterRun(TestRunner testRunner,
TestRunContext runContext)
|
void |
afterStep(TestRunner testRunner,
TestRunContext runContext,
TestStepResult result)
|
void |
beforeRun(TestRunner testRunner,
TestRunContext runContext)
|
void |
beforeStep(TestRunner testRunner,
TestRunContext runContext)
|
void |
exportJUnitReports(JUnitReportCollector collector,
java.lang.String folder)
|
protected WsdlProject |
getProject()
|
protected AbstractSoapUIRunner.SoapUIOptions |
initCommandLineOptions()
|
static void |
main(java.lang.String[] args)
Runs the tests in the specified soapUI project file, see soapUI xdocs for details. |
void |
printReport(long timeTaken)
|
protected boolean |
processCommandLine(org.apache.commons.cli.CommandLine cmd)
|
boolean |
runRunner()
Runs the testcases as configured with setXXX methods |
void |
runSuite(WsdlTestSuite suite)
Run tests in the specified TestSuite |
void |
setDomain(java.lang.String domain)
Sets the domain to use for any authentications |
void |
setEndpoint(java.lang.String endpoint)
Sets the endpoint to use for all test requests |
void |
setExportAll(boolean exportAll)
Add console appender to groovy log |
void |
setHost(java.lang.String host)
Sets the host to use by all test-requests, the existing endpoint port and path will be used |
void |
setJUnitReport(boolean junitReport)
|
void |
setOutputFolder(java.lang.String outputFolder)
|
void |
setPassword(java.lang.String password)
Sets the password to use for any authentications |
void |
setPrintReport(boolean printReport)
Controls if a short test summary should be printed after the test runs |
void |
setTestCase(java.lang.String testCase)
Sets the testcase to run |
void |
setTestSuite(java.lang.String testSuite)
Sets the TestSuite to run. |
void |
setUsername(java.lang.String username)
Sets the username to use for any authentications |
void |
setWssPasswordType(java.lang.String wssPasswordType)
Sets the WSS password-type to use for any authentications. |
protected void |
throwFailureException()
|
Methods inherited from class com.eviware.soapui.tools.AbstractSoapUIRunner |
---|
createSoapUICore, getProjectFile, getSettingsFile, initFromCommandLine, initGroovyLog, run, runFromCommandLine, setEnableUI, setProjectFile, setSettingsFile |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TITLE
Constructor Detail |
---|
public SoapUITestCaseRunner()
public SoapUITestCaseRunner(java.lang.String title)
Method Detail |
---|
public static void main(java.lang.String[] args) throws java.lang.Exception
args
-
java.lang.Exception
protected boolean processCommandLine(org.apache.commons.cli.CommandLine cmd)
processCommandLine
in class AbstractSoapUIRunner
protected AbstractSoapUIRunner.SoapUIOptions initCommandLineOptions()
initCommandLineOptions
in class AbstractSoapUIRunner
public void setExportAll(boolean exportAll)
public void setJUnitReport(boolean junitReport)
public void setOutputFolder(java.lang.String outputFolder)
public void setPrintReport(boolean printReport)
printReport
- a flag controlling if a summary should be printedpublic void setHost(java.lang.String host)
host
- the host to use by all requestspublic void setDomain(java.lang.String domain)
domain
- the domain to use for any authenticationspublic void setPassword(java.lang.String password)
domain
- the password to use for any authenticationspublic void setWssPasswordType(java.lang.String wssPasswordType)
wssPasswordType
- the wss-password type to use, either 'Text' or 'Digest'public void setUsername(java.lang.String username)
domain
- the username to use for any authenticationspublic boolean runRunner() throws java.lang.Exception
runRunner
in class AbstractSoapUIRunner
java.lang.Exception
- thrown if any tests failprotected void throwFailureException() throws java.lang.Exception
java.lang.Exception
public void exportJUnitReports(JUnitReportCollector collector, java.lang.String folder) throws java.lang.Exception
java.lang.Exception
public void printReport(long timeTaken)
public void runSuite(WsdlTestSuite suite)
suite
- the TestSuite to runpublic void setTestCase(java.lang.String testCase)
testCase
- the testcase to runpublic void setEndpoint(java.lang.String endpoint)
endpoint
- the endpoint to use for all test requestspublic void setTestSuite(java.lang.String testSuite)
testSuite
- the testSuite to run.public void beforeRun(TestRunner testRunner, TestRunContext runContext)
beforeRun
in interface TestRunListener
public void beforeStep(TestRunner testRunner, TestRunContext runContext)
beforeStep
in interface TestRunListener
public void afterStep(TestRunner testRunner, TestRunContext runContext, TestStepResult result)
afterStep
in interface TestRunListener
public void afterRun(TestRunner testRunner, TestRunContext runContext)
afterRun
in interface TestRunListener
protected WsdlProject getProject()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |