Validate the element name in JSON

AnuSureshAnuSuresh Posts: 2

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 :

Certificate
Expiration date
License Name
Org

Tagged:

Comments

  • benken_parasoftbenken_parasoft Posts: 921 ✭✭✭

    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: 2

    Thanks benken_parasoft

Sign In or Register to comment.