Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

Validate the element name in JSON

Options
AnuSuresh
AnuSuresh Posts: 5

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_parasoft
    benken_parasoft Posts: 1,232 ✭✭✭
    Options

    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.

  • AnuSuresh
    AnuSuresh Posts: 5
    Options

    Thanks benken_parasoft

Tagged