MikeDally
9 years agoContributor
Is it possible to pass a parameter from the Maven command line to SoapUI?
Hi SoapUI Community,
I would like to build my SoapUI project by passing in a parameter. In my case, I want to specify the environment I want use, and use this as a property in SoapUI.
Can anyone suggest what changes I need to make to my pom.xml file and SoapUI project?
Apologies for the late up date on this - I've been able to do this in the following way:
Update the pom.xml configuration section with the following:
<configuration> <reportName>SoapUI report</reportName> <projectFile>oxi-regression-user-acceptance-tests</projectFile> <outputFolder>${project.build.directory}/reports/</outputFolder> <junitReport>true</junitReport> <exportAll>true</exportAll> <printReport>true</printReport> <projectProperties> <projectProperty>Environment=${Environment}</projectProperty> </projectProperties> </configuration>
Then in my maven command reference this as:
mvn test -DEnvironment=staging