Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-58489

Convert .jtl output to binary image

XMLWordPrintable

      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&height=169&&legendLimit=5&performanceReportPosition=my_test.jtl">

      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.

        1. 3test_cHub_Coverage.jtl
          13 kB
          John Pierce
        2. image-2019-07-15-12-36-15-398.png
          14 kB
          John Pierce
        3. image-2019-07-17-12-20-02-915.png
          2 kB
          John Pierce
        4. image-2019-07-17-12-21-11-698.png
          7 kB
          John Pierce

            undera Andrey Pokhilko
            packcat John Pierce
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: