postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.85k stars 841 forks source link

Request Tags #6498

Open michaelvannevel opened 5 years ago

michaelvannevel commented 5 years ago

Is your feature request related to a problem? Please describe. Say I have an order processing collection, with 3 postman environments one for prod, one for dev, and one for local development. I don't want to actually place orders when in production environment, so i want to skip them when running my tests when in production environment.

Describe the solution you'd like I would like to be able to add tags to requests in a collection. I would then like to be able to tell the postman runner and newman to run all requests in a collection related to a set of tags. This way there is no need to constantly call setNextRequest to get to the next request when running tests and I don't need to duplicate large amounts of requests and/or create new collections. Also based on the scenario above as well as a multitude of other scenarios request tags would allow people to manipulate and choose which request tests they would like to run without using extra if/else logic and variables.

Describe alternatives you've considered I could create a larger number of requests by creating separate collections, but my team already has a large number of collections. I could skip tests based off of an environment etc variable, but that is not very intuitive or obvious to any user on my team.

Additional context I believe that adding request tags would be an elegant way to get around the issue of having to duplicate requests/collections for testing scenarios. In my particular circumstance, I have a collection with a tests folder, and within that tests folder I have some tests which I only want to run in our dev environment, some i only want to run in our staging environment etc. I don't believe it is an elegant thing to just copy the collections so that I can then run them in runner or Newman.

I was just thinking about this today as well. This would also give you a way to essentially stage requests to be included when code is deployed. Say I create a Tag called 'Staged' this tag would be skipped when running newman tests. When i'm ready to release my next set of code, i switch the tag to 'Production' or whatever branch i might want to run.

ritman-us commented 5 years ago

Any update on this request ?

testerncoder commented 4 years ago

Any update on this request, please write if we can run a collection in different environments, like- staging and prod by excluding some request or test.

Ani121293 commented 4 years ago

Please let us know the deadline for this. when the feature will be added? Thanks in advcane

KreuzigTobias commented 4 years ago

Any Update here?

arlemi commented 4 years ago

We appreciate the support but please use the 👍 reaction on the first post to show it, replying with a +1 only sends unhelpful notification to all participants in the thread.

If/when we have any news to publish about this feature request we'll do so here. 🙂

Saravana-Kumar-N-ZS0542 commented 1 year ago

Do we have any updates on this request, please? Its been a few years.