Forum Discussion
SmartBear_Suppo
11 years agoSmartBear Alumni (Retired)
Hi,
I suggest you save the unique ID from page one as a TestCase property. You can do this with a Groovy TestStep where you retrieve the unique ID from page one and set it as shown in this tip: http://www.soapui.org/Scripting-Properties/tips-a-tricks.html#1-1-get-and-set-properties
Then add an XPath Match assertion to the request to your second page (see the attached screenshot), that uses the Testcase property for comparison.
Edit:
You can use contains as well as SiKing suggested.
Regards,
Giscard
SmartBear Support
I suggest you save the unique ID from page one as a TestCase property. You can do this with a Groovy TestStep where you retrieve the unique ID from page one and set it as shown in this tip: http://www.soapui.org/Scripting-Properties/tips-a-tricks.html#1-1-get-and-set-properties
Then add an XPath Match assertion to the request to your second page (see the attached screenshot), that uses the Testcase property for comparison.
Edit:
You can use contains as well as SiKing suggested.
Regards,
Giscard
SmartBear Support