How can I test multiple Postman APIs?

I am working on multiple apis at the same time, with different urls, endpoints, etc.

I want to run the mail manager in a different environment, depending on which api I am working with.

Ideally, each environment would allow different collections, env variables, etc.

Is it possible?

+3


source to share


3 answers


You can create collections for each environment:

Add collection



New collection

and then use them for each environment.

+1


source


Follow these steps.

  • Create a new collection / folder in postman.
  • Organize the APIs in the order in which they are executed (e.g. API 'A' followed by 'B' if you want to run API 'A' before 'B').
  • Run collection runner
  • You will get the result that the APIs failed with and which passed.


Thank!

0


source


I am working on multiple apis at the same time with different urls, endpoints, etc.

As I understand your question, you have multiple requests and you want them all to work together in the same script, targeting a different URL , because they logically "belong together". To do this, I would create an environment for this scenario and include one entry for each API url so that each request can target its respective url.

This builds on the fact that you can specify environment variables in your URL definition, which is great!

0


source







All Articles