newman icon indicating copy to clipboard operation
newman copied to clipboard

[Feature Request] Newman - Dynamic Iteration with Data File

Open Xdomen opened this issue 4 years ago • 5 comments

Hey guys,

I have a question regarding newman usage with CSV Data files.

We have about 150 tests within a single CSV file, however, we would like to call them dynamically via parameter. Meaning if I want to initiate test iteration 149, I would have to make 148 iteartions prior to that test. This is causing us to have multiple CSV files whic his quite unnecessary.

Example of CSV Data file:

url, user_id, type, amount,
{{baseUrl}}, 1, 0, 100
{{baseUrl}}, 2, 1, 200
{{baseUrl}}, 2, 1, 300

Each row in CSV is an individual test and counts as an iteration. How could we initiate tests dyniamically i.e execute third test iteration without having to execute first and second test iteration, or set iteration from - to.

Any help on this is highly appreciated!

Thanks.

Xdomen avatar Nov 17 '20 15:11 Xdomen

Really a good feature , i also feel this hectic i have to create new temp csv to test a sngle line

praveendvd avatar Nov 30 '20 08:11 praveendvd

@Xdomen I'm moving forward with this feature request.

adityaofficial10 avatar Mar 11 '21 05:03 adityaofficial10

@preyunk I was working with this and had my draft ready. You should have informed me about your work atleast. Anyways, I have the tests ready. So we can collaborate I guess.

adityaofficial10 avatar Mar 11 '21 20:03 adityaofficial10

Yeah sure! Sorry for the inconvenience, though.

preyunk avatar Mar 11 '21 21:03 preyunk

@adityaofficial10 could you please help us with the opened PR https://github.com/postmanlabs/newman/pull/2652 🙏

Xdomen avatar Nov 11 '21 21:11 Xdomen