Forum Discussion

prabhukiran_nar's avatar
10 years ago

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

  • 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