Member-only story
Introduction to postman variables and Data driven testing…
…
Variables:
Same like other programming languages and tools , variables are elements that stores values or information for re-usability and preventing repetitive work.
How to call variables in Postman:
The syntax to call variable is to call variable name using double curly bracket {{<variable_name>}}
For instance let the variable name be ‘Page_no’ so to call this variable we use
https://www.facebook.com/somepage/{{Page_no }}
Note: we can call variables in request, request header or body.
Variable scope:
The variable scope in postman is as given below:
- Global
- Collection
- Environment
- Data
- Local
Note: This image representation may look confusing because environmental variables have more scope than collection, because an environmental variable will be available across all the collections but…