jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philippe Mouawad <philippe.moua...@gmail.com>
Subject Re: Any way to obtain the JMeter version from the inside?
Date Wed, 12 Sep 2012 19:31:24 GMT
Yes, you are right deepack.
JMeterUtils.getJMeterVersion() returns the current version

The attribute in jmx is the one that created the Test Plan.

Regards
Philippe

On Wed, Sep 12, 2012 at 9:21 PM, Deepak Shetty <shettyd@gmail.com> wrote:

> Hi
> Arent we dealing with two different versions here
> a. the version in which the test plan was created (which is what will get
> saved in the JMX script right?)
> b. The current version of jmeter thats running (Jmeterutils)
>
> regards
> deepak
>
> On Wed, Sep 12, 2012 at 12:17 PM, Philippe Mouawad <
> philippe.mouawad@gmail.com> wrote:
>
> > JMeterUtils.getJMeterVersion()
> > In JMX :
> >
> > <jmeterTestPlan ... jmeter="" >
> >
> > On Wed, Sep 12, 2012 at 8:54 PM, Anthony Johnson <ansoni@gmail.com>
> wrote:
> >
> > > Hey Philippe,
> > >     How would someone obtain that version information in the JMX file
> > > in 2.8?  Is it going to reachable via a property or function?
> > >
> > > Just curious,
> > >
> > > Anthony
> > >
> > > On Wed, Sep 12, 2012 at 2:46 PM, Philippe Mouawad
> > > <philippe.mouawad@gmail.com> wrote:
> > > > And when 2.8 will be available version will be in JMX file.
> > > >
> > > > Regards
> > > > Philippe M
> > > >
> > > > On Wed, Sep 12, 2012 at 8:27 PM, Anthony Johnson <ansoni@gmail.com>
> > > wrote:
> > > >
> > > >> Easiest way I know of is to use a Beanshell/BSF Sampler with the
> > > following:
> > > >>
> > > >> import org.apache.jmeter.util.*;
> > > >> return JMeterUtils.getJMeterVersion();
> > > >>
> > > >> You can save the version to a var or property via the vars or props
> > > >> variable.
> > > >>
> > > >>
> > > >> On Wed, Sep 12, 2012 at 12:54 PM, Mikhail T. <
> > mi+thun@aldan.algebra.com
> > > >
> > > >> wrote:
> > > >> > It does not seem to be among variables or properties listed by
> debug
> > > >> > samplers... It, probably, should be there.
> > > >> >
> > > >> > Is there any other way to obtain it from the test-plan's code?
> > Thanks!
> > > >> >
> > > >> >    -mi
> > > >> >
> > > >>
> > > >>
> ---------------------------------------------------------------------
> > > >> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> > > >> For additional commands, e-mail: user-help@jmeter.apache.org
> > > >>
> > > >>
> > > >
> > > >
> > > > --
> > > > Cordialement.
> > > > Philippe Mouawad.
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> > > For additional commands, e-mail: user-help@jmeter.apache.org
> > >
> > >
> >
> >
> > --
> > Cordialement.
> > Philippe Mouawad.
> >
>



-- 
Cordialement.
Philippe Mouawad.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message