Forum Discussion
DeeJunFan
New Contributor
Hi,
I'm pretty new to SoapUI and for me this code isn't creating a global property if it doesnt already exist.
com.eviware.soapui.model.propertyexpansion.PropertyExpansionUtils.globalProperties.setPropertyValue('{PropertyName}', '{value})
Anyone know how i can create Global Properties from a script in a mock service if they dont already exist?
Thanks
D
DeeJunFan
9 years agoNew Contributor
My Apologies,
The code does work.
I had placed the code in the wrong script (had it in the set response) But the get was being called at an earlier stage which attempted to use the Global property.
So, thanks for the info. Worked a treat!
D
Related Content
- 10 months ago
Recent Discussions
- 15 years ago