Configuration and Generation of JMeter Report Dashboard

2,974 views
Skip to first unread message

Paul Spehar

unread,
Mar 21, 2017, 7:50:55 PM3/21/17
to codename-taurus
I am having some trouble understanding where/how to enable the JMeter Report Dashboard with TAURUS v1.8.3.  

It's unclear to me where I should be adding the Reporting config that typically goes into jmeter/bin/user.properties


After reading this page section:

I tried to add it to the top of my test.yml in the following format:

modules:
  jmeter:
    properties:
      jmeter.save.saveservice.bytes: "true"
      jmeter.save.saveservice.sent_bytes: "true"
      jmeter.save.saveservice.label: "true"
      jmeter.save.saveservice.latency: "true"
      jmeter.save.saveservice.response_code: "true"
      jmeter.save.saveservice.response_message: "true"
      jmeter.save.saveservice.successful: "true"
      jmeter.save.saveservice.thread_counts: "true"
      jmeter.save.saveservice.thread_name: "true"
      jmeter.save.saveservice.time: "true"
      jmeter.save.saveservice.connect_time: "true"
      jmeter.save.saveservice.timestamp_format: ms
      jmeter.save.saveservice.timestamp_format: yyyy/MM/dd HH:mm:ss
      jmeter.reportgenerator.sample_filter: ^t0.*$
      jmeter.reportgenerator.exporter.html.series_filter: (^t0.*$)(-success|-failure)?



After seeing this "modules: jmeter:" section mentioned here:
I also tried to add the same to ~/.bzt-rc

What is the proper location to add these configs for Taurus? 

One other question... I usually pass the location for this report to JMeter with the -o flag.  Does this work the same way with TAURUS?


Andrey Pokhilko

unread,
Mar 22, 2017, 2:31:11 AM3/22/17
to codenam...@googlegroups.com

Hi,

Sorry, but Taurus does not support generating JMeter's dashboard report at the moment. Instead, we have "-report" feature to generate online shareable reports.


Andrey Pohilko
Chief Scientist
P: +7 (909) 631-21-69
BlazeMeter Inc.
--
You received this message because you are subscribed to the Google Groups "codename-taurus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codename-taur...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codename-taurus/71042dd1-4cf6-419d-8bc3-2ce0a931d486%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Paul Spehar

unread,
Mar 22, 2017, 2:58:37 PM3/22/17
to codename-taurus, andrey....@contractor.ca.com
Thanks,

I was able to get it working in a roundabout way.  

I added the typical JMeter required Report properties to 

~/.bzt/jmeter-taurus/bin/user.properties

And then edited 

/usr/local/lib/python2.7/dist-packages/bzt/jmx.py

"saveAssertionResultsFailureMessage": False,
>
"saveAssertionResultsFailureMessage": True,


Generating report after test with 

~/.bzt/jmeter-taurus/bin/jmeter -g kpi.jtl -o html/

I wanted to avoid using the online shareable reports and keep things internal.

Thanks

bikra...@gmail.com

unread,
Jun 18, 2017, 4:12:41 AM6/18/17
to codename-taurus, andrey....@contractor.ca.com
Cool  workaround Paul...

Andrey Pokhilko

unread,
Jun 18, 2017, 12:32:49 PM6/18/17
to bikra...@gmail.com, codename-taurus

BTW you don't need to edit those files. You can make all these properties part of your configuration files, or part of personal config for Taurus which is placed in ~/.bzt-rc .

See http://gettaurus.org/docs/JMeter/#JMeter-Properties

--

Andrey


On 06/18/2017 01:12 AM, bikra...@gmail.com wrote:
CAUTION: This email originated from outside of CA. Do not click links or open attachments unless you recognize the sender and know the content is safe.

jrod...@gmail.com

unread,
Jul 4, 2017, 8:55:11 PM7/4/17
to codename-taurus, bikra...@gmail.com, Andrey....@contractor.ca.com
I have added the properties to the YML file as per below, however it still doesnt generate the report, citing "Consumer failed with message :No column <failureMessage> found in sample metadata"

As can be seen below, I have added the property jmeter.save.saveservice.assertion_results_failure_message: "true"

I think that the jmx.py file still needs to be edited to support this.  Happy to be corrected?


