Forum Discussion
Alex99
7 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}').
Related Content
- 7 years ago
- 13 years ago
- 4 years ago
- 3 years ago
Recent Discussions
- 19 minutes ago
- 15 years ago