Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
When do we use global variables, collection variables, and local variables?
Home
POSTMAN
When do we use global variables, collection variables, and local variables?
+1
vote
asked
May 20, 2021
in
POSTMAN
by
sharadyadav1986
When do we use global variables, collection variables, and local variables?
postman
postman-variable
postman-global-variables
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
May 20, 2021
by
sharadyadav1986
Below are the difference between Global , General purpose and Local Variables in postman
Global variables are general purpose variables, ideal for quick results, and prototyping. They are used while passing data to other requests.
Collection variables can be mostly used for storing some constants that do not change during the execution of the collection. They are used for constants that do not change during the execution and also for URLs / authentication credentials if only one environment exists.
Local variables are only available within the request that has set them or when using Newman/Collection runner during the entire execution. They are used whenever you would like to override all other variable scopes.
...