[JIRA] (JENKINS-58489) Convert .jtl output to binary image

59 views
Skip to first unread message

JohnMP@gilat.com (JIRA)

unread,
Jul 15, 2019, 5:28:04 AM7/15/19
to jenkinsc...@googlegroups.com
John Pierce created an issue
 
Jenkins / New Feature JENKINS-58489
Convert .jtl output to binary image
Issue Type: New Feature New Feature
Assignee: David van Laatum
Components: email-ext-plugin
Created: 2019-07-15 09:27
Priority: Minor Minor
Reporter: John Pierce
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

JohnMP@gilat.com (JIRA)

unread,
Jul 15, 2019, 5:31:03 AM7/15/19
to jenkinsc...@googlegroups.com
John Pierce updated an issue
Change By: John Pierce
Component/s: performance-plugin

JohnMP@gilat.com (JIRA)

unread,
Jul 15, 2019, 5:31:03 AM7/15/19
to jenkinsc...@googlegroups.com

JohnMP@gilat.com (JIRA)

unread,
Jul 15, 2019, 5:37:02 AM7/15/19
to jenkinsc...@googlegroups.com
John Pierce updated an issue
Change By: John Pierce
Attachment: image-2019-07-15-12-36-15-398.png

JohnMP@gilat.com (JIRA)

unread,
Jul 15, 2019, 6:03:02 AM7/15/19
to jenkinsc...@googlegroups.com
John Pierce updated an issue
*I want to create a standard image file for external email.* (_eg; Outlook_)

Currently Performance Trend reports are created (via Jmeter) as .jtl files.

This works great as long as the email destination is inside the network and accessible to the Jenkins server.

<img border="0" width="225" height="169" id="Picture 1" src="http://build:3333/job/my-load-test/performance/respondingTimeGraph?width=225&amp;height=169&amp;&amp;legendLimit=5&amp;performanceReportPosition=*my_test.jtl*">

!image-2019-07-15-12-36-15-398.png!

I want to send email to an address outside the network and would like to send the image binary data to email.

A suggestion could be to include in email-ext-plugin to utilize something like:

<img border="0" width="225" height="169" id="Picture 1" src='*${FILE,path="mypath/my-loadtest/target/jmeter/results/my-loadtest.jtl"}*'

