postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.85k stars 839 forks source link

Run tests in newman and runner using same data file #6275

Open raghav19 opened 5 years ago

raghav19 commented 5 years ago

Is your feature request related to a problem? Please describe. I have written test scripts in postman for automation which i want to use it with multiple data sets for which runner gives me the capability to use the data file like a json or csv. However now that i use the data from the json file, i have many cases where i need to run only certain requests in my worflow manually through the console. In this case i cannot make use of the test scripts developed for automation purposes as they look out for the data file.

Describe the solution you'd like I want to use the same data file for my console runs as well as runner runs using newman

Describe alternatives you've considered

  1. Alternative way of doing this was use the dataset in the console as a dummy request and also have an environment variable for runner set as true or false. If false, the dataset from the request pre-request script is loaded and the flow continues with that data set.
  2. Second alternative way is to pick any 1 data from the set and use it in environment and run the request using the postman environment in the console

Additional context image

vkaegis commented 5 years ago

@raghav19 Thanks for writing in! I can see how this use case is valuable. Marking this as a feature request for now, no ETA on it just yet though. Will keep you updated.