API Testing - JSON response Validation
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2014
01:55 AM
12-16-2014
01:55 AM
API Testing - JSON response Validation
Hi,
If I have multiple testcases for testing different REST services, lets say 100 test cases,
1) Is there any single solution to validate all the REST service responses(100 testcases) with use of any framework ?
2) Is there any solution to record the REST Service response and use it in next time for continuos integration ?
Thanks
Prabhukiran Narava
If I have multiple testcases for testing different REST services, lets say 100 test cases,
1) Is there any single solution to validate all the REST service responses(100 testcases) with use of any framework ?
2) Is there any solution to record the REST Service response and use it in next time for continuos integration ?
Thanks
Prabhukiran Narava
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2015
02:50 AM
01-07-2015
02:50 AM
Hello,
"1) Is there any single solution to validate all the REST service responses(100 testcases) with use of any framework ?"
You can use assertions in SoapUI Pro NG to validate your JSON responses, for example the JsonPath assetions. Please see this link for more information, http://readyapi.smartbear.com/structure/assertions/property/json/intro/start.
"2) Is there any solution to record the REST Service response and use it in next time for continuos integration ?"
You will need to give more detail of what specifically you are trying to do, but you could save the REST responses to a file by using a DataSink test step so you can use them again later. The following link gives an example of this, but uses an excel spreadsheet instead of a text file. http://readyapi.smartbear.com/structure/steps/data/sink/example
Regards,
Marcus
SmartBear Support
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
"1) Is there any single solution to validate all the REST service responses(100 testcases) with use of any framework ?"
You can use assertions in SoapUI Pro NG to validate your JSON responses, for example the JsonPath assetions. Please see this link for more information, http://readyapi.smartbear.com/structure/assertions/property/json/intro/start.
"2) Is there any solution to record the REST Service response and use it in next time for continuos integration ?"
You will need to give more detail of what specifically you are trying to do, but you could save the REST responses to a file by using a DataSink test step so you can use them again later. The following link gives an example of this, but uses an excel spreadsheet instead of a text file. http://readyapi.smartbear.com/structure/steps/data/sink/example
Regards,
Marcus
SmartBear Support
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