modules:
  jmeter:
    properties:  # JMeter properties for every JMeter run - Below enabled properties are for generate JMeter report dashboard
      jmeter.save.saveservice.bytes: "true"
      # Only available with HttpClient4
      #jmeter.save.saveservice.sent_bytes=true
      jmeter.save.saveservice.label: "true"
      jmeter.save.saveservice.latency: "true"
      jmeter.save.saveservice.response_code: "true"
      jmeter.save.saveservice.response_message: "true"
      jmeter.save.saveservice.successful: "true"
      jmeter.save.saveservice.thread_counts: "true"
      jmeter.save.saveservice.thread_name: "true"
      jmeter.save.saveservice.time: "true"
      jmeter.save.saveservice.connect_time: "true"
      jmeter.save.saveservice.assertion_results_failure_message: "true"
      # the timestamp format must include the time and should include the date.
      # For example the default, which is milliseconds since the epoch: 
      jmeter.save.saveservice.timestamp_format: ms
      # Or the following would also be suitable
      jmeter.save.saveservice.timestamp_format: yyyy/MM/dd HH:mm:ss
      jmeter.reportgenerator.sample_filter: ^t0.*$
      jmeter.reportgenerator.exporter.html.series_filter: (^t0.*$)(-success|-failure)?

rabab...@gmail.com

unread,
Oct 23, 2017, 12:16:01 PM10/23/17
to codename-taurus
Hello,

Where is located the file "jmx.py" ?

How Could I modify it ?

Many thanks in advance.

Andrey Pokhilko

unread,
Oct 23, 2017, 12:21:37 PM10/23/17
to codenam...@googlegroups.com

Andrey Pohilko
Chief Scientist
P: +7 (909) 631-21-69
BlazeMeter Inc.
23.10.2017 19:16, rabab...@gmail.com пишет:

rabab...@gmail.com

unread,
Oct 23, 2017, 12:42:22 PM10/23/17
to codename-taurus
Thanks Andrey for your reply.

In fact, I have added the jmeter "save properties" to YML file.
However, when I try to generate the report using "..jmeter -g kpi.jtl -o html/"
I still have this error :
"Consumer failed with message :No column <failureMessage> found in sample metadata"

So I don't know what is exactly the modification to make on a .py file.

Thanks in advance.

Andrey Pokhilko

unread,
Oct 23, 2017, 1:03:33 PM10/23/17
to codenam...@googlegroups.com

Kpi.jtl would not contain that field. If you need it, you have to have your own simple data writer.


Andrey Pohilko
Chief Scientist
P: +7 (909) 631-21-69
BlazeMeter Inc.
23.10.2017 19:42, rabab...@gmail.com пишет:

rabab...@gmail.com

unread,
Oct 23, 2017, 4:28:48 PM10/23/17
to codename-taurus
Thanks Andrey !
Indeed it's working :)

bjk...@gmail.com

unread,
May 25, 2018, 6:34:23 AM5/25/18
to codename-taurus
Hi,
As a workaround for generating jmeter dashboard I've added this to yaml file :
services:
- module: shellexec
  post-process:
  - awk -F',' -v OFS=',' '$7 = $7 FS "failureMessage"' ${TAURUS_ARTIFACTS_DIR}/kpi.jtl > ${TAURUS_ARTIFACTS_DIR}/kpi_awk.csv
  - ~/.bzt/jmeter-taurus/4.0/bin/jmeter.sh -g ${TAURUS_ARTIFACTS_DIR}/kpi_awk.csv -o ${TAURUS_ARTIFACTS_DIR}/jmeterDashboard

But indeed it would be nice if taurus would be generating jmeter dashboard after test run.

среда, 22 марта 2017 г., 1:50:55 UTC+2 пользователь Paul Spehar написал:

Veljko

unread,
Jul 23, 2018, 10:25:34 AM7/23/18
to codename-taurus
Hello Andrey,

Is there a plan to enable overriding of assertion_results_failure_message through Taurus config in following way?
...
modules:
  jmeter:
    properties:
      jmeter.save.saveservice.assertion_results_failure_message: 'true'
...

If not, I am willing to contribute if that is possible?

Thanks,
Veljko

Andrey Pokhilko

unread,
Jul 26, 2018, 5:22:48 AM7/26/18
to codenam...@googlegroups.com

Hi,

Setting this property won't change the way Taurus writes kpi.jtl file. We have no plans to change that for now.

For other listeners, this proprty should work fine.

--

Andrey Pokhilko
Open Source Initiatives Leader
CA
          BlazeMeter

23.07.2018 17:25, Veljko пишет:
CAUTION: This email originated from outside of CA. Do not click links or open attachments unless you recognize the sender and know the content is safe.

rama...@gmail.com

unread,
Jul 26, 2018, 8:33:53 AM7/26/18
to codename-taurus
Hi Andrey,

Do we need license, to access these blazemeter reports (Say for a load of 100 users)? Please clarify.

Regards,
Ajith

Andrey Pokhilko

unread,
Jul 26, 2018, 8:40:52 AM7/26/18
to codenam...@googlegroups.com

AFAIK, you don't need license if you use -report. You can clarify that with sup...@blazemeter.com or sa...@blazemeter.com

--

Andrey Pokhilko
Open Source Initiatives Leader
CA
          BlazeMeter

26.07.2018 15:33, rama...@gmail.com пишет:
CAUTION: This email originated from outside of CA. Do not click links or open attachments unless you recognize the sender and know the content is safe.

Message has been deleted

haris...@gmail.com

unread,
Sep 20, 2018, 4:32:40 AM9/20/18
to codename-taurus
On minor enhancement to discover the jmeter version is as follows:
services:
- module: shellexec
  post-process:
  - awk -F',' -v OFS=',' '$7 = $7 FS "failureMessage"' ${TAURUS_ARTIFACTS_DIR}/kpi.jtl > ${TAURUS_ARTIFACTS_DIR}/jmeter_stats.jtl
  - find ~/.bzt -type f -name "jmeter" -exec ln -s {} . ';'
  - ./jmeter -g ${TAURUS_ARTIFACTS_DIR}/jmeter_stats.jtl -o ${TAURUS_ARTIFACTS_DIR}/jmeterHtmlReports

A sample github repository with docker is show below. This will help windows users to auto generate html report after test completion

Jarrod P

unread,
Jan 22, 2019, 5:05:44 PM1/22/19
to codename-taurus
Note that the awk command will not work if you have grouped samples which produce a response message like below:
"Number of samples in transaction : 1, number of failing samples : 0"

The awk script will pick up the comma (,)

Kalyan Kumar Akula

unread,
Aug 14, 2020, 2:42:10 PM8/14/20
to codename-taurus
Hi there,
Can anyone assist how to overcome this issue?

I have followed the given steps, but i am getting the below error message, i dont know what i am missing.
 
It seems pointing to batch file instead bash file.

C:\Users\kkaku>bzt ScriptRun.yml
14:32:41 INFO: Taurus CLI Tool v1.14.2 [0m
14:32:41 INFO: Starting with configs: ['ScriptRun.yml'] [0m
14:32:41 INFO: Configuring... [0m
14:32:41 INFO: Artifacts dir: C:\Users\kkaku\bzt-artifacts\2020-08-14_14-32-41.552888 [0m
14:32:41 INFO: Preparing... [0m
[31m14:32:42 ERROR: Child Process Error: JMeter check failed: [WinError 193] %1 is not a valid Win32 application [0m
14:32:42 INFO: Post-processing... [0m
14:32:42 INFO: Starting shell command: ~/.bzt/jmeter-taurus/5.2.1/bin/jmeter -g kpi.jtl -o C:\Users\kkaku\bzt-artifacts\2020-08-14_14-32-41.552888/folder [0m
[33m14:32:42 WARNING: Errors for ~/.bzt/jmeter-taurus/5.2.1/bin/jmeter -g kpi.jtl -o C:\Users\kkaku\bzt-artifacts\2020-08-14_14-32-41.552888/folder:
'~' is not recognized as an internal or external command,
operable program or batch file.
[0m
14:32:42 INFO: Artifacts dir: C:\Users\kkaku\bzt-artifacts\2020-08-14_14-32-41.552888 [0m
[33m14:32:42 WARNING: Done performing with code: 1 [0m

Thanks in advance!

grey fenrir

unread,
Aug 16, 2020, 1:44:11 AM8/16/20
to codename-taurus
Hello Kalyan
1. I see usage of '~'. Have you add it to config manually? If not, could you share artifacts dir?
2. Please don't use old thread for your questions, creating the new one looks much better.

---
Taras
Reply all
Reply to author
Forward
0 new messages