SoapUI SecurityTest Java/JUnit: no factory for this scan type exists
Hi, I use Java / JUnit to run my SoapUI PRO TestSuites. Actually this works fine with:
SoapUIProTestCaseRunner runner = new SoapUIProTestCaseRunner(); runner ...
No errors when running this test.
Now, I've added a security test (with SecurePRO) to the same TestCase.
It seems as I have to run this special security test with:
SoapUISecurityTestRunner runner = new SoapUISecurityTestRunner();
runner ...
When running this test, I get following error:
16:28:43,844 ERROR [SecurityTest] Could not create security scan with type: HttpMethodFuzzingScan, no factory for this scan type exists
Anyone know what this could mean?
Do I miss some dependency?
Both runners come from here:
<dependency> <groupId>com.smartbear</groupId> <artifactId>ready-api-runners</artifactId> <version>1.5.0</version> <scope>test</scope> </dependency>
Full Java JUnit Code:
String soapuiProjectFile = "SbSoapUI_crm_contact_rest_with_security.xml";
SoapUISecurityTestRunner runner = new SoapUISecurityTestRunner();
runner.setProjectFile(getFullPathFilenameSoapUiProjectFile(soapuiProjectFile));
runner.setPrintReport(true);
runner.setExportAll(false);
runner.setOutputFolder(SOAPUIOUTPUTFOLDER);
runner.setSettingsFile(SOAPUISETTINGSFILE);
runner.setJUnitReport(true);
runner.run();
Thanks
Regards, Reto
Use SoapUIProSecurityTestRunner instead of SoapUISecurityTestRunner since it is a Secure Pro scan.