cancel
Showing results for 
Search instead for 
Did you mean: 

SoapUI SecurityTest Java/JUnit: no factory for this scan type exists

SOLVED
Highlighted
Occasional Contributor

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

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Contributor

Re: SoapUI SecurityTest Java/JUnit: no factory for this scan type exists

Use SoapUIProSecurityTestRunner instead of SoapUISecurityTestRunner since it is a Secure Pro scan.

View solution in original post

2 REPLIES 2
Highlighted
Contributor

Re: SoapUI SecurityTest Java/JUnit: no factory for this scan type exists

Use SoapUIProSecurityTestRunner instead of SoapUISecurityTestRunner since it is a Secure Pro scan.

View solution in original post

Highlighted
Occasional Contributor

Re: SoapUI SecurityTest Java/JUnit: no factory for this scan type exists

Hi Pjat

Thanks! I completelly overlooked this detail!

Regards, Reto

New Here?
Join us and watch the welcome video:
Top Kudoed Authors