-
Notifications
You must be signed in to change notification settings - Fork 141
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
[Bug] Assertion error information not showing in Total Requests tab #247
Comments
Thanks for reporting this @EshtechZ, It's not something that happens all the time as more and more people would have reported it so far. 😁 I think it's to do with either having a test, in the request, with the same name twice or having a test with the same name at 2 different levels. 🤔
You can see on the test results table that it passed and failed at the same time. It's strange that it shows in the failed tests tab though, as the same information is populating that information in the request page. 🤔 |
@EshtechZ Are you able to provide answers to the 2 questions above please? |
I can confirm that it's what I think it is: pm.test("Status code is 200", function () {
pm.response.to.have.status(201);
});
pm.test("Status code is 200", function () {
pm.response.to.have.status(201);
}); Having 2 tests with the same name would show the issue - Until I fix the problem you would need to ensure that each Test has a unique name, that way it would show the failed message in this view. The |
Hi Danny,
Thanks for the quick action.
I will check it again and get back to you.
Thanks,
EshtechZ
…On Sun, Jul 12, 2020, 5:31 PM Danny Dainton ***@***.***> wrote:
I can confirm that it's what I think it is:
pm.test("Status code is 200", function () {
pm.response.to.have.status(201);});
pm.test("Status code is 200", function () {
pm.response.to.have.status(201);});
Having 2 tests with the same name would show the issue - Until I fix the
problem you would need to ensure that each Test has a unique name, that way
it would show the failed message in this view. The Failed Test tab would
show the correct message as the data is coming from a different place, that
was tricky to use on the individual request level.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#247 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMMA7PREK7MP4CJSWA3E4PDR3GQYTANCNFSM4OSMO7LQ>
.
|
Hi Danny, I checked the above scenario and i don't have any duplicate test data or script. Each request has only 1 test script which is fine. |
I was able to reproduce this with the tests with the same name, didn't really matter if these were in the same script or at different levels. There's an issue in Newman with the |
I would like to report the same issue @DannyDainton About my test cases
|
Describe The Problem
After running the collection through the command line and get generate the HTML extra report,
in that case, the Test name and assertion error is not showing in the Total Requests tab (blank data) as it is showing the same as in the Failed Tests tab.
Steps To Reproduce
Steps to reproduce the behavior:
What Are You Seeing
Test Name & Assertion error is not showing in the Total Requests tab, Test information section as it is showing the same as in the Failed Tests tab.
Navigate to the Total requests tab and check failed test reason under Test Info>> Test Failure section. (which is missing here, only able to see reason in Failed Tests Tab header -3)
Screenshots and Gifs
Please find a screenshot that helps you to reach the issue place.
Collection and Environment Files
Sorry, won't be able to provide you but it's easy to reproduce, you can run any collection having to fail test case (any assertion fail like: response code can be different).
Version and Platform Information:
Newman
Version [5.1.0]Newman-reporter-htmlextra
Package Version [Not exactly remember, will check and update the version soon but it could belatest as I recently installed it, in the same month.]
Additional Context
All covered in the above description.
.hbs
file, please include this in the report.index.js
file?Label
Inside the Total requests tab, it should provide a whole description of pass/fail test cases, if any error comes then it should give at least assertion error message include a reason as it is showing in Failed Tests Tab.
Thanks.
The text was updated successfully, but these errors were encountered: