Forum Discussion

chen's avatar
chen
Occasional Contributor
15 years ago

SoapUIProTestCaseRunner selective tests execution

Hi,

I'm using SoapUIProTestCaseRunner (v3.6) in my tests for selective TestCases execution.
During execution I noticed that some TestCases, NOT within selected TestSuite, are also executed.
Here's an example, my project contain the following tests hierarchy:
-TestSuite 1
--TestCase1

-TestSuite 2
--TestCase1

Executed code:
SoapUIProTestCaseRunner r = new SoapUIProTestCaseRunner();
r.setProjectFile(f.getAbsolutePath());
r.setHost("[ip]");
r.setIgnoreError(true);
r.setPrintReport(true);
r.setJUnitReport(true);
r.setExportAll(true);
r.setOutputFolder(outputFolder.getPath());

r.setTestSuite("TestSuite 1");
r.setTestCase("TestCase 1");

r.run();


After execution, when I checked my Junit reports, I noticed that 'TestCase 1' within 'TestSuite 2' was also executed. - soapui.log also confirmed it.
Is this method of execution is as desigened? -when I use distinct TestCase name it doesn't happen, but do I have a way to cause only 'TestCase 1' within 'TestSuite 1' to be executed?

Thanks,
Chen.

3 Replies

  • chen's avatar
    chen
    Occasional Contributor
    Hi,

    Thanks for your response.
    Indeed, this issue is not reproduced in version 3.6.2.
    I didn't used the installer but got all dependencies from your Maven repository for version 3.6.2-SNAPSHOT.
    -Do you have an estimation when it will be released, so I wont need to work from SNAPSHOT repository?

    Thanks,
    Chen.
  • All bug fixes since 3.6.1 will be included in soapUI 4.0 beta that is due 17th of May. Hopefully you don't want 3.6.2 when 4.0 is out

    /Henrik
    eviware.com