leighk51
8 years agoNew Contributor
Using Groovy to set JMS Properties
I've looked all over the place and don't seem to be able to find much information at all.
I need to transfer a value into one of my JMS Properties (not the JMS Headers, the Properties themselves).
I can't do this manually as the value I'm trying to pass in will be dynamic (it is the current date and time in a specific format as the message is sent that's needed).
I have this value no problem, and I can transfer it pretty much anywhere except the one place I actually need it, any help would be greatly appreciated!
- Go to test case level custom properties which is on left hand side, down side.
Define the property name, say PROPERTY_NAME and value.
Now go to Jms Properties, use ${#TestCase#PROPERTY_NAME} instead of hardcoded value.
Also see documentation:
https://www.soapui.org/scripting---properties/property-expansion.html
https://www.soapui.org/functional-testing/properties/working-with-properties.html