Validate the element name in JSON

AnuSureshAnuSuresh Posts: 3

I have a scenario to validate that the response JSON has retrieved only the required elements based on the request API. I don't need to validate the values of the elements.

Elements :

Expiration date
License Name



  • benken_parasoftbenken_parasoft Posts: 975 ✭✭✭

    The "Assertor" tools have an "Occurrence Assertion". You could create an "Occurrence Assertion" for each element/property to verify its existence.

    Alternatively, you can also a Diff tool then configure "Ignored Differences" for each value you want to ignore.

  • AnuSureshAnuSuresh Posts: 3

    Thanks benken_parasoft

Sign In or Register to comment.