API Testing and Development with Postman by Dave Westerveld

API Testing and Development with Postman by Dave Westerveld

Author:Dave Westerveld [Dave Westerveld]
Language: eng
Format: epub
Publisher: Packt Publishing
Published: 2021-04-30T00:00:00+00:00


Figure 7.3 – Result of the test run

Now that we are actually checking something in the response, these tests are much more interesting, but what if we wanted to check something more specific? What if we wanted to check that certain user IDs match up to certain email addresses? We can't create an assertion in the test that checks for this because the email address will change as we run through each iteration of our dataset, so what can we do? Well, if we don't want to create a separate request for each of the users, we will need to define the expected email for each user ID in our file and then compare the emails from the API responses to those that we have defined in our file.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.