DATA DRIVEN GUIDE

How to implement Data Driven Approach in Postman?

Steps to use data file to the collection runner

Pricilla Bilavendran
3 min readJun 18, 2021

--

Hello Peeps,

Welcome back!!

Postman allows us to execute requests in a collection through the collection runner and while execution we can provide a data set in the form of JSON or CSV that are used while running the requests inside the collection.

When To Use Data Variables?

Data variables are used while we are working with multiple data-sets and they exist only during the execution of an iteration from the data file.

Data-driven testing is when we have one test that we run multiple times with different data variables.

Let the body of the API be:

{
"email": "{{email}}",
"password": "{{password}}"
}

Add your tests in Tests tab:

pm.test("Status code is 200" …

--

--