-
Notifications
You must be signed in to change notification settings - Fork 143
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
Reporter is unable to find tests for the call that resulted in 500 #409
Comments
Hey @avostretsov: 👋 - 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. |
Hey @avostretsov, Do you have the cli console output for that 500 request? Can you recreate it consistently? I've tried with a basic GET I'm unsure what that request returned on your side so I can't really do much to be honest, the reporter just spits out what Newman feeds it so if there was an issue with the data at that point, it wouldn't have come through to the final HTML report. The only thing that I can think of, that might cause that output, is if you had added the tests but didn't save the request before running the Collection with the Postman API. The changes may not have been sync at that point so i might look like there are no tests for the request. |
I found my problem which is in the first two lines of the test. I have couple of suggestions.
|
It's nothing really that the reporter, this one or other ones, can do about that situation. If the data isn't in the Newman Summary Object at the end of the run, I can't show anything. So if it's telling me there are no tests, that's all I can show. There could be a million and one reasons why that might be the case but I can't write logic to cover them all 😅 I'm not sure I understand what you mean by point 2, can you provide an visual example and expand on how that situation might occur. |
For point 1, I understand that this is not a reporter issue. I guess what I meant was that it could be useful to bring this issue up to the postman dev team so they can consider addressing it. For point 2 - requests with failed tests under |
Free free to raise an issue on the public tracker for the team to triage and set a priority against. It's not something I'll be handling. I like to keep this reporter separate to my other work. A request doesn't need a test within it to be 'good' or 'bad' so changing the colour wouldn't be something I'll be doing. The report is only a template file which can be copied and the colour can be change by anyone using the reporter. You could basically do anything you like and present the data in the way that suits your own usecase. I'm going to close this issue and it isn't really a bug with the reporter and more on the Postman/Newman side of things. |
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. |
Is There An Existing Issue
What Are You Seeing
When request results in 500, reporter is unable to find tests for this call and gives false positive result.


Steps To Reproduce The Issue
Expected: Tests for the call should have been executed
Actual: NO TESTS FOR THIS REQUEST - see screenshot attached
Full Newman Command Or Node Script
./node_modules/newman/bin/newman.js run https://api.postman.com/collections/15351868-40bd488b-2524-4280-91c3-b501d5db5ad4?access_key=XXXXXXX -d secrets-stage.json --env-var strive_host=https://api.uat.gpn.strivegaming.dev --env-var strive_base_path=/api/v1 --env-var rgs_host=https://rgs.stage.bspot.com --env-var rgs_base_path=/rgs/api/v1 --env-var rgs_game_base_path=/gapi/api/v1.3 --env-var baseUrl=https://d8dc28cd-10d3-40b9-a44c-173c528f2df5.mock.pstmn.io -r htmlextra,cli
HTMLEXTRA Version
1.22.11
Newman Version
5.3.2
Additional Context
No response
The text was updated successfully, but these errors were encountered: