everybody!
Using SoapUI 5.2.1 and Groovy TestCase has 2 Test Steps:
- SOAP Request "create"
- Groovy Script
Inside the request:
<soapenv:Envelope ... >
<soapenv:Header/>
<soapenv:Body>
<ban:transactions>
<session>x</session>
<type>y</type>
</ban:transactions>
</soapenv:Body>
</soapenv:Envelope ... >
Inside script:
def xml = context.expand('${create#request#//ban:transactions}')
This script returns:
<ban:transactions>
<session>x</session>
<type>y</type>
</ban:transactions>
What should i change in script, so that script could return me:
<session>x</session>
<type>y</type>