#1 India's Top IT Training Institute

×

About Uncodemy

Know more about who we are and what we stand for.

About Us

About Us

Discover our mission to equip individuals with essential IT skills and industry expertise.

Read More →
UnCodeMy Gallery

UnCodeMy Gallery

Explore highlights from our IT training sessions and success stories.

Read More →
×

Free Resources

Learn, practice and plan your career — bilkul free.

Tutorials

Tutorials

Step-by-step written tutorials to learn any technology at your own pace.

Read More →
Free Counselling

Free Counselling

Book a free video counselling session and pick the right course for you.

Read More →
Online Compiler

Online Compiler

Write, run and test your code online — no setup required.

Read More →

Data-driven Testing Using CSV and JSON Files

What Is Data-driven Testing?

Data-driven testing runs the same request multiple times, each time with a different set of input values pulled from an external file, instead of hardcoding values into the request.

Supported File Formats

FormatStructure
CSVColumn headers become variable names; each row is one iteration
JSONArray of objects; each object's keys become variable names

Using a Data File in the Runner

When starting a run in the Collection Runner, you can select a CSV or JSON file. Postman then runs the collection once per row/object, substituting the values wherever a matching variable is referenced.

Benefits

This approach lets you test many combinations of inputs - like different user accounts or product IDs - without duplicating requests or scripts.

Once data files are set up, scripts can read and act on that data during each iteration - let's look at how to iterate over data files in tests.

Ready to master Postman API Testing Course?

Join Uncodemy's hands-on training and build real-world API testing skills with expert mentors.

Explore Course