jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claude Falguiere <cfalgui...@gmail.com>
Subject Re: sample_variables property
Date Sun, 05 Sep 2010 08:18:38 GMT
you may use a key value system to avoid changing jmeter source code :
- add 2 properties that must be exporterd in the properties file
  sample_variables=mykey,myvalue
- set mykey and myvalue programmatically in the JMeter script.

Claude


On Fri, Sep 3, 2010 at 10:11 PM, Derry, Stanton <stan_derry@intuit.com>wrote:

> Deepak,
>
> Thanks for the response.  True on passing in on the command line,
> however, I've been running more in a client-server mode and don't want
> to stop/start each server prior to a different run.
>
> Will look at the code and post to the developers list.
>
> Stan
>
> -----Original Message-----
> From: Deepak Shetty [mailto:shettyd@gmail.com]
> Sent: Friday, September 03, 2010 1:03 PM
> To: JMeter Users List
> Subject: Re: sample_variables property
>
> when you say per test do you mean every time you run the test plan (in
> which
> case you simply run by command line and pass different values)? If you
> want
> an ANT sample I can send this.
>
> do you need to do this in the TestPlan , perhaps dynamically?
> Then you'd probably need to modify source code -- I'd start with
> org.apache.jmeter.samplers.SampleEvent .BeanShell would probably not
> work
> because the variable names is initialized statically in SampleEvent so
> it
> wouldnt have any effect  if you set the property after this class was
> loaded
> . You could modify the source code . it might be useful to post to the
> developers list if this is indeed what you want to do.
>
> regards
> deepak
>
> On Fri, Sep 3, 2010 at 12:47 PM, Derry, Stanton
> <stan_derry@intuit.com>wrote:
>
> > I have several tests where I want to save different variables to the
> JTL
> > file.  Is there a dynamic way to set the sample_variables property per
> > test?  I tried via a bean shell, it did set the property, however, the
> > Simple Data Writer Listener didn't  pick up on the new setting.
> >
> >
> >
> > Stan
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

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