SumitM
6 years agoOccasional Contributor
How to pass custom properties values to SoapUI Pro from command prompt.
I need to set some custom properties (ex. endpoints, version number, etc) to Test Project custom properties before running the Test suite. I need to pass Custom Properties for Test Project through command prompt. Is there any way I can pass some custom properties through command prompt?
You can do that with the snippet I posted above.
- -PPropertyName=value
- -PAutomated=true
That will at least set a Project level Custom property to an overridden value. I am not 100% sure if that Property has to exist or if this would create it. But I do know if you have a Project level Custom property called "Automated" and it is set to false, passing in "-PAutomated=true" would override that to false when ran with the testrunner.bat command line arguments.