SoapUI-How to pass Environment variable from cmd
Hi Team ...I want to pass a variable while running from command prompt like the env variable or a property file..
Help me with some hacks or alternatives.
The main aim is to run my project with diff env where i kept the 3 env properties file outside.
I want to run this in only SOAPUI from jenkins.
Hi @nmrao ..any idea on this?
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:
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:
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.
Subject | Author | Latest Post |
---|---|---|