JMcKinley
16 years agoContributor
Grabbing a response from SOAPUI Pro # 2
Previously, I posted a question about evaluating data in a response... an XPath assertion associated with the request works great...
Now, I have an additional complication:
The response I need to evaluate has repeating pairs of data... For example:
Lets say, we have two fields - one called text and the other called desc... the response might have:
id = 1
Text = "123"
desc = "ABC"
id = 2
Text = "456"
desc= "XYZ"
I just entered the data associated with id 2 but the response contains the data associated with id 1 and 2
I want to evaluate that Text = "456" has a description of "XYZ". Is there a way to evaluate that 456 is associated with XYZ using an assertion associated with the request?
I hope this makes sense
Thanks!
Jim
Now, I have an additional complication:
The response I need to evaluate has repeating pairs of data... For example:
Lets say, we have two fields - one called text and the other called desc... the response might have:
id = 1
Text = "123"
desc = "ABC"
id = 2
Text = "456"
desc= "XYZ"
I just entered the data associated with id 2 but the response contains the data associated with id 1 and 2
I want to evaluate that Text = "456" has a description of "XYZ". Is there a way to evaluate that 456 is associated with XYZ using an assertion associated with the request?
I hope this makes sense
Thanks!
Jim