Recently added the blazemeter sense uploader plugin for reporting purposes and it is really nice. Post running the script, you get a sense.jtl file and a url to view the reports on the browser with valid authentication. Please suggest how to view the blazemeter sense report when I run the jmx script via the terminal or Jenkins?

If you're running Linux you can use grep command to fetch the URL from jmeter.log file like:

grep -Eo "(http|https)://[a-zA-Z0-9./?=_-]*/gui/[0-9]*/" jmeter.log | head -1

As a result it will produce URL to the results page like:

https://sense.blazemeter.com/gui/123456/

Which can be used for publishing as a build artifact in a form of HTML page, from Jenkins pipeline perspective it would be something like:

sh "cat > sense.html <<'EOF'\n" +
                                "<html>" +
                                "<body>\n" +
                                "<a href="https://sense.blazemeter.com/gui/123456/">https://sense.blazemeter.com/gui/123456/</a>\n" +
                                "</body>\n" +
                                " </html>"

And then publish the generated HTML file to the Jenkins dashboard like:

step([$class: 'ArtifactArchiver', allowEmptyArchive: true, artifacts: 'sense.html', fingerprint: true, latestOnly: true])
  • If I'm using windows then? – Rohan Kalia Apr 5 at 18:49

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.