Allow the specification of collection variables / local variables via the command line
See original GitHub issueAllow the specification of collection variables via the command line, just like it currently works for the environment and global variables.
--collection-var "foo=bar"
--local-var "foo=bar"
In this way, more variable scopes could be controlled or overridden using the CLI.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:7
- Comments:22 (5 by maintainers)
Top Results From Across the Web
How can we send environment variable value while running ...
Allow the specification of collection variables via the command line, just like it currently works for the environment and global variables.
Read more >13.7.4.1 SET Syntax for Variable Assignment
SET syntax for variable assignment enables you to assign values to different types of variables that affect the operation of the server or...
Read more >Newman + Postmant Specify a single environment variable ...
--global-var <value> Allows the specification of global variables via the command line, in a key=value format.
Read more >3.21 Environment Variables Affecting GCC
Environment Variables (Using the GNU Compiler Collection (GCC)) ... localization information which allows GCC to work with different national conventions.
Read more >Input Variables - HCL Configuration Language | Packer
Input variables may have defaults, but those defaults can be overridden from the command line or special variable files. Local variables can be...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The more I see the need to override variables … started with none, then we added globals, then environment and now there’s a need for collection variable overrides. Let’s take a deeper look to see product-wise if we are missing something that we need to build in a wholistic way.
So, what are the use cases or jobs that we want to do here where overdriving collection variables appear to be a solution?
—
One interesting thought is that this may be showing us the need to expose “session” as a first class citizen in newman as well. Postman has this in form of initial value / current value of variables … same may need to be exposed for all variables in Newman.
@vdespa:
pm.variables.get()
behaves as you described. I was able to drop the||
logic from my scripts. Thanks again.