Forum Discussion
redfish4ktc2
11 years agoSuper Contributor
nmrao the testSuite parameter is right (see the end of the post you have provided and the plugin documentation
)
The problem comes from the plugin configuration. The configuration is only set for the defined execution binded to the test phase. Give a try to mvn clean test -DtestSuite="my-failing-test-suite" (this will fail as the providing testsuite name does not exist, but you will now be sure the parameter is used)
If you want to use the plugin outside of a maven phase, put the configuration outside of the execution definition
I have also some remarks about the pom
- the url of the plugin repository is wrong: it should be http://www.soapui.org/repository/maven2
- you can remove the <testSuite>${testSuite}</testSuite> from the pom. This is undocumented but you have a way to override plugin properties directly from the command line. For the testSuite parameter, use -Dsoapui.testsuite="my-failing-test-suite". Usually, you can use -Dsoapui.<property_name> but sometimes the case is no the same (as for testSuite) or sometimes a completly different value (as for settingsPassword with -Dsoapui.settingfFile.password). You can find all values in the META-INF/maven/plugin.xml in the jar of the maven plugin
![](http://community.smartbear.com/legacyfs/online/smilies/wink.gif)
The problem comes from the plugin configuration. The configuration is only set for the defined execution binded to the test phase. Give a try to mvn clean test -DtestSuite="my-failing-test-suite" (this will fail as the providing testsuite name does not exist, but you will now be sure the parameter is used)
If you want to use the plugin outside of a maven phase, put the configuration outside of the execution definition
I have also some remarks about the pom
- the url of the plugin repository is wrong: it should be http://www.soapui.org/repository/maven2
- you can remove the <testSuite>${testSuite}</testSuite> from the pom. This is undocumented but you have a way to override plugin properties directly from the command line. For the testSuite parameter, use -Dsoapui.testsuite="my-failing-test-suite". Usually, you can use -Dsoapui.<property_name> but sometimes the case is no the same (as for testSuite) or sometimes a completly different value (as for settingsPassword with -Dsoapui.settingfFile.password). You can find all values in the META-INF/maven/plugin.xml in the jar of the maven plugin
Related Content
- 9 years ago
- 13 years ago
- 11 years ago