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

Unable to skip specific request (folder) to generate htmlextra report #403

Closed
1 task done
Escape147 opened this issue Feb 3, 2023 · 7 comments
Closed
1 task done
Labels
state: triaged This issue has been triaged

Comments

@Escape147
Copy link

Escape147 commented Feb 3, 2023

Is There An Existing Issue

What Are You Seeing

When the --reporter-htmlextra-skipRequests (--reporter-htmlextra-skipFolders) parameter is used to run the command, the number of Skipped Tests in the generated report is 0

Steps To Reproduce The Issue

  1. Run Newman using the command in the terminal
  2. Open the new htmlextra report in a browser window
  3. Click on the 'Skipped Tests' tab
  4. No statistics requested

Full Newman Command Or Node Script

Command1:newman run Test-skip.postman_collection.json -e Test.postman_environment.json -r htmlextra --reporter-htmlextra-skipRequests "request name with InvalidParameterException"
Command2:newman run Test-skip.postman_collection.json -e Test.postman_environment.json -r htmlextra --reporter-htmlextra-skipFolders "folder name with Error code"

HTMLEXTRA Version

1.22.11

Newman Version

5.3.2

Additional Context

image

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

github-actions bot commented Feb 3, 2023

Hey @Escape147: 👋 - 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

DannyDainton commented Feb 3, 2023

Hey @Escape147,

That flag only relates to what is displayed in the final report:

image

The Skipped Tests section relates to any tests that you have within your Collection file that use the pm.test.skip option.

pm.test.skip("Status code is 200", function () {
    pm.response.to.have.status(200);
});

@DannyDainton DannyDainton added state: triaged This issue has been triaged and removed type: bug Something isn't working state: needs-triage This issue needs to be triaged labels Feb 3, 2023
@Escape147
Copy link
Author

@DannyDainton

  • Thank you very much for your reply, I have solved the problem. Want to know what the final report in your description refers to?
    image

@DannyDainton
Copy link
Owner

The final report that's created. There's only 1 report that gets created but that could be displaying anything based on flags that might be used.

@DannyDainton
Copy link
Owner

If you solved the problem and you no longer have an issue - Can we close this out?

There isn't anything that I'll be changing on my side for this.

@Escape147
Copy link
Author

Mmm Good

@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 Mar 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
state: triaged This issue has been triaged
Projects
None yet
Development

No branches or pull requests

2 participants