Call request once but go through all rows in data file in test script


I’m trying to test a GET request, which returns multiple rows from a database. The database will be migrated to a different vendor, so I would like to validate the same response when the migration is done, as the response should be the same.

I would like to save the response within postman as JSON, then use it as data file. When running the test, should only call once this GET request and go through all iterations/rows from the data file to test the response.

How can I achieve this?

Thank you in advance!

@jonathan329 Welcome to the community :partying_face:

For scenario the best fit would be adding an example with the current response and try to create a Mock server. And now you will have the existing response saved and you can try to parse them and store the field which you need to pass as data for the new requests. Of course this is a wild guess, based on your requirement we might need to tweak a bit :blush:

1 Like

Thank you for your reply! I’m looking more on postman side; just to be able to loop through the data file.