Service Virtualization

 View Only
  • 1.  Need to compare two JSON responses

    Posted Dec 12, 2018 01:42 AM

    I have two API responses in JSON format . I need to compare two different responses as part of validations . I tried by using Store Step response filter to two different properties and then applied "Ensure Two Properties are equal" assertions to validate both the responses. Not sure this is correct approach . In the execution result i see the assertion is passed the evaluation 


    Please clarify is there any othr option to check two responses




  • 2.  Re: Need to compare two JSON responses

    Broadcom Employee
    Posted Dec 12, 2018 10:53 AM

    You ca use  "Ensure Two Properties are equal" assertion or Graphical Text Diff assertion also. Documentation is available at Graphical XML Side-by-Side Comparison - DevTest Solutions - 10.3 - CA Technologies Documentation