-
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
[Bug] Search field and sort filters are only available for the first iteration on the Test Information #376
Comments
Hey! 👋🏻 Thank you so much for raising the issue, I will review this as soon as I can get to it. ❤️ Danny |
Hey @yyahav, I've run a collection through Newman and created a report, I'm not seeing the same issue. I can see the search and filters on the other tables for each iteration. 🤔 Do you see any console errors in the browser when looking at those other tables? |
Hi @DannyDainton , |
Nope, using the same default template 🤔 There is actually some work I wanted to do around those tables, let me try and get something in place tomorrow ish and see if that helps you out. |
Haven't been able to spend much time on this yet and add the changes I want to, been busy with my day job. 😄 I still haven't been able to recreate this issue you're seeing either :( 20220401151850526.mp4One thing I haven't looked closer at is the data file you're using and how you're using the data from that in the tests. |
Hi @DannyDainton all good, it's not urgent :) Could you send me your default template so I can try to test with it? Maybe I have an outdated version? |
It's the default template of the reporter - if you're not using a custom template, then you're using the same one 😂 Could you show a short recording of the file and you switching between iterations? I'm honestly not interested in any of the data of the report file, they mean absolutely nothing to me. 😂 Trying to see this in action, it's hard to know what's going on with a cropped screenshot 😞 |
Sure, here's a recording... I hope it helps 2022-04-03.16-18-12.mp4 |
Interesting 🤔 The request and response sections also look weird too. Unless you're hiding the details in a flag. Umm...hate to offer this as a resolution step but have you tried and global uninstall/install yet?
Then...
Sometimes it's actually the thing that gets it all back aligned again. 😬 |
Tried now global uninstall/install, won't do the trick. For you it works without any issues, but for some mysterious reason I can't get it to work the same on my end. Regarding the request/response I hid them... it's not an issue. |
Nah, those are based on the requests and handled in the template file. If the request is there, the table should be rendered correctly. Going to be difficult to solve these types of issues as it looks specific to your context. No one has ever mentioned that issue before and it's been downloaded a few times. Without seeing the report file locally, there is literally nothing that I can do here. I can't really fix something I can't replicate/reproduce. |
How many tests are there in the second iteration? Are they exactly the same as the first and in the same order? Is there some kind of logic that you have in the test script? Can you share the test script for that request? |
That's a great question! And I have a feeling that this is the problem. 😅 The tests amount is the same on both iterations, and the order should be the same as well (the same test script runs for both iterations and the first table is sorted, that's why there's a difference in the order between tables), but their names change according to the response. I had to do it this way, because I'm trying to output some of the field values from the response within the test assertion, so I can see them on the report. You can see those on the clip I sent, each test name holds numeric info relevant for the iteration. I'm not familiar with any other way to retrieve field values and output them later on in the report, as I understand it's possible to only show test names without any additional info. So, basically the script is built this way:
Assertions are always TRUE, because I want them to be on the PASSED results in the report (I don't care much for failures in this case, only the data I get, and I rather it'd be under Passed results). Specifically the clip I sent shows that some tests have the same name, but some don't. |
Not really sure what you're doing with the tests to be fair, I just don't see the point in not testing something but making it appear like everything is fine with it all "passing" 🤔 The pm.test(`app ${applicationId}`); Also, just to save confusion with using data files (it was previously accessed that way) I'd recommend changing the variable name of If we think is something to do with the tests name you could just add a unique number in the test name to test the theory? |
I see... Ok let me explain a bit, so you can understand why I did it this way. I have an App-Server structure, in which the server sends results based on info received from the app. So basically it's not that I actually run automation iterations for Pass/Fail results, rather it's more of a "designed" way to output data to team members, excluding their need to actually parse through a response in Postman to find the data they need. It's the fastest and most convenient solution I could think of, without having to develop a specific UI and tools for this matter. Thanks for the redundancy tip, I removed them completely, and the I just ran another 2 tests now:
Both tests yielded the same results - second iteration show no Search nor Sort. My baking noodle is closing in on well-done... 😒 |
Can you just send me the HTML file that gets created with the table like that, these static images are fine but it's not the report :D |
Yeah sorry :) here it is... had to rename to txt for uploading. |
At least I can see it now :D Leave it with me and I'll dig into it later table to see what's happening. |
@yyahav I've pushed that change into a new package and it should be available to grab now from npm. |
Great! thank you so much for your support and quick fix! 🙏 You're the 🤴 |
I appreciate the patience and responses, we got there in the end. 😁 |
Cheers mate! |
I'm usually quicker ;) |
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
The TESTS INFORMATION data table showing the tests is a DataTable, which supports search and sort by default.
Only the first itreration shows the Search field and includes the sort, the other iterations show a regular table without these features.
Steps To Reproduce The Issue
See attached images for iterations 1 and 2 tables diff
Full Newman Command Or Node Script
newman run collection.json -d data.csv -r htmlextra --reporter-htmlextra-export newman\report.html
HTMLEXTRA Version
1.22.7
Newman Version
5.3.2
Additional Context
No response
The text was updated successfully, but these errors were encountered: