chen
14 years agoOccasional Contributor
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:
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.
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.