Forum Discussion

logeshkumarvb's avatar
logeshkumarvb
Occasional Contributor
9 years ago

How to validate complete Json output response

Please provide a solution how to validate complete data from the Json response ?

4 Replies

  • nmrao's avatar
    nmrao
    Champion Level 3
    Do you have any schema or something to validate against? Is there only single response or multiple responses, if so, schemas may vary.
    Have you tried any thing? May be you can achieve this using groovy script.
    See on the documentation of soapui or on net, you will have some samples to start with.
    If you have any specific issue, please write in the forum.
    • logeshkumarvb's avatar
      logeshkumarvb
      Occasional Contributor

      Thanks for your response !

       

      Let me explain in detail, I want to have API automation in place using SOAPUI so where am planning to valid complete data from the output JSON response when executing test runner. Please do provide me any good documentation or any reference web link where I can refer for Test Automation - Webservices using SOAPUI.

       

      Thanks in advance

       

      {code}


      {"tripInfoFeed":

      {
      "code": 200,
      "message": "Success",
      "reason": null,
      "generatedAt": "Jul-03-2015, 09:59 AM UTC",
      "generatedAtInMillis": 1435917590117,
      "trips": [ {
      "vehicleId": "9a8df3ea-134a-11e5-82bd-5f4d257b3d67",
      "tsLat": 39.0729,
      "tsLon": -94.5321,
      "tsAddress": "Interstate 70, Kansas City, MO 64128, USA",
      "tsTime": 1434364719000,
      "teTime": 1434364727000,
      "tsFixQuality": 0,
      "teFixQuality": 0,
      "teLat": 39.04654,
      "teLon": -94.42638,
      "teAddress": "Interstate 70, Independence, MO 64055, USA",

      }]
      }}

       

      {code}