Cannot see all results in Jmeter results tree and report - jmeter

I'm facing a weird situation with Jmeter 5.4.1
When running a suite, in my results tree all I can see are the results from first 7 (of 30) tests, and in the report, 20 of 30 tests.
All calls are simple and have just a status code and body response assert, and nothing more.
Anyone aware about this issue?

I don't think it's "weird", it's "by design".
By default JMeter stores/shows 500 last results in the View Results Tree listener
If you want to remove this limitation you can add the next line to user.properties file:
view.results.tree.max_results=0
JMeter restart will be required to pick the property up. Then you will be able to see all the results (given they will fit into memory)
More information:
Configuring JMeter
Apache JMeter Properties Customization Guide

Related

JMeter SummaryReport AggregateReport is recording the results from View Results in Table data

I have 3 listeners setup to write to a file SummaryReport, AggregateReport, and ViewResultsInTable. I am on a MacBook os Big Sur 11.5.2 and JMeter 5.4.1. Weirdly enough, I get the ViewResultsInTable data in both the SummaryReport.csv and AggregateReport.csv. While I am writing the Test Plan, it is easy to recover because the UI Reports are correct. However, when I want to move to the real test and run it from the command line, I won't be able to recover.
Is there any way to clear that up?
Saving and reading the test results are generic in all Listeners. Hence you will get identical test results in all the files.
If you didn't click "Configure" button and changed the metrics to store you will get the same files no matter which listener(s) you use, you just ended up with 3 identical files (plus the .jtl file if you're running your test in command-line non-GUI mode)
In case of Summary Report and Aggregate Report listeners all the metrics you're seeing are calculated from the individual Sample Result entries so if you open the .jtl results file after your non-GUI test execution finishes you will see the calculated aggregate metrics.
In general you should be using Listeners only for tests development and, it doesn't make a lot of sense to add Listeners for the test execution, they don't add any value, just consume valuable resources. So disable/remove all the listeners, you should be able to get all you need from the aforementioned .jtl results file.
If you want to see the output of Aggregate Report and/or Summary Report listeners without opening JMeter GUI - you can generate them from the .jtl results file using JMeter Plugins Command Line Tool

Jmeter 'View Results In Table' logging only partial requests

I am running a test on Jmeter (Version 4.0) using Throughput Shaping Timer in order to achieve constant rate of hits per second.
I am logging all the data of 'view Results in table' to a file and using it to track all the requests.
The functionality of my application is such that When jmeter hits API , it creates a database entry for each of the hit.
After test execution is finished, I can see that number of results in log of 'View Results in Table' is less than the number of database entries created by jmeter test run. Also, I am able to arrive at the requests which are not present in logs, but are present in database.
Does 'View Results in Table' not save all the requests ? How can this be changes to obtain data of all the requests ?
As per View Results Tree listener documentation:
Starting with version 3.2 the number of entries in the View is restricted to the value of the property view.results.tree.max_results which defaults to 500 entries. The old behaviour can be restored by setting the property to 0. Beware, that this might consume a lot of memory.
You can disable the limitation by adding the next line to user.properties file:
view.results.tree.max_results=0
JMeter restart will be required to pick the property up.
Be aware that according to JMeter Best Practices you should always be using the latest version of JMeter so consider upgrading to JMeter 5.1 (or whatever is the latest version at JMeter Downloads page) as soon as possible

Jmeter reports - How can I create a report that will list all samplers, in the order they ran, with success or fail results

We are using Jmeter for non-regression testing. We want a report with all samplers listed, in the order they ran, and with succes or fail. If fail, we want it to list the reason (which asserts failed and why).
This is the behavior we were getting with old Jmeter using a view result tree outputting to a xml file, and then using the XSL Jmeter transform to create a html report.
In the new report framework, I have not been able to find a way to reproduce this. All types of reports seems to do aggregations.
This is something which is available in JMeter out of the box for quite a while.
Given the following test structure and the results in the View Results Tree listener:
Given you run your JMeter test in command-line non-GUI mode like:
jmeter -n -t test.jmx -l result.csv
Once test finishes you can open the result.csv file using LibreOffice Calc or Microsoft Excel or equivalent and you will be able to see all the requests in the order in which they were executed with success status, assertion failure message (if present) and other JMeter metrics
You can control which metrics to store in the .jtl results file by amending properties responsible for the Results file configuration

View Results Table of the Jmeter script converted from LR using latest Jmeter V3.2 doesn't capture all calls

When i tried to convert the LR script into Jmeter using Jmeter latest version 3.2 View results Table doesn't captures all calls , where as Summary Report as well as under Thread group>Recording Controller I can see all the calls.
How does it effects means. If I cannot see the calls in the View Results Tables ,I cannot do correlation, parameterization etc for the missing calls.
Does any one has encountered this wearied issue.
Note: Jmeter V3.1 works perfectly !
Please advise me!
Thanks,
Raj
This is not a bug.
As per the issue that was opened:
https://bz.apache.org/bugzilla/show_bug.cgi?id=61014
Starting with JMeter version 3.2 the number of results in View Results Tree is limited by default to 500 entries.
If you want more entries, you have to set the property:
view.results.tree.max_results
to a higher value, or to "0", if you don't want to impose any limit.
You can set the property in bin/user.properties
But be aware that this involves less responsiveness of JMeter during Load Test.
More info might be found at:
http://jmeter.apache.org/usermanual/component_reference.html#View_Results_Tree
You can try the following steps:
Add "HTTP(s) Test Script Recorder" under the workbench.
Add "View Test Results Tree" under the "HTTP(s) Test Script Recorder".
In the "HTTP(s) Test Script Recorder" config, select the following options: Target Controller: "Workbench > HTTP(s) Test Script Recorder" & Grouping: "Put each group in a new Transaction Controller".
Start the recorder, finish recording, and stop the recorder.
Add a "Thread Group" under the "Test Plan" and you can drag/copy the Transaction controllers to the Test Plan.
Note: The "Grouping" option would really depend on how you would like to configure your transactions however this is a recommended approach during recording.
Let me know if this helps.

Is it possible to display JMeter 'View Result In Table' listener data

I have one JMeter test plan with several test cases. Also,I use jmeter-maven-plugin.
If one of test cases fail (for 350 threads) it looks like
Tests Run: 1, Failures: 350, Errors: 0
So it not clear what test case is failed.
Is it possible to show more detail information about failed test case in Jenkins UI or in the console? Exactly like the 'View Result In Table' listener show it in the JMeter GUI.
Is there a plugin to show formatted output for resulting JTL-file (only about test case status and fail details) in the console or in Jenkins UI?
Give a try to this Jenkins Plugin: Performance
The code that checks for failures is just searching through your jtl file and looking for instances of failure, nothing more. It's really just there so that you can trigger a failure that maven can detect, the plugin does not do in depth analysis of the .jtl file.
There is also a jmeter-analysis-maven-plugin that will give you some more detailed information about the test results, if this doesn't meet your need feel free to add feature requests.

Resources