DannyDainton / newman-reporter-htmlextra

A HTML reporter for Postman's Command Line Runner, Newman. Includes Non Aggregated Runs broken down by Iterations, Skipped Tests, Console Logs and the handlebars helpers module for better custom templates.
Apache License 2.0
357 stars 139 forks source link

Not able to run postman tests with report generation #411

Closed ShravanNeelaiahgari closed 1 year ago

ShravanNeelaiahgari commented 1 year ago

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

github-actions[bot] commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

Closing this issue. No response after 1 month.

github-actions[bot] commented 1 year ago

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.