Ask a Question

API Testing - JSON response Validation

prabhukiran_nar
Not applicable

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
1 REPLY 1
MarcusJ
Moderator

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. ⬇️⬇️⬇️
cancel
Showing results for 
Search instead for 
Did you mean: