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.

How to validate whether a value is present or not in the response without specifying the element??

Options

We need to validate whether a particular value is present in the response or not without specifying the element as the value will changes its place dynamically.

Answers

  • jakubiak
    jakubiak Posts: 798 admin
    Options

    Use an assertor tool and create an occurrence assertion set to 1, using an XPath that is general enough to find the element wherever it can appear in the payload.