Bug 53862 - Would be nice to have the JMeter Version available as a property
Would be nice to have the JMeter Version available as a property
Status: RESOLVED FIXED
Product: JMeter
Classification: Unclassified
Component: Main
2.7
PC All
: P2 enhancement (vote)
: ---
Assigned To: JMeter issues mailing list
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2012-09-12 19:30 UTC by ansoni
Modified: 2012-09-12 22:23 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ansoni 2012-09-12 19:30:30 UTC
When generating reports for JMeter, it is often useful to have a log of what JMeter Version was used when trying to understand why results may have changed.  

The known way to obtain the version is to use a BSF Sampler and do JMeterUtils.getJMeterVersion().  This is a rather large amount of work for what is a fairly straight forward need.

A _version function or version property would be very nice.
Comment 1 Sebb 2012-09-12 20:01:33 UTC
Note that the JMeter version is written to the jmeter.log file, along with the Java versions.
Comment 2 ansoni 2012-09-12 20:27:04 UTC
Indeed, but the Java Version Information is at least a System Property which begs the question why the JMeter Properties don't include the JMeter Version:-)
Comment 3 Sebb 2012-09-12 21:25:43 UTC
It would certainly be possible to preset a JMeter property with the version.

This could then be retrieved using the __P() function, which would save creating a new function.
Comment 4 Sebb 2012-09-12 22:23:11 UTC
URL: http://svn.apache.org/viewvc?rev=1384148&view=rev
Log:
Would be nice to have the JMeter Version available as a property
Bugzilla Id: 53862

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/JMeter.java
    jmeter/trunk/xdocs/changes.xml