Forum Discussion
SmartBear_Suppo
11 years agoSmartBear Alumni (Retired)
Hi,
What you can do is use a Groovy test step to assert that the number of stock quotes in the response is equal to the length of the quote list in the request. Counting the number of elements in the request list can be done using the split() method in Groovy's String class.
Regarding how to easily parsing XML in groovy, I recommend this link - http://www.robert-nemet.com/2011/11/gro ... oapui.html
I hope this is enough to get you started. Let me know if you have any further questions.
Regards,
Arian
SmartBear sweden
What you can do is use a Groovy test step to assert that the number of stock quotes in the response is equal to the length of the quote list in the request. Counting the number of elements in the request list can be done using the split() method in Groovy's String class.
Regarding how to easily parsing XML in groovy, I recommend this link - http://www.robert-nemet.com/2011/11/gro ... oapui.html
I hope this is enough to get you started. Let me know if you have any further questions.
Regards,
Arian
SmartBear sweden
Related Content
- 3 months agoarmygrad