sathyarajg
7 years agoOccasional Contributor
Solved
How to get the xpath match assertion value in next step of groovy script ?
I have two test steps in my soapui test suite.
The first test step is to get the http response .here I am getting the specific content using xpath match assertion ://employee/username provides username of the employee (not groovy)
Step 2 adding groovy script to get the test step 1 xpath match assertion value(username) in script assertion.
Kindly please help me to this.
The first test step is to get the http response .here I am getting the specific content using xpath match assertion ://employee/username provides username of the employee (not groovy)
Step 2 adding groovy script to get the test step 1 xpath match assertion value(username) in script assertion.
Kindly please help me to this.
Property transfer steps are a quick option
https://www.soapui.org/docs/functional-testing/properties/transferring-properties.html
then you can get properties in groovy script when needed
https://www.soapui.org/scripting-properties/tips-tricks.html#1-1-Get-and-Set-properties