Not technically correct, but you get the idea. ({{document.getElementById("image").src = *jtlFile*; [}}base64 encoded]

 

An alternate to this would be ability to save .jtl files as images (png/gif/jpg) and copy to external public web space that can be referenced in email.

Another advantage of this would be to capture unique snapshot graphs for each build -> email

Currently if you look at a Performance Trend report email from 2 years ago, it is still going to have latest build graph information.

JohnMP@gilat.com (JIRA)

unread,
Jul 15, 2019, 6:07:01 AM7/15/19
to jenkinsc...@googlegroups.com
John Pierce updated an issue
Change By: John Pierce
Labels: jenkins performance plugins user-experience

JohnMP@gilat.com (JIRA)

unread,
Jul 15, 2019, 6:09:03 AM7/15/19
to jenkinsc...@googlegroups.com
John Pierce updated an issue
*I want to create a standard image file for external email.* (_eg; Outlook_)

Currently Performance Trend reports are created (via Jmeter) as .jtl files.

This works great as long as the email destination is inside the network and accessible to the Jenkins server.

<img border="0" width="225" height="169" id="Picture 1" src="http://build:3333/job/my-load-test/performance/respondingTimeGraph?width=225& amp; height=169& amp; & amp; legendLimit=5& amp; performanceReportPosition=*my_test.jtl*">


!image-2019-07-15-12-36-15-398.png!

I want to send email to an address outside the network and would like to send the image binary data to email.

A suggestion could be to include in email-ext-plugin to utilize something like:

<img border="0" width="225" height="169" id="Picture 1" src='*${FILE,path="mypath/my-loadtest/target/jmeter/results/my-loadtest.jtl"}*'

Not technically correct, but you get the idea. ({{document.getElementById("image").src = *jtlFile*;
[ }} [ base64 encoded]


 

An alternate to this would be ability to save .jtl files as images (png/gif/jpg) and copy to external public web space that can be referenced in email.

Another advantage of this would be to capture unique snapshot graphs for each build -> email

Currently if you look at a Performance Trend report email from 2 years ago, it is still going to have latest build graph information.

JohnMP@gilat.com (JIRA)

unread,
Jul 15, 2019, 7:29:02 AM7/15/19
to jenkinsc...@googlegroups.com
John Pierce commented on New Feature JENKINS-58489
 
Re: Convert .jtl output to binary image

Follow-up - using the utility JMeterPluginsCMD does not properly convert the image and puts a ton of labels at the top.

Renders the image as garbage and I doubt that it is an aggregate of history information either.

slide.o.mix@gmail.com (JIRA)

unread,
Jul 16, 2019, 4:44:02 PM7/16/19
to jenkinsc...@googlegroups.com

Have you tried turning on the inlining feature? In your img tag you can add an attribute data-inline='true' and the plugin will base64 encode the content and inline it.

<img border="0" width="225" height="169" id="Picture 1" src='${FILE,path="mypath/my-loadtest/target/jmeter/results/my-loadtest.jtl"}' data-inline='true'/>

JohnMP@gilat.com (JIRA)

unread,
Jul 17, 2019, 5:21:02 AM7/17/19
to jenkinsc...@googlegroups.com
John Pierce updated an issue
Change By: John Pierce
Attachment: image-2019-07-17-12-20-02-915.png

JohnMP@gilat.com (JIRA)

unread,
Jul 17, 2019, 5:22:06 AM7/17/19
to jenkinsc...@googlegroups.com
John Pierce updated an issue
Change By: John Pierce
Attachment: image-2019-07-17-12-21-11-698.png

JohnMP@gilat.com (JIRA)

unread,
Jul 17, 2019, 5:26:02 AM7/17/19
to jenkinsc...@googlegroups.com
John Pierce commented on New Feature JENKINS-58489
 
Re: Convert .jtl output to binary image

Hi Earl, thanks for the reply.

It does not seem to work in Outlook 365/2013, although when I click on email message "View it in a web browser" it works perfectly.

Outllook                                                               Browser

The intent is to send static graph results to email that is outside of the secure domain.

The secondary effect is you have a unique snapshot in every email (Build) and it is easier to compare historic information.

slide.o.mix@gmail.com (JIRA)

unread,
Jul 17, 2019, 8:20:02 AM7/17/19
to jenkinsc...@googlegroups.com

If you view the source, is the image inlined? If so, there is really nothing more that the plugin can do.

JohnMP@gilat.com (JIRA)

unread,
Jul 17, 2019, 8:44:01 AM7/17/19
to jenkinsc...@googlegroups.com

Oh yea, it is perfect.

Don't understand the CID mess with the attachment. but that wouldn't help anyway since .jtl is not really an image, but xml.

 

slide.o.mix@gmail.com (JIRA)

unread,
Jul 17, 2019, 11:00:01 AM7/17/19
to jenkinsc...@googlegroups.com

So, I am not sure what else can be done by the plugin. 

slide.o.mix@gmail.com (JIRA)

unread,
Jul 17, 2019, 11:38:02 AM7/17/19
to jenkinsc...@googlegroups.com
Alex Earl assigned an issue to Alex Earl
 
Change By: Alex Earl
Assignee: David van Laatum Alex Earl

slide.o.mix@gmail.com (JIRA)

unread,
Jul 17, 2019, 11:39:01 AM7/17/19
to jenkinsc...@googlegroups.com
 
Re: Convert .jtl output to binary image

What is the format of the xml file? Is it an svg?

slide.o.mix@gmail.com (JIRA)

unread,
Jul 17, 2019, 12:40:01 PM7/17/19
to jenkinsc...@googlegroups.com

I misread you initial description I think. Really the issue here is that you need to fetch the contents of the URL and then base64 encode. I didn't understand that at first. Being able to access any URL would be a huge security issue that I am not willing to undertake . You could possibly use a groovy template to do it though.

JohnMP@gilat.com (JIRA)

unread,
Jul 18, 2019, 6:26:02 AM7/18/19
to jenkinsc...@googlegroups.com
John Pierce updated an issue
Change By: John Pierce
Attachment: 3test_cHub_Coverage.jtl

JohnMP@gilat.com (JIRA)

unread,
Jul 18, 2019, 6:27:02 AM7/18/19
to jenkinsc...@googlegroups.com
John Pierce commented on New Feature JENKINS-58489
 
Re: Convert .jtl output to binary image

yes, I think you understand partially.

I want to take a .jtl file, which when viewed in a browser aggregates a series of Builds and creates an image in the browser.

Obviously, like you said, you do not want the email user to have access to the server, and so the idea to use an inline image seemed better.

As a note, the Image shows a placeholder in Outlook Desktop email, but strangely it works fine in mobile outlook.

I moved the parameters around a little and it works on smartphone.

Outlook email presents a banner at the top of message to preview in browser.

So, if my users want to click on the link to see graphs in Outlook Desktop (in Network), they can comfortably see the full images on their mobiles, when not in network.

3test_cHub_Coverage.jtl

 

JohnMP@gilat.com (JIRA)

unread,
Jul 18, 2019, 6:34:02 AM7/18/19
to jenkinsc...@googlegroups.com

My original idea was (1) for the Performance plugin to create a copy of the Performance graph in (png/jpg/gif) format

and (2) for the email plugin to allow for a IMG token type as it does for FILE.

maybe added parameters for size, inline, etc...

JohnMP@gilat.com (JIRA)

unread,
Jul 18, 2019, 6:39:02 AM7/18/19
to jenkinsc...@googlegroups.com
John Pierce edited a comment on New Feature JENKINS-58489
My original idea was (1) for the Performance plugin to create a copy of the Performance graph in (png/jpg/gif) format

and (2) for the email plugin to allow for a IMG token type as it does for FILE.

maybe added parameters for size, inline, etc...


The advantage of a copy of the image, (.jtl --> .png) is it creates a snapshot instead of depending on history when reviewing the message at a later date.

Currently if you have 2 years worth of builds, EVERY email is going to show only the current status.

As a static image, you can compare historical data from any timestamp in the past to the present.

 

JohnMP@gilat.com (JIRA)

unread,
Jul 18, 2019, 6:41:01 AM7/18/19
to jenkinsc...@googlegroups.com
John Pierce edited a comment on New Feature JENKINS-58489
My original idea was (1) for the Performance plugin to create a copy of the Performance graph in (png/jpg/gif) format

and (2) for the email plugin to allow for a IMG token type as it does for FILE.

maybe added parameters for size, base64, inline, etc...


The advantage of a copy of the image, (.jtl --> .png) is it creates a snapshot instead of depending on history when reviewing the message at a later date.

Currently if you have 2 years worth of builds, EVERY email is going to show only the current status.

As a static image, you can compare historical data from any timestamp in the past to the present.

 

JohnMP@gilat.com (JIRA)

unread,
Jul 18, 2019, 6:42:02 AM7/18/19
to jenkinsc...@googlegroups.com
John Pierce edited a comment on New Feature JENKINS-58489
My original idea was (1) for the Performance plugin to create a copy of the Performance graph in (png/jpg/gif) format

and (2) for the email plugin to allow for a IMG token type as it does for FILE.

maybe added parameters for size, type, base64, inline, etc...


The advantage of a copy of the image, (.jtl --> .png) is it creates a snapshot instead of depending on history when reviewing the message at a later date.

Currently if you have 2 years worth of builds, EVERY email is going to show only the current status.

As a static image, you can compare historical data from any timestamp in the past to the present.

 

slide.o.mix@gmail.com (JIRA)

unread,
Aug 5, 2019, 5:48:01 PM8/5/19
to jenkinsc...@googlegroups.com
Alex Earl updated an issue
 
Change By: Alex Earl
Component/s: email-ext-plugin

slide.o.mix@gmail.com (JIRA)

unread,
Aug 5, 2019, 5:48:01 PM8/5/19
to jenkinsc...@googlegroups.com
Alex Earl assigned an issue to Andrey Pokhilko
Change By: Alex Earl
Assignee: Alex Earl Andrey Pokhilko
Reply all
Reply to author
Forward
0 new messages