Forum Discussion
Does anyone have any idea about this?
You can use a property file, say soapui.properties to define all the properties that you needed. Use these properties as endpoints in your suites.
And this properties needs to be in the same place where you invoke the test runner, and those gets loaded automatically.
- automatoramit10 years agoOccasional Contributor
Hi Rao,
Thanks for your Reply. I am using project custom properties to store all the three endpoints. Are you talking about the project custom properties only or something else (soapui.properties)?
Could you give a small example, if it is something else like soapui.properties?
And the commad is - testrunner.bat -e${#Project#Endpoint1} -r -f"SomeResultLocation" -i Project.xml
Here I can provide only one endpoint i.e. ${#Project#Endpoint1} (As per my understading), but as mentioned in test structure, my test requires three different endpoints.
I tried with "testrunner.bat -e${#Project#Endpoint1} -e -e${#Project#Endpoint2} -r -f"SomeResultLocation" -i Project.xml" too but no luck.
- nmrao10 years agoChampion Level 3You can use custom properties as well, then you have to load those properties by writing some code. If you use soapui.properties and place it under SOAPUI_HOME\bin then the properties gets loaded automatically.
- automatoramit10 years agoOccasional Contributor
Ok. I'll try this.
Thanks
- SUDIP23077 years agoFrequent Visitor
Hi
Can you please give me sample of properties file and also how to call these properties while running from command line.
Related Content
- 6 years ago