Member-only story

Introduction to postman variables and Data driven testing…

Praveen David Mathew
5 min readOct 1, 2019

--

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:

  1. Global
  2. Collection
  3. Environment
  4. Data
  5. 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…

--

--

Praveen David Mathew
Praveen David Mathew

Written by Praveen David Mathew

An open source advocator/WebdriverIO Projectcommiter/Postman Supernova/Postman-html-extra contributor/Stack overflow sqa moderator/Speaker

No responses yet