Is there a way to pass in Rest Services endpoint info via the command line (mvn) ?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2016
07:02 AM
03-01-2016
07:02 AM
Is there a way to pass in Rest Services endpoint info via the command line (mvn) ?
So, currently, I can run my tests with maven, via this command -
mvn -Denvironment=env1 -DtestSuite= -Dbranch=master -DtestCase= clean test -Dsoapui.environment=env1
I want to be able to similarly pass in Rest Services endpoints, example
account-api = http://accounts:8300
Is there a way to pass it? I see that there is soapui.endpoint, but I am unsure how to pass the info.
Thanks
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2016
10:21 AM
03-01-2016
10:21 AM
- soapui project changes: You may set a project level property say APPLICATION_URL and update the test requests with endpoint as ${#Project#APPLICATION_URL}
- pom.xml changes:
<plugin> <groupId>com.smartbear.soapui</groupId> <artifactId>soapui-maven-plugin</artifactId> <version>4.6.1</version> <configuration> <systemProperties> <property> <name>endpoint</name> <value>${app.url}</value> </property> </systemProperties> <projectFile>simple-test-soapui-project.xml</projectFile> <projectProperties> <value>APPLICATION_URL=${app.url}</value> </projectProperties> </configuration> </plugin>
Now, you may add -Dendpoint=http://yourhost:port your command
Disclaimer: Just collected it from net, never tried myself.
Update:
Also look at this resource
Regards,
Rao.
