Forum Discussion
ZDGN
5 years agoContributor
Hi GAcharya
If you only want to pass a variable to SoapUI using the command line (aka testrunner), you can easily use one of those option for example:
- D : Sets system property with name=value
- G : Sets global property with name=value
- P : Sets project property with name=value, e.g. -Pendpoint=Value1 -PsomeOtherProperty=value2
You can find more info here: https://www.soapui.org/docs/test-automation/running-functional-tests/
Another way could be to create different "soapui-settings.xml" files including some specific global properties, and set the file to use with this option:
- t : Sets the soapui-settings.xml file to use, required if you have custom proxy, ssl, http, etc setting
In case you want more, like using a properties file, I suggest using some kind of "Setup Script" to load your custom properties. But you'll have to duplicate the script into each TestSuite or TestCase depending on your usage.
Let me know if it can help.
Related Content
- 10 years ago
- 5 years ago
- 9 years ago
Recent Discussions
- 15 years ago