|
||||||||||
| 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 | |
|---|---|
protected class |
SoapUITestCaseRunner.InternalProjectRunListener
|
| Nested classes/interfaces inherited from class com.eviware.soapui.tools.AbstractSoapUIRunner |
|---|
AbstractSoapUIRunner.SoapUIOptions |
| Field Summary | |
|---|---|
static java.lang.String |
SOAPUI_EXPORT_SEPARATOR
|
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(TestCaseRunner testRunner,
TestCaseRunContext runContext)
|
void |
afterStep(TestCaseRunner testRunner,
TestCaseRunContext runContext,
TestStepResult result)
|
void |
beforeRun(TestCaseRunner testRunner,
TestCaseRunContext runContext)
|
void |
beforeStep(TestCaseRunner testRunner,
TestCaseRunContext runContext,
TestStep currentStep)
|
protected JUnitSecurityReportCollector |
createJUnitSecurityReportCollector()
|
void |
exportJUnitReports(JUnitReportCollector collector,
java.lang.String folder,
WsdlProject project)
|
protected void |
exportReports(WsdlProject project)
|
java.util.Map<TestAssertion,WsdlTestStepResult> |
getAssertionResults()
|
java.util.List<TestAssertion> |
getAssertions()
|
int |
getExportCount()
|
java.util.List<TestCase> |
getFailedTests()
|
protected int |
getMaxErrors()
|
java.lang.String |
getProjectPassword()
|
java.lang.String |
getTestCase()
|
int |
getTestStepCount()
|
java.lang.String |
getTestSuite()
|
protected AbstractSoapUIRunner.SoapUIOptions |
initCommandLineOptions()
|
protected void |
initProject(WsdlProject project)
|
boolean |
isExportAll()
|
boolean |
isIgnoreErrors()
|
boolean |
isJunitReport()
|
boolean |
isJUnitReport()
|
boolean |
isPrintReport()
|
boolean |
isSaveAfterRun()
|
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)
|
protected void |
removeListeners(TestCase tc)
|
protected void |
runProject(WsdlProject project)
|
boolean |
runRunner()
|
protected void |
runSuite(WsdlTestSuite suite)
Run tests in the specified TestSuite |
protected void |
runTestCase(WsdlTestCase testCase)
Runs the specified TestCase |
void |
setExportAll(boolean exportAll)
Add console appender to groovy log |
void |
setExportCount(int exportCount)
|
void |
setIgnoreError(boolean ignoreErrors)
|
void |
setIgnoreErrors(boolean ignoreErrors)
|
void |
setJUnitReport(boolean junitReport)
|
void |
setMaxErrors(int maxErrors)
|
void |
setPrintReport(boolean printReport)
Controls if a short test summary should be printed after the test runs |
void |
setProjectPassword(java.lang.String projectPassword)
|
void |
setSaveAfterRun(boolean saveAfterRun)
|
void |
setTestCase(java.lang.String testCase)
Sets the testcase to run |
void |
setTestStepCount(int testStepCount)
|
void |
setTestSuite(java.lang.String testSuite)
Sets the TestSuite to run. |
protected void |
throwFailureException()
|
| Methods inherited from class com.eviware.soapui.tools.AbstractSoapUITestRunner |
|---|
beforeStep, getDomain, getEndpoint, getHost, getPassword, getUsername, getWssPasswordType, prepareRequestStep, setDomain, setEndpoint, setHost, setPassword, setUsername, setWssPasswordType |
| 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 SOAPUI_EXPORT_SEPARATOR
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.Exceptionprotected boolean processCommandLine(org.apache.commons.cli.CommandLine cmd)
processCommandLine in class AbstractSoapUIRunnerpublic void setMaxErrors(int maxErrors)
protected int getMaxErrors()
public void setSaveAfterRun(boolean saveAfterRun)
public void setProjectPassword(java.lang.String projectPassword)
setProjectPassword in class AbstractSoapUITestRunnerpublic java.lang.String getProjectPassword()
getProjectPassword in class AbstractSoapUITestRunnerprotected AbstractSoapUIRunner.SoapUIOptions initCommandLineOptions()
initCommandLineOptions in class AbstractSoapUIRunnerpublic void setExportAll(boolean exportAll)
public void setJUnitReport(boolean junitReport)
protected JUnitSecurityReportCollector createJUnitSecurityReportCollector()
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 AbstractSoapUIRunnerjava.lang.Exceptionprotected void removeListeners(TestCase tc)
protected void runProject(WsdlProject project)
protected void initProject(WsdlProject project)
throws java.lang.Exception
java.lang.Exception
protected void exportReports(WsdlProject project)
throws java.lang.Exception
java.lang.Exceptionprotected void addListeners(TestCase tc)
protected void throwFailureException()
throws java.lang.Exception
java.lang.Exceptionpublic boolean isExportAll()
public void exportJUnitReports(JUnitReportCollector collector,
java.lang.String folder,
WsdlProject project)
throws java.lang.Exception
java.lang.Exceptionpublic void printReport(long timeTaken)
protected void runSuite(WsdlTestSuite suite)
suite - the TestSuite to runprotected void runTestCase(WsdlTestCase testCase)
testCase - the testcase to runcontext - public 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(TestCaseRunner testRunner,
TestCaseRunContext runContext)
beforeRun in interface TestRunListenerbeforeRun in class AbstractSoapUITestRunner
public void beforeStep(TestCaseRunner testRunner,
TestCaseRunContext runContext,
TestStep currentStep)
beforeStep in interface TestRunListenerbeforeStep in class AbstractSoapUITestRunner
public void afterStep(TestCaseRunner testRunner,
TestCaseRunContext runContext,
TestStepResult result)
afterStep in interface TestRunListenerafterStep in class AbstractSoapUITestRunner
public void afterRun(TestCaseRunner testRunner,
TestCaseRunContext runContext)
afterRun in interface TestRunListenerafterRun in class AbstractSoapUITestRunnerpublic java.lang.String getTestSuite()
public java.lang.String getTestCase()
public boolean isJUnitReport()
public boolean isIgnoreErrors()
public void setIgnoreErrors(boolean ignoreErrors)
public boolean isPrintReport()
public boolean isSaveAfterRun()
public java.util.List<TestCase> getFailedTests()
public java.util.List<TestAssertion> getAssertions()
public boolean isJunitReport()
public int getExportCount()
public void setExportCount(int exportCount)
public java.util.Map<TestAssertion,WsdlTestStepResult> getAssertionResults()
public int getTestStepCount()
public void setTestStepCount(int testStepCount)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||