The code I posted only works if the property already exists. What depeche posted is correct, but the code works project level properties, not for the global properties. However the change to write global properties is simple:
Hi Dain, Thats correct dain. What i posted is for project level properties. Is there any other way around apart from what i posted to set the project level or test suite level or test case level properties? I mean to say by using com.eviware.soapui.model.propertyexpansion or any other in groovy script.