smadji
11 years agoContributor
[Res]how to add property into header
I have created a property that is dynamically updated with a token (via groovy script)
Now I need to bring the content of the property into my header.
I found a page in the documentation that says this is possible
http://www.soapui.org/SOAP-and-WSDL/add ... tp-headers
and a page showing me how to do this:
http://www.soapui.org/Scripting-Propert ... nsion.html
But when I tried to construct the actual text from the instructions - I cant get it to work.
Here is what the documentation has me follow:
${[scope]propertyName[#xpath-expression]}
The scope is going to be my suite case (at the suite level is where I created my property)
the property name is token
I dont think there is an xpath for the property
can someone tell me what I should put in the header to get this to work?
Thanks
Smadar
Now I need to bring the content of the property into my header.
I found a page in the documentation that says this is possible
http://www.soapui.org/SOAP-and-WSDL/add ... tp-headers
and a page showing me how to do this:
http://www.soapui.org/Scripting-Propert ... nsion.html
But when I tried to construct the actual text from the instructions - I cant get it to work.
Here is what the documentation has me follow:
${[scope]propertyName[#xpath-expression]}
The scope is going to be my suite case (at the suite level is where I created my property)
the property name is token
I dont think there is an xpath for the property
can someone tell me what I should put in the header to get this to work?
Thanks
Smadar