flostandard
11 years agoNew Contributor
Testing both format (XML and JSO)
Hello,
I need to test my REST service response in both XML and JSON format.
What is the easiest way ?
I thought I could reuse the same assertion but I've discovered that the XPath Match expression are different depending on the format:
XML :
person[1]
JSON:
declare namespace ns1='http://namq1d121.slacdev.ca/consumer-rs/v1/gimember/coverage';
ns1:Response[1]
Regards,
I need to test my REST service response in both XML and JSON format.
What is the easiest way ?
I thought I could reuse the same assertion but I've discovered that the XPath Match expression are different depending on the format:
XML :
person[1]
JSON:
declare namespace ns1='http://namq1d121.slacdev.ca/consumer-rs/v1/gimember/coverage';
ns1:Response[1]
Regards,