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 <[email protected]> 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 <
> [email protected]> wrote:
>
> > JMeterUtils.getJMeterVersion()
> > In JMX :
> >
> > <jmeterTestPlan ... jmeter="" >
> >
> > On Wed, Sep 12, 2012 at 8:54 PM, Anthony Johnson <[email protected]>
> 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
> > > <[email protected]> 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 <[email protected]>
> > > 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. <
> > [email protected]
> > > >
> > > >> 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: [email protected]
> > > >> For additional commands, e-mail: [email protected]
> > > >>
> > > >>
> > > >
> > > >
> > > > --
> > > > Cordialement.
> > > > Philippe Mouawad.
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [email protected]
> > > For additional commands, e-mail: [email protected]
> > >
> > >
> >
> >
> > --
> > Cordialement.
> > Philippe Mouawad.
> >
>



-- 
Cordialement.
Philippe Mouawad.

Reply via email to