public class SoapUISecurityTestRunner extends SoapUITestCaseRunner implements SecurityTestRunListener
For standalone usage, set the project file (with setProjectFile) and other desired properties before calling run
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 |
---|
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, throwFailureException
beforeStep, getDomain, getEndpoint, getHost, getPassword, getUsername, getWssPasswordType, prepareRequestStep, setDomain, setEndpoint, setHost, setPassword, setUsername, setWssPasswordType
createSoapUICore, 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, validateCommandLineArgument
public 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
- Exception
protected boolean processCommandLine(org.apache.commons.cli.CommandLine cmd)
processCommandLine
in class SoapUITestCaseRunner
public void setSecurityTestName(String securityTestName)
protected AbstractSoapUIRunner.SoapUIOptions initCommandLineOptions()
initCommandLineOptions
in class SoapUITestCaseRunner
public boolean runRunner() throws Exception
runRunner
in class SoapUITestCaseRunner
Exception
protected void runProject(WsdlProject project)
runProject
in class SoapUITestCaseRunner
protected void initProject(WsdlProject project) throws Exception
initProject
in class SoapUITestCaseRunner
Exception
protected void exportReports(WsdlProject project) throws Exception
exportReports
in class SoapUITestCaseRunner
Exception
protected void addListeners(TestCase tc)
addListeners
in class SoapUITestCaseRunner
public void exportJUnitReports(JUnitSecurityReportCollector collector, String folder, WsdlProject project) throws Exception
Exception
public void printReport(long timeTaken)
printReport
in class SoapUITestCaseRunner
protected void runSuite(WsdlTestSuite suite)
runSuite
in class SoapUITestCaseRunner
suite
- the TestSuite to runprotected void runTestCase(WsdlTestCase testCase)
runTestCase
in class SoapUITestCaseRunner
testCase
- the testcase to runcontext
- protected void runSecurityTest(SecurityTest securityTest)
securityTest
- public void afterStep(TestCaseRunner testRunner, SecurityTestRunContext runContext, SecurityTestStepResult result)
afterStep
in interface SecurityTestRunListener
public void afterRun(TestCaseRunner testRunner, TestCaseRunContext runContext)
afterRun
in interface TestRunListener
afterRun
in class SoapUITestCaseRunner
public void afterOriginalStep(TestCaseRunner testRunner, SecurityTestRunContext runContext, SecurityTestStepResult result)
afterOriginalStep
in interface SecurityTestRunListener
public void afterRun(TestCaseRunner testRunner, SecurityTestRunContext runContext)
afterRun
in interface SecurityTestRunListener
public void afterSecurityScan(TestCaseRunner testRunner, SecurityTestRunContext runContext, SecurityScanResult securityScanResult)
afterSecurityScan
in interface SecurityTestRunListener
public void afterSecurityScanRequest(TestCaseRunner testRunner, SecurityTestRunContext runContext, SecurityScanRequestResult securityScanReqResult)
afterSecurityScanRequest
in interface SecurityTestRunListener
public void beforeRun(TestCaseRunner testRunner, SecurityTestRunContext runContext)
beforeRun
in interface SecurityTestRunListener
public void beforeSecurityScan(TestCaseRunner testRunner, SecurityTestRunContext runContext, SecurityScan securityScan)
beforeSecurityScan
in interface SecurityTestRunListener
public void beforeStep(TestCaseRunner testRunner, SecurityTestRunContext runContext, TestStepResult testStepResult)
beforeStep
in interface SecurityTestRunListener
Copyright © 2019. All Rights Reserved.