As we have the concepts of grouping the test cases depending on the requirement from the user end.
Can we have the same implemented in postman tests.
Sample Code:
@healthCheck
pm.test(“Status code is 200”, function () {
pm.response.to.have.status(200);
});
Considering the above test which executes for the single API call (User Login).
If I have to run this API without including the API in my every collection.
Can I tag them with the tags and run them using the tags…?
Is tagging a supported feature in the postman.
- I have an API which should get executed for Sanity, Regression and Smoke Test so if I apply / add the respective tags as sanity or regression as same as healthCheck for the use case and run the test with any of these I am expecting the test to run.