Introduction
Global variables let you save values that you can use in many tests or requests. This helps avoid repeating the same data over and over.
You want to store a user token to use in many API requests.
You need to save a base URL that is used in all your requests.
You want to share data between different test scripts in Postman.
You want to keep a value that changes during testing and use it later.
You want to avoid hardcoding values in multiple places.