A project will be in different environments at different stages, such as development, test, and production environment. Different environments usually have different base URLs, API parameter values, etc. It is very tedious to update the base URL and parameters frequently when the environment changes. With Apidog's environment management function, you only need to set different base URLs and parameters for different environments, and switch the environments when testing.
Environment Variables/Global Variables/Local Variables
Variables are used to store information to be referenced in different places. Different API (request parameters, scripts, etc.) can refer to the same variable, and updating the value of the variable updates all the corresponding values that refer to that variable. Using variables can improve productivity.
Dynamic variables are parameter values that are automatically generated according to predefined system rules during the running of the API, commonly used for variable references, test simulation data, encryption, etc.