![]() Now write some tests to check the results. GET request used here is Įndpoint is defined in environment file and countrycode will be in data file Next step is to create a collection with a GET request and write tests to verify the response. Environment fileįirst, create an enviornment Manage Environment option at top right. ![]() Let us take a look to see how this can be achieved using postman data files. Let us assume that, we need to test this API with multiple country codes. This API will return the name of the country depending on the 2 digit code passed. This is available only when we run through postman collection runner or newman.įor this example, let us take a free public API. Luckily postman supports this by providing facility to use data files. ![]() One of the common requirement for automated testing is to run same test case against multiple test data.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |