Contributions
Update test step properties in all REST steps of a test suite
Hi Community, I'm a novice in SoapUI Groovy scripting and recently I faced with one issue that I can't resolve so far. So Iam in desperate need of your help. Could you please advise me any solution of how to update test step properties (sending as a header of REST test step) for the whole test suite using Groovy script? Usually my test case consists of 3-4 REST test steps with the same set of test step properties for all of them and 2-3 property transfer steps between them. At the current moment I found only one simple solution of how to updatetest step properties for one particular test step: def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context) //set data parameter value in TestStep groovyUtils.setPropertyValue("TestStepName", "TestStepProperty", "Value1"); groovyUtils.setPropertyValue("TestStepName", "TestStepProperty2", "Value2"); groovyUtils.setPropertyValue("TestStepName", "TestStepProperty3", "Value3"); The above script is working fine for me, but it is relatively time-consuming to update thetest step properties using this script because it is necessaryto update test step name on a regular basis before using the script for the next REST test step. Thank you in advance for any help or advice.829Views0likes0Comments