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

Not able to run postman tests with report generation #411

Closed
1 task done
ShravanNeelaiahgari opened this issue Jul 24, 2023 · 4 comments
Closed
1 task done

Not able to run postman tests with report generation #411

ShravanNeelaiahgari opened this issue Jul 24, 2023 · 4 comments
Labels
state: awaiting-response Waiting the for the author to respond state: triaged This issue has been triaged

Comments

@ShravanNeelaiahgari
Copy link

Is There An Existing Issue

What Are You Seeing

I see below error on github action and does not run tests:

Run newman run ./PostmanPOCRest.postman_collection.json -r htmlextra
newman run ./PostmanPOCRest.postman_collection.json -r htmlextra
shell: /usr/bin/bash -e {0}

Steps To Reproduce The Issue

Run sample postman collection on github action

Full Newman Command Or Node Script

# INstall Node on the runner
    - name: Install Node
      uses: actions/setup-node@v1
      with:
        node-version: "12.x"
          
    # Install the newman command line utility and also install the html extra reporter
    - name: Install newman
      run: |
        npm install -g newman
        npm install -g newman-reporter-htmlextra
        npm install -S newman-reporter-htmlextra

    # Make directory to upload the test results
    - name: Make Directory for results
      run: mkdir -p testResults

    # Run the POSTMAN collection
    - name: Run POSTMAN collection
      run: |
        newman run ./PostmanPOCRest.postman_collection.json -r htmlextra

HTMLEXTRA Version

latest

Newman Version

latest

Additional Context

No response

@ShravanNeelaiahgari ShravanNeelaiahgari added state: needs-triage This issue needs to be triaged type: bug Something isn't working labels Jul 24, 2023
@github-actions
Copy link

Hey @ShravanNeelaiahgari: 👋 - Thanks for helping to make the reporter better by raising this ticket. I will take a look as soon as I can and get back to you. Cheers, Danny.

@DannyDainton
Copy link
Owner

Hey @ShravanNeelaiahgari

Have you tried using the --reporter-htmlextra-export <filepath> in the Newman command?

By default, it created a /newman directory and adds the reports in there but it looks like you're specifing that results go somewhere else, without actually telling Newman.

@DannyDainton DannyDainton added state: triaged This issue has been triaged state: awaiting-response Waiting the for the author to respond and removed type: bug Something isn't working state: needs-triage This issue needs to be triaged labels Jul 27, 2023
@DannyDainton
Copy link
Owner

Closing this issue. No response after 1 month.

@DannyDainton DannyDainton closed this as not planned Won't fix, can't repro, duplicate, stale Aug 28, 2023
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
state: awaiting-response Waiting the for the author to respond state: triaged This issue has been triaged
Projects
None yet
Development

No branches or pull requests

2 participants