I am currently making a POC with Taurus tool.
In our company we use both JMeter and Gatling for now.
I was able to obtain in my tests the Gatling report without any complex configuration but it was not possible with JMeter to obtain its report.
Could anybody tell me:
The reason behind this request is that in our company :
I hope it is possible as if not it would be a NO-GO to using Taurus.
It seems that as of now (August 2018 Taurus 1.12.1) , it is not possible in a satisfying and simple way, based on my own tests and answers I got from project here:
Although it is partly possible as per @dmitri-t answer, it is not fully satisfying as there will be some missing information in report and you need to customize per platform which kinds of removes some simplification benefits of Taurus. But hopefully, there are chances it might be introduced in future versions. Maybe you can add a note on google group topic.
Edit on 23/08/2018:
This is the best way I found to have all the graphs generated, still it's not fully satisfying as Taurus overrides for an unknown reason the "Generate Parent Sampler" in Transaction Controller which is a problem for JMeter report:
Due to previous problem, with JMeter 4.0 a lot of graphs are empty, so I used a version that will be upcoming 5.0.
So I added a Simple Data Writer to the test plan.
Notice that I checked in Configure button all CSV fields needed for report:
Notice also I use a property "output" and __P function:
${__P(output,)}
And finally in the YAML file, I configure:
Properties used by report:
And my particular property "output":
I end up with:
settings:
env:
jmeterVersion: r1839007
execution:
- scenario: existing
concurrency: 5
hold-for: 10s
ramp-up: 3s
scenarios:
existing:
script: demo.jmx
modules:
jmeter:
path: ~/.bzt/jmeter-taurus/${jmeterVersion}/bin/jmeter
version: ${jmeterVersion}
download-link: https://ci.apache.org/projects/jmeter/nightlies/${jmeterVersion}/apache-jmeter-${jmeterVersion}.zip
detect-plugins: false
properties:
jmeter.reportgenerator.apdex_satisfied_threshold: 1000
jmeter.reportgenerator.report_title: JMeter Taurus Demo
jmeter.reportgenerator.overall_granularity: 1000
jmeter.reportgenerator.exporter.html.series_filter: ^(ClickNext|HP|scenario)(-success|-failure)?$
output: ${TAURUS_ARTIFACTS_DIR}/output/
services:
- module: shellexec
post-process:
- ~/.bzt/jmeter-taurus/${jmeterVersion}/bin/jmeter -p ~/.bzt/jmeter-taurus/${jmeterVersion}/bin/jmeter.properties -q ${TAURUS_ARTIFACTS_DIR}/jmeter-bzt.properties -g ${TAURUS_ARTIFACTS_DIR}/output/output.csv -o ${TAURUS_ARTIFACTS_DIR}/folder
reporting:
- module: final-stats
- module: console
As of now Taurus doesn't write failureMessage
column into kpi.jtl file which is required for default JMeter Results File Configuration in order to generate the reporting dashboard.
So the options are in:
Create a separate step in order to generate Reporting Dashboard using i.e. Taurus ShellExec service like
services:
- module: shellexec
post-process:
- ~/.bzt/jmeter-taurus/4.0/bin/./jmeter -Jjmeter.save.saveservice.assertion_results_failure_message=false -g ${TAURUS_ARTIFACTS_DIR}/kpi.jtl -o /path/to/report/folder
---
execution:
scenario:
script: test.jmx
Configure Taurus to use existing JMeter installation by adding the following lines to .bzt-rc
file
modules:
jmeter:
path: /path/to/your/JMeter
Make sure that your existing JMeter installation has jmeter.save.saveservice.assertion_results_failure_message=false
line added to user.properties file. Once done you will be able to generate the reporting dashboard out of Taurus kpi.jtl normally
References:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With