Reputation: 339
I am using JMeter for api testing. How can I generate pass/fail report of my testing? Is there any plugin available? I just want to know either my test pass or fail and import it.
Upvotes: 1
Views: 2644
Reputation: 76
In case you have not figured it yet and for the reference to other users, you can use the following command line options to generate an HTML report. The report will be generated at the end of the test run. Note that the report_dir should not exist and report will not be generated if the test is stopped with signal interrupts.
./jmeter -n -t test.jmx -l test.jtl -e -o report_dir
Upvotes: 1
Reputation: 331
You can use any of these in the menu to view the result. Thread Group > Add > Listeners If you are looking for detailed report, i suggest LoadSophia (Loadosophia.org) which will help in better understanding of the report. You have to generate the jtl file (jtl file is generated while running jmeter from terminal and setting output directory) and uploading the jtl file to LoadSophia.
Upvotes: 1
Reputation: 34516
Since JMeter 3.0 , an HTML report is generated at end of test provided you follow this documentation:
Upvotes: 1
Reputation: 168002
In general JMeter automatically. treats samplers with HTTP Status Code above 400 as failed.
In addition if you expect some data to be in the response body (or vice versa) you can apply i.e.
See How to Use JMeter Assertions in Three Easy Steps guide to learn more about conditionally failing JMeter samplers basing on different criteria
Upvotes: 0
Reputation: 72
Jmeter Contains Listeners which can publish you the results of your test, from which you can analyse whether your test is pass or fail.
Thread Group-(Right Click)--->Add-->Listeners(Which contains various types, you can select based on your requirement)
Upvotes: 1