3

Can anyone please let me know how the data-driven testing is done using the Postman?

I read some post in the online, it seems to be by using collection we need to run the collections at the time we can able to upload the CSV file and JSON for Data driver.

When I tried to upload the CSV the iteration count is not showing automatically

Can anyone show some simple example to perform this task? It will be helpful for automation testing for web services

4

Update

I have tested with a simple CSV file and it indeed alters the iteration count automatically. So my suggestions for you are:

  • update Postman to latest version if not yet done so
  • double-check your CSV, is the data in a correct format? I think this is a probable cause. Can you share it?

Original answer

In Postman, go to the menu Collection and select Runner.

There you'll see the following screen where you can both select a data file and the iteration count.

Postman Collection runner

  • Thanks for your information. Here my problem is after uploading the SCV file the iteration count is not showing automatically. I saw in one of the videos it is updating automatically based on the input in the file. And one clarification is whether I need to pass the parameter as empty or with data in the body. Because the input data is coming from CSV – Anand Dec 20 '17 at 10:44
  • @Anand updated my answer – FDM Dec 20 '17 at 12:36
  • @Anand let us know how it works out, and if my answer helped, don't forget to accept it please :) – FDM Dec 21 '17 at 12:00
  • @ FDM - Really thanks for your answer, now the iteration is working fine for me. I have one more clarification. My inputs are from the CSV file so I need to pass the request parameters without values in the body correct Attached below screenshot for your reference – Anand Dec 26 '17 at 11:59
  • Screenshot 1. screencast.com/t/WWkDk1ubjw5 screencast.com/t/P2S4zFjq7fYA - Please let me whether am doing anything wrong here – Anand Dec 26 '17 at 12:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.