Forum Discussion
4 Replies
Sort By
- redfish4ktc2Super ContributorHi,
I've you try -Dsoapui.testSuite=suiteName - HammerTimeOccasional ContributorThanks
I figured out that putting this in the pom:
<testSuite>${testSuite}</testSuite>
And then use the following to run a single testsuite
-DtestSuite="testSuiteName"
but not providing this would still run all of the testsuites
thanks - redfish4ktc2Super ContributorHammerTime
yes, you're right, the configuration you state in your previous post works because the soapui test runner run all suites when the testSuite parameter is null (ie when you don't provide -DtestSuite="testSuiteName" in the command line)
Also, if you had configured the pom like this:<testSuite>${a_property_name}</testSuite>
you should have use:-Da_property_name="testSuiteName"
This means, you use the maven way to pass property to the pom.
The way I proposed you in my previous post is related to the soapui maven plugin implementation. This is undocumented.
For almost all parameters, you can provide/override parameter value with-Dsoapui.<parameter_name>=paramValue
You can check this in the META-INF/maven/plugin.xml file in the maven-soapui-plugin.jar- codehausssContributor
Hello redfish4ktc2 could we use testsuite or testcase custom property to run specific test case/suite?
not based on testSuite name in maven project?
Related Content
- 3 years ago
Recent Discussions
- 2 days ago