Running with command line mvn with external property file
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Running with command line mvn with external property file
Hi,
We have a problem soupui test cases runnnig with maven. Normally we created test data in the program with groovy script. Now, we want to run with external properties file. I have a file named properties.txt . When i running with command line i use this command "mvn clean test" . With my pom.xml i could not use my property values inside the project xml. Seems like i could not reach these values.
Here is my pom.xml:
<configuration>
<projectFile>${basedir}/src/
<outputFolder>${basedir}/
<junitReport>true</
<printReport>false</
<soapuiProperties>
<property>
<name>soapui.logroot</name>
<value>${project.build.
</property>
<property>
<name>soapui.properties.
<value>${basedir}/properties.
</property>
</soapuiProperties>
<!--projectProperties> <value>envName=${urlName}</
<endpoint>${endpoint}</
</configuration>
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi,
kindly try below command:
mvn clean test -Dmyproperty=PropertyFileName.properties
Did my reply answer your question? Give Kudos or Accept it as a Solution.
