ipstefan
12 years agoOccasional Contributor
TestSuite parameters in command line when running with maven
Here's the status of the project:
There's a project with multiple test suites. In each test suite there are test suite parameters.
The project should be integrated with maven.
Here's what I'd like to do:
Run a test suite with a specific parameter value given from command line using maven(the pom.xml file was already done and has no properties defined).
At the moment, the testsuite can be run without the parameter value that I'm interested in being changed.
The closest I could get to is something like:
maven test -Dsoapui.properties.property.myProperty="propertyvalue"
I have no idea if I am even close to find the correct way to set the property value.
The property is used like ${#TestSuite#propertyname} in the testcases requests and asserts.
Any ideas?
There's a project with multiple test suites. In each test suite there are test suite parameters.
The project should be integrated with maven.
Here's what I'd like to do:
Run a test suite with a specific parameter value given from command line using maven(the pom.xml file was already done and has no properties defined).
At the moment, the testsuite can be run without the parameter value that I'm interested in being changed.
The closest I could get to is something like:
maven test -Dsoapui.properties.property.myProperty="propertyvalue"
I have no idea if I am even close to find the correct way to set the property value.
The property is used like ${#TestSuite#propertyname} in the testcases requests and asserts.
Any ideas?