send email with results in View Results Tree as attachment

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

send email with results in View Results Tree as attachment

Mathijs Groen
Hi,

Currently we use View Results Tree listener to view our tests results. This works fine as we mainly use Jmeter for functional API tests.

However storing this info is not safeguared.

Can I use JMeter to send an email with the results as displayed in the View Results tree in it/ attached to it?




---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: send email with results in View Results Tree as attachment

glinius@live.com
As per current JMeter version ( JMeter 5.0
<https://www.blazemeter.com/blog/what-is-new-jmeter-5>  ) it is hardly
achievable (unless you want to come up with a  custom plugin
<https://jmeter.apache.org/usermanual/jmeter_tutorial.html>  )

I would recommend the following alternative approaches:

 1. Configure JMeter to save all the request and response data, for example
you can add the next lines to /user.properties/ file:


>  jmeter.save.saveservice.output_format=xml
>  jmeter.save.saveservice.response_data=true
>  jmeter.save.saveservice.samplerData=true
>  jmeter.save.saveservice.requestHeaders=true
>  jmeter.save.saveservice.url=true
>  jmeter.save.saveservice.responseHeaders=true

and then send the XML results file - the recipients will be able to open it
using View Results Tree listener

 2. Provide high-level summary instead of details per request. You can
generate a CSV form of the  Aggregate Report
<http://jmeter.apache.org/usermanual/component_reference.html#Aggregate_Report>  
listener using  JMeterPluginsCMD Command Line Tool
<https://jmeter-plugins.org/wiki/JMeterPluginsCMD/>   and  Synthesis Report
<https://jmeter-plugins.org/wiki/SynthesisReport/>   plugins, the relevant
command to generate the textual form of the Aggregate Report would be
something like:


> JMeterPluginsCMD.sh --generate-csv file-to-send.csv --input-jtl
> JMeter-test-result.jtl --plugin-type AggregateReport





--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]