Skip to content
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

issues while running multiple collections using newman-run #31

Open
komalanandpandey opened this issue Apr 28, 2023 · 3 comments
Open

Comments

@komalanandpandey
Copy link

hello Suresh, I have 10 collections with each one having its own environment files. I am runing thosee using feedfile.json

{
"runs" :[
{
"collection":"collection1.json",
"environment":"evn1.json",
"iterationData": "data.csv"

}

{
"collection":"collection2.json",
"environment":"evn2.json",
"iterationData": "data.csv"

}

]

}

newman-run -f feedfile.json

It is runing fine but 2 issues:
1- creating many cloned collection files inside the folder which is confusing every time I have to delete them manually.
2- It is creating separate html reports but I want a single report for all
any help?

@cxk347
Copy link

cxk347 commented Oct 17, 2023

i tried running the same but data was not picked from my json "iterationData": "testdata.json"
if you have a valid command can you share it

@shlok-prakash
Copy link

If you remove the require function then it will work!

@cxk347
Copy link

cxk347 commented Oct 26, 2023

If you remove the require function then it will work!

@shlok-prakash could you please explain more because i just used the package in github action with command

  - name: Install Newman
    run: npm install -g newman-run
         npm install -g newman-reporter-htmlextra

  - name: Run Newman Collection
    run: newman-run -f myfeed.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants