Body via scenario
Using a scenario allows us to generate multiple request, only changing certain values.
Scenario definition
| script | xml http test |
| table template | send request | ||
| set value | http://tempuri.org/SOAP.Demo.AddInteger | for header | SOAPAction |
| post |
<s11:Envelope xmlns:s11="http://schemas.xmlsoap.org/soap/envelope/">
<s11:Body>
<ns1:AddInteger xmlns:ns1="http://tempuri.org">
<ns1:Arg1>@{arg1}</ns1:Arg1>
<ns1:Arg2>@{arg2}</ns1:Arg2>
</ns1:AddInteger>
</s11:Body>
</s11:Envelope>
|
to | http://www.crcind.com/csp/samples/SOAP.Demo.cls |
| check | response status | 200 | |
| show | response | ||
| register prefix | tempuri | for namespace | http://tempuri.org |
| $result= | xPath | //tempuri:AddIntegerResult/text() | |
| send request | |||||||||||||||||||||||||||||||
| arg1 | arg2 | result? | |||||||||||||||||||||||||||||
| 1 | 1 | 2 | |||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
| 34 | 16 | 50 | |||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||