Negative testing
What about negative testing? Usually, when working in the Agile world, users test at the minimum, and then extend test coverage after the feature has been built. But, when using a data-driven testing model, users can cover both the positive and negative testing scenarios all at once. This opens the door to testing the boundary and limits of the feature, testing the exceptions that may occur when exceeded.
Let's look at how this is done!
When we developed the JSON datasets, we really only talked about positive testing data. Now, we can easily extend the positive tests to negative testing by adding an exception message field to the JSON object, setting it to null for the positive tests, and then including the error for the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access