postman-app-support icon indicating copy to clipboard operation
postman-app-support copied to clipboard

[Feature Request] Building an Environment by selecting environments

Open prsh9 opened this issue 9 years ago • 4 comments

To execute any API we take 2 inputs host and port. These are defined in an environment and used as http://{{host}}:{{port}}/. As we have X numbers of machines and the Y numbers of ports with which we want to execute the API we have to define X*Y environments (one for each combination). For example we have 5 servers and 3 ports. Hence we need to define 15 environments and execute specific API against the environment.

Can we have a feature where we can build an environment by selecting multiple environments. Hence I would have to create 5 + 3 = 8 environments and select 2 environments (one for host and one for port) to execute the API.

prsh9 avatar Apr 14 '16 19:04 prsh9

@prathamshah9

For now, you can use the following setup: Have one env with the following variables (X+Y rows) host-1: host.com host-2: host2.com port-1: 80 port-2: 8081

Your URL can then be http://{{host-{{hostnumber}}}}:{{port-{{portnumber}}}}

You can then define hostnumber and portnumber in your globals.

abhijitkane avatar Apr 26 '16 01:04 abhijitkane

:+1: I would love to see this as well!

My scenario is as follows:

We have an Express, Zuul, and API layer that setup a {{baseUrl}} that use certain variables like {{env}} and {{tenant}}.

We then have various different environments ({{env}}) and tenants {{tenant}}. It would be nice to be able to set these up on different postman environments to be able to select a combination of them.

ie.

  • API Layer`, uat, demo
  • Express Layer, Prod, acme

stramel avatar Jun 22 '16 16:06 stramel

I would love to be able to activate multiple environments as well. I recently posted a question on stackoverflow regarding the issue of environment hell.

stianlagstad avatar Oct 07 '16 07:10 stianlagstad

+1

the same: https://github.com/postmanlabs/postman-app-support/issues/3930 https://github.com/postmanlabs/postman-app-support/issues/1998 https://github.com/postmanlabs/postman-app-support/issues/7075 https://github.com/postmanlabs/postman-app-support/issues/4968 https://github.com/postmanlabs/postman-app-support/issues/2621

and related, which can be resolved by combining vars from several environments: https://github.com/postmanlabs/postman-app-support/issues/4898 https://github.com/postmanlabs/postman-app-support/issues/10775

alexandr-kotikhov avatar Mar 27 '25 09:03 alexandr-kotikhov