|
||||||||||
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.AbstractSoapUITestRunner
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 | |
---|---|
protected void |
addListeners(TestCase tc)
|
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 void |
exportReports(WsdlProject project)
|
protected WsdlProject |
getProject()
|
java.lang.String |
getProjectPassword()
|
protected AbstractSoapUIRunner.SoapUIOptions |
initCommandLineOptions()
|
protected void |
initProject()
|
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()
|
void |
runSuite(WsdlTestSuite suite)
Run tests in the specified TestSuite |
void |
setExportAll(boolean exportAll)
Add console appender to groovy log |
void |
setIgnoreError(boolean ignoreErrors)
|
void |
setJUnitReport(boolean junitReport)
|
void |
setPrintReport(boolean printReport)
Controls if a short test summary should be printed after the test runs |
void |
setProjectPassword(java.lang.String projectPassword)
|
void |
setTestCase(java.lang.String testCase)
Sets the testcase to run |
void |
setTestSuite(java.lang.String testSuite)
Sets the TestSuite to run. |
protected void |
throwFailureException()
|
Methods inherited from class com.eviware.soapui.tools.AbstractSoapUITestRunner |
---|
getDomain, getEndpoint, getHost, getPassword, getUsername, getWssPasswordType, prepareRequestStep, setDomain, setEndpoint, setHost, setPassword, setUsername, setWssPasswordType |
Methods inherited from class com.eviware.soapui.tools.AbstractSoapUIRunner |
---|
createSoapUICore, ensureFolder, ensureOutputFolder, getAbsoluteOutputFolder, getCommandLineOptionSubstSpace, getOutputFolder, getProjectFile, getSettingsFile, getSoapUISettingsPassword, initFromCommandLine, initGroovyLog, run, runFromCommandLine, setEnableUI, setGlobalProperties, setOutputFolder, setProjectFile, setSettingsFile, setSoapUISettingsPassword, setSystemProperties |
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
public void setProjectPassword(java.lang.String projectPassword)
setProjectPassword
in class AbstractSoapUITestRunner
public java.lang.String getProjectPassword()
getProjectPassword
in class AbstractSoapUITestRunner
protected AbstractSoapUIRunner.SoapUIOptions initCommandLineOptions()
initCommandLineOptions
in class AbstractSoapUIRunner
public void setExportAll(boolean exportAll)
public void setJUnitReport(boolean junitReport)
public void setPrintReport(boolean printReport)
printReport
- a flag controlling if a summary should be printedpublic void setIgnoreError(boolean ignoreErrors)
public boolean runRunner() throws java.lang.Exception
runRunner
in class AbstractSoapUIRunner
java.lang.Exception
protected void initProject() throws java.lang.Exception
java.lang.Exception
protected void exportReports(WsdlProject project) throws java.lang.Exception
java.lang.Exception
protected void addListeners(TestCase tc)
protected 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 setTestSuite(java.lang.String testSuite)
testSuite
- the testSuite to run.public void beforeRun(TestRunner testRunner, TestRunContext runContext)
beforeRun
in interface TestRunListener
beforeRun
in class AbstractSoapUITestRunner
public void beforeStep(TestRunner testRunner, TestRunContext runContext)
beforeStep
in interface TestRunListener
beforeStep
in class AbstractSoapUITestRunner
public void afterStep(TestRunner testRunner, TestRunContext runContext, TestStepResult result)
afterStep
in interface TestRunListener
afterStep
in class AbstractSoapUITestRunner
public void afterRun(TestRunner testRunner, TestRunContext runContext)
afterRun
in interface TestRunListener
afterRun
in class AbstractSoapUITestRunner
protected WsdlProject getProject()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |