• Home
  • Recent Q&A
  • Java
  • Cloud
  • JavaScript
  • Python
  • SQL
  • PHP
  • HTML
  • C++
  • Data Science
  • DBMS
  • Devops
  • Hadoop
  • Machine Learning
in POSTMAN by
Q:
When do we use global variables, collection variables, and local variables?

1 Answer

0 votes
by

Below are the difference between Global , General purpose and Local Variables in postman

  1. Global variables are general purpose variables, ideal for quick results, and prototyping. They are used while passing data to other requests.
  2. 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.
  3. 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.

Related questions

+1 vote
asked May 20, 2021 in POSTMAN by sharadyadav1986
+1 vote
asked May 20, 2021 in POSTMAN by sharadyadav1986
...