Forum Discussion
SmartBear_Suppo
Alumni
16 years agoHello,
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:
This will set a global property, and first create it if it doesn't already exist.
Regards,
Dain
eviware.com
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:
com.eviware.soapui.model.propertyexpansion.PropertyExpansionUtils.globalProperties.setPropertyValue('PropertyName', 'PropertyValue')
This will set a global property, and first create it if it doesn't already exist.
Regards,
Dain
eviware.com