Run API tests using data file integration with CSV and JSON in Postman
Preconditions (3)
Step 1: Open Postman and create a new collection
Step 2: Add a new request to the collection with the API endpoint
Step 3: Set the HTTP method and required headers
Step 4: Click on the Runner button to open the Collection Runner
Step 5: Select the collection containing the request
Step 6: Click on 'Select File' and upload the CSV data file
Step 7: Start the run and observe the results
Step 8: Repeat the run using the JSON data file instead of CSV
Step 9: Verify that each request uses data from the file and responses are as expected
✅ Expected Result: The API requests run multiple times using each row/object from the CSV and JSON files. Each response matches the expected output for the input data.