Forum Discussion
Alex99
8 years agoContributor
You could use property expansion like this ${#Project#firstname}, basically #Project or TestSuite or TestCase#<propertyname>, see also here click me.
So if the fields are set on the project itself, use it like this:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Header/>
<soap:Body>
<name>${#Project#firstname} ${#Project#lastname}</name>
</soap:Body>
</soap:Envelope>
This will result in request looking like this:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Header/>
<soap:Body>
<name>James Dean</name>
</soap:Body>
</soap:Envelope>
In groovy script it is slightly more convoluted, as you have to type context.expand('${#Project#firstname}').