Contributions
The values from properties in a PropertiesStep in SoapUI are also saved to the project XML ?
It seems that dynamic generated proeprties, which are saved in a PropertiesStep with a Groovy script like: testRunner.testCase.testSteps["DynamicProperties"].setPropertyValue("MyId", "abc") Are persisted in the XML project file: <con:testStep type="properties" name="DynamicProperties" id="d211dd62-4875-4b60-bde8-cb542fa7df47"> <con:settings/> <con:config xsi:type="con:PropertiesStep" saveFirst="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <con:properties> <con:property> <con:name>MyId</con:name> <con:value>abc</con:value> </con:property> </con:properties> </con:config> </con:testStep> Which is not what I want, because when this value is dynamic (like a timestamp), the XML project file is updated each time I run a test ?8 years agoPlace ReadyAPI QuestionsReadyAPI Questions665Views0likes0CommentsRe: How to retrieve the selected environment from the command line (-E) in a groovy script?
I don't think that statement testRunner.testCase.project.getActiveEnvironment().name is not correct. I have the feeling that the value saved in the project-url is overwrting the value on the command-line. I'll do some more testing.8 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.4KViews0likes1CommentRe: How to retrieve the selected environment from the command line (-E) in a groovy script?
Dear Rao, When the SoapRunner.bat is used to run a test, the environment can be supplied using that -E command line parameter. Now inside my test, I want to use a groovy script to retrieve the value for this -E command line parameter so that I can determine the environment. This environment is then used by the script script to do some specific business logic. (I don't want to use the saved selected environment from the project, but I want to use this value.)8 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.4KViews0likes1CommentHow to retrieve the selected environment from the command line (-E) in a groovy script?
Hi all, I know how to retrieve the active environment from the project (UI) using this solution. However I want to know how to get the environment which is provided as a commandline parameter (e.g. when started via soaprunner.bat) like : -ELOCAL_ENV Is this possible with groovy scripting ?8 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.5KViews0likes7Comments