public class SoapUITestCaseRunner extends AbstractSoapUITestRunner
For standalone usage, set the project file (with setProjectFile) and other desired properties before calling run
| Modifier and Type | Class and Description | 
|---|---|
| protected class  | SoapUITestCaseRunner.InternalProjectRunListener | 
AbstractSoapUIRunner.SoapUIOptions| Modifier and Type | Field and Description | 
|---|---|
| static String | SOAPUI_EXPORT_SEPARATOR | 
| static String | TITLE | 
ABNORMAL_TERMINATION, log, NORMAL_TERMINATION| Constructor and Description | 
|---|
| SoapUITestCaseRunner() | 
| SoapUITestCaseRunner(String title) | 
| Modifier and Type | Method and Description | 
|---|---|
| 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,
                  String folder,
                  WsdlProject project) | 
| protected void | exportReports(WsdlProject project) | 
| Map<TestAssertion,WsdlTestStepResult> | getAssertionResults() | 
| List<TestAssertion> | getAssertions() | 
| int | getExportCount() | 
| List<TestCase> | getFailedTests() | 
| protected int | getMaxErrors() | 
| String | getProjectPassword() | 
| String | getTestCase() | 
| int | getTestStepCount() | 
| String | getTestSuite() | 
| protected AbstractSoapUIRunner.SoapUIOptions | initCommandLineOptions() | 
| protected void | initProject(WsdlProject project) | 
| boolean | isExportAll() | 
| boolean | isIgnoreErrors() | 
| boolean | isJunitReport() | 
| boolean | isJUnitReport() | 
| boolean | isPrintAlertSiteReport() | 
| boolean | isPrintReport() | 
| boolean | isSaveAfterRun() | 
| static void | main(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 | setJUnitReportWithProperties(boolean shouldIncludePropertiesInTheReport) | 
| void | setMaxErrors(int maxErrors) | 
| void | setPrintAlertSiteReport(boolean printAlertSiteReport) | 
| void | setPrintReport(boolean printReport)Controls if a short test summary should be printed after the test runs | 
| void | setProjectPassword(String projectPassword) | 
| void | setSaveAfterRun(boolean saveAfterRun) | 
| void | setTestCase(String testCase)Sets the testcase to run | 
| void | setTestStepCount(int testStepCount) | 
| void | setTestSuite(String testSuite)Sets the TestSuite to run. | 
| protected void | throwFailureException() | 
beforeStep, getDomain, getEndpoint, getHost, getPassword, getUsername, getWssPasswordType, prepareRequestStep, setDomain, setEndpoint, setHost, setPassword, setUsername, setWssPasswordTypecreateSoapUICore, 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, validateCommandLineArgumentpublic static final String SOAPUI_EXPORT_SEPARATOR
public static final String TITLE
public SoapUITestCaseRunner()
public SoapUITestCaseRunner(String title)
public static void main(String[] args) throws Exception
args - 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(String projectPassword)
setProjectPassword in class AbstractSoapUITestRunnerpublic String getProjectPassword()
getProjectPassword in class AbstractSoapUITestRunnerprotected AbstractSoapUIRunner.SoapUIOptions initCommandLineOptions()
initCommandLineOptions in class AbstractSoapUIRunnerpublic void setExportAll(boolean exportAll)
public void setJUnitReport(boolean junitReport)
public void setJUnitReportWithProperties(boolean shouldIncludePropertiesInTheReport)
protected JUnitSecurityReportCollector createJUnitSecurityReportCollector()
public void setPrintReport(boolean printReport)
printReport - a flag controlling if a summary should be printedpublic void setPrintAlertSiteReport(boolean printAlertSiteReport)
public boolean isPrintAlertSiteReport()
public void setIgnoreError(boolean ignoreErrors)
public boolean runRunner()
                  throws Exception
runRunner in class AbstractSoapUIRunnerExceptionprotected void removeListeners(TestCase tc)
protected void runProject(WsdlProject project)
protected void initProject(WsdlProject project) throws Exception
Exceptionprotected void exportReports(WsdlProject project) throws Exception
Exceptionprotected void addListeners(TestCase tc)
public boolean isExportAll()
public void exportJUnitReports(JUnitReportCollector collector, String folder, WsdlProject project) throws Exception
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(String testCase)
testCase - the testcase to runpublic void setTestSuite(String testSuite)
testSuite - the testSuite to run.public void beforeRun(TestCaseRunner testRunner, TestCaseRunContext runContext)
beforeRun in interface TestRunListenerbeforeRun in class AbstractSoapUITestRunnerpublic void beforeStep(TestCaseRunner testRunner, TestCaseRunContext runContext, TestStep currentStep)
beforeStep in interface TestRunListenerbeforeStep in class AbstractSoapUITestRunnerpublic void afterStep(TestCaseRunner testRunner, TestCaseRunContext runContext, TestStepResult result)
afterStep in interface TestRunListenerafterStep in class AbstractSoapUITestRunnerpublic void afterRun(TestCaseRunner testRunner, TestCaseRunContext runContext)
afterRun in interface TestRunListenerafterRun in class AbstractSoapUITestRunnerpublic String getTestSuite()
public String getTestCase()
public boolean isJUnitReport()
public boolean isIgnoreErrors()
public void setIgnoreErrors(boolean ignoreErrors)
public boolean isPrintReport()
public boolean isSaveAfterRun()
public List<TestAssertion> getAssertions()
public boolean isJunitReport()
public int getExportCount()
public void setExportCount(int exportCount)
public Map<TestAssertion,WsdlTestStepResult> getAssertionResults()
public int getTestStepCount()
public void setTestStepCount(int testStepCount)
Copyright © 2019. All Rights Reserved.