Imposing Multiple Verification Points to validate a response content of web service call under IBM Rational Performance Tester
Rajeshavanthi 2700022MCX Visits (2156)
Here's a quick requirement scenario on testing Verification points for a web service response (which is XML in nature) in IBM Rational Performance Tester (RPT) v126.96.36.199
There are two different set of responses for one request. Based on whether the service has passed/failed, two entirely different xml will be returned. As of now you have a contain verification point to validate if the service has passed but the requirement is to add a condition so that when the response fails even that can be validated through the same scripts. Since conditional statements or multiple verification points are not allowed on same tag/response, this becomes a challenging task.
The best fit is to write a custom code that will help to address this use-case. To have this working:
1) Turn the XML answer of the web service into a Text Answer
2) Then it is possible to create a field reference on the full answer, as shown below.