newman icon indicating copy to clipboard operation
newman copied to clipboard

[feature request] new key to pass iteration data from specified step

Open m3dbedb opened this issue 5 years ago • 3 comments

I suggest to add ability to skip secified number of iterations from data file

Expected behaviour: I execute command

newman run -e env.json -d data.json test.json -n 1

later I need to execute the same test and skip passed iteration: the key --skip would provide ability to start test from specified step:

newman run -e env.json -d data.json test.json --skip 1

m3dbedb avatar Nov 08 '19 08:11 m3dbedb

I would love to work on this feature. This issue is 3months old already

TheDhejavu avatar Mar 06 '20 19:03 TheDhejavu

Implementation thoughts... -s --skip command will be added to the list of commands in order to take in the step number, the step number will be passed to the postman-runtime run method because the best way to slice/skip the array is via the postman-runtime and this is where we have the runtime logic.

Implementation of this feature will affect both the postman-runtime & newman for it to work. Have been able to do this locally on my PC.

cc @shamasis @codenirvana. what's your take on this.

TheDhejavu avatar Mar 10 '20 22:03 TheDhejavu

@m3dbedb I am moving forward with this feature request. I'm thinking of introducing an extra option rather than making changes to the postman-runtime library and simply mutating the iterationData.

adityaofficial10 avatar Mar 11 '21 20:03 adityaofficial10