public class SoapUISecurityTestRunner extends SoapUITestCaseRunner implements SecurityTestRunListener
For standalone usage, set the project file (with setProjectFile) and other desired properties before calling run
SoapUITestCaseRunner.InternalProjectRunListenerAbstractSoapUIRunner.SoapUIOptions| Modifier and Type | Field and Description | 
|---|---|
| static String | SOAPUI_EXPORT_SEPARATOR | 
| static String | TITLE | 
ABNORMAL_TERMINATION, log, NORMAL_TERMINATION| Constructor and Description | 
|---|
| SoapUISecurityTestRunner() | 
| SoapUISecurityTestRunner(String title) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | addListeners(TestCase tc) | 
| void | afterOriginalStep(TestCaseRunner testRunner,
                 SecurityTestRunContext runContext,
                 SecurityTestStepResult result) | 
| void | afterRun(TestCaseRunner testRunner,
        SecurityTestRunContext runContext) | 
| void | afterRun(TestCaseRunner testRunner,
        TestCaseRunContext runContext) | 
| void | afterSecurityScan(TestCaseRunner testRunner,
                 SecurityTestRunContext runContext,
                 SecurityScanResult securityScanResult) | 
| void | afterSecurityScanRequest(TestCaseRunner testRunner,
                        SecurityTestRunContext runContext,
                        SecurityScanRequestResult securityScanReqResult) | 
| void | afterStep(TestCaseRunner testRunner,
         SecurityTestRunContext runContext,
         SecurityTestStepResult result) | 
| void | beforeRun(TestCaseRunner testRunner,
         SecurityTestRunContext runContext) | 
| void | beforeSecurityScan(TestCaseRunner testRunner,
                  SecurityTestRunContext runContext,
                  SecurityScan securityScan) | 
| void | beforeStep(TestCaseRunner testRunner,
          SecurityTestRunContext runContext,
          TestStepResult testStepResult) | 
| void | exportJUnitReports(JUnitSecurityReportCollector collector,
                  String folder,
                  WsdlProject project) | 
| protected void | exportReports(WsdlProject project) | 
| protected AbstractSoapUIRunner.SoapUIOptions | initCommandLineOptions() | 
| protected void | initProject(WsdlProject project) | 
| 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 | runProject(WsdlProject project) | 
| boolean | runRunner() | 
| protected void | runSecurityTest(SecurityTest securityTest) | 
| protected void | runSuite(WsdlTestSuite suite)Run tests in the specified TestSuite | 
| protected void | runTestCase(WsdlTestCase testCase)Runs the SecurityTests in the specified TestCase | 
| void | setSecurityTestName(String securityTestName) | 
afterStep, beforeRun, beforeStep, createJUnitSecurityReportCollector, exportJUnitReports, getAssertionResults, getAssertions, getExportCount, getFailedTests, getMaxErrors, getProjectPassword, getTestCase, getTestStepCount, getTestSuite, isExportAll, isIgnoreErrors, isJunitReport, isJUnitReport, isPrintAlertSiteReport, isPrintReport, isSaveAfterRun, removeListeners, setExportAll, setExportCount, setIgnoreError, setIgnoreErrors, setJUnitReport, setJUnitReportWithProperties, setMaxErrors, setPrintAlertSiteReport, setPrintReport, setProjectPassword, setSaveAfterRun, setTestCase, setTestStepCount, setTestSuite, throwFailureExceptionbeforeStep, 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 SoapUISecurityTestRunner()
public SoapUISecurityTestRunner(String title)
public static void main(String[] args) throws Exception
args - Exceptionprotected boolean processCommandLine(org.apache.commons.cli.CommandLine cmd)
processCommandLine in class SoapUITestCaseRunnerpublic void setSecurityTestName(String securityTestName)
protected AbstractSoapUIRunner.SoapUIOptions initCommandLineOptions()
initCommandLineOptions in class SoapUITestCaseRunnerpublic boolean runRunner()
                  throws Exception
runRunner in class SoapUITestCaseRunnerExceptionprotected void runProject(WsdlProject project)
runProject in class SoapUITestCaseRunnerprotected void initProject(WsdlProject project) throws Exception
initProject in class SoapUITestCaseRunnerExceptionprotected void exportReports(WsdlProject project) throws Exception
exportReports in class SoapUITestCaseRunnerExceptionprotected void addListeners(TestCase tc)
addListeners in class SoapUITestCaseRunnerpublic void exportJUnitReports(JUnitSecurityReportCollector collector, String folder, WsdlProject project) throws Exception
Exceptionpublic void printReport(long timeTaken)
printReport in class SoapUITestCaseRunnerprotected void runSuite(WsdlTestSuite suite)
runSuite in class SoapUITestCaseRunnersuite - the TestSuite to runprotected void runTestCase(WsdlTestCase testCase)
runTestCase in class SoapUITestCaseRunnertestCase - the testcase to runcontext - protected void runSecurityTest(SecurityTest securityTest)
securityTest - public void afterStep(TestCaseRunner testRunner, SecurityTestRunContext runContext, SecurityTestStepResult result)
afterStep in interface SecurityTestRunListenerpublic void afterRun(TestCaseRunner testRunner, TestCaseRunContext runContext)
afterRun in interface TestRunListenerafterRun in class SoapUITestCaseRunnerpublic void afterOriginalStep(TestCaseRunner testRunner, SecurityTestRunContext runContext, SecurityTestStepResult result)
afterOriginalStep in interface SecurityTestRunListenerpublic void afterRun(TestCaseRunner testRunner, SecurityTestRunContext runContext)
afterRun in interface SecurityTestRunListenerpublic void afterSecurityScan(TestCaseRunner testRunner, SecurityTestRunContext runContext, SecurityScanResult securityScanResult)
afterSecurityScan in interface SecurityTestRunListenerpublic void afterSecurityScanRequest(TestCaseRunner testRunner, SecurityTestRunContext runContext, SecurityScanRequestResult securityScanReqResult)
afterSecurityScanRequest in interface SecurityTestRunListenerpublic void beforeRun(TestCaseRunner testRunner, SecurityTestRunContext runContext)
beforeRun in interface SecurityTestRunListenerpublic void beforeSecurityScan(TestCaseRunner testRunner, SecurityTestRunContext runContext, SecurityScan securityScan)
beforeSecurityScan in interface SecurityTestRunListenerpublic void beforeStep(TestCaseRunner testRunner, SecurityTestRunContext runContext, TestStepResult testStepResult)
beforeStep in interface SecurityTestRunListenerCopyright © 2019. All Rights Reserved.