Skip to content

Is there a way to call/repeat the same endpoint multiple times per "Tag" or when tags are not present? #456

Answered by thim81
proper-function asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @proper-function

I don't think we support the case to "copy" operations, there is a workaround that you might experiment with although I'm not a big fan of the method: postman.setNextRequest(). You could leverage extendTests to inject postman.setNextRequest() in the PUT/POST operations, but again it is complicated.

An alternative could be to create multiple test suites in different Postman collections using orderOfOperations in combination with the build-in filtering options: https://github.com/apideck-libraries/portman/blob/main/examples/cli-filtering/readme.md#portman-cli-options, which would result in multiple collections like:

Postman A collection:
POST
GET

Postman B collection:
PUT

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@proper-function
Comment options

Answer selected by proper-function
Comment options

You must be logged in to vote
2 replies
@nicklloyd
Comment options

@proper-function
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants