Forum Discussion

freddejones's avatar
freddejones
New Contributor
13 years ago

Load tests with SoapUITestCaseRunner/SoapUIProTestCaseRunner

Hi,

Have anyone had any luck with running load tests within the JUnit soloution that can be found here:
http://www.soapui.org/Test-Automation/i ... junit.html

public void testRunner() throws Exception
{
SoapUITestCaseRunner runner = new SoapUITestCaseRunner();
runner.setProjectFile( "src/dist/sample-soapui-project.xml" );
runner.run();
}

Since we are building a build pipeline we want the most processes to be automated as much as possible.
I would like to trigger the load tests from the Junit runner as and not only the functional tests.
However it seems like those tests are never executed.
I can run them via the command line interface but I would rather see it within the Java/Junit solution.

Any suggestions?

Regards
Fredrik
  • Well I was able to solve the trigger of the tests by using the correct test runner (SoapUIProLoadTestRunner).

    However I wonder now how I can create nicely pdf-reports?
    I'm using pro and have a licence key however I'm not even able to create them by the GUI.
    Anyone have any input about this?

    /Fredrik