-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
passing multiple csv files to a collection runner in newman #2215
Comments
@codenirvana @shamasis I went through the code. I found that if we pass one file in with |
I would like to work on this issue. |
Is anyone still working on this issue? I'd like to contribute. |
Yes, i am. There is a darft PR linked to the issue. |
Hello all. Let’s deep dive into the workflow and usage of this feature. How would multiple data files work in general as a feature? How would that add value as a general feature and when should users start using this. Maybe @harishshet222 can elaborate on the use case of adding multiple data files and how we can build this as a general feature for everyone. |
I would like to work on the issue , how to get started?? |
Already working on it, and there is a draft pr pending. |
Hi, all. I hope it will just be like what I can do with JMeter. Just one data file really can't cover most complex usage scenarios. |
is this issue still open....if so I would like to work on it. |
Is there any implementation for this requirement? It is difficult to pass different data in pre-requisite every time for each test case in a collection. It would be better if we have a single file to have all data with sub folder name, so that based on sub folder name it can pick the data from csv file. |
@shamasis You had asked for an example of usage of this feature...I just now ran into one. |
Thinking on a JSON format data file, As we already know that the iterationData property accepts an array of javascript objects, as in:
What about creating a function that accepts an many datasets as required and returns a mixed json data files turned into an array and then pass it to iterationData property? like:
Finally just pass the new mixed data array to your iterationData property:
Consider that you need to have data files with the same array sizes |
How to pass multiple csv files in newman run?
newman run CollectionRunner.json --global-var IP_PORT="http://127.0.0.1:8088/" -r htmlextra --reporter-htmlextra-title "Result Report" --reporter-htmlextra-export /home/reports/HARISH.html --iteration-data /home/dataset1.csv
I want to pass multiple data sets to the collection, I have dataset1,dataset2,dataset3,dataset4 in my directory. all should gets executed for the collectionRunner and the RESULT REPORT should contain all the result,
I tried something like this, newman run CollectionRunner.json --global-var IP_PORT="http://127.0.0.1:8088/" -r htmlextra --reporter-htmlextra-title "Result Report" --reporter-htmlextra-export /home/reports/Result.html --iteration-data /home/dataset1.csv --iteration-data /home/dataset2.csv --iteration-data /home/dataset3.csv
But its not working
The text was updated successfully, but these errors were encountered: