jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepak Shetty <>
Subject Re: Removing variables
Date Tue, 01 Dec 2009 18:15:16 GMT
if you want to clear all variables, its simple to do this in
beanshell.(JMeterVariables -
lets you get all the variables and you can loop over the key names and
remove them)
If you wanted to clear a subset , then I'd probably go with a naming
convention (all variables to be cleared will be prefixed with clr_ and write
a beanshell script to iterate and remove variables satisfying the condition)

On Tue, Dec 1, 2009 at 5:58 AM, Ryszard Łach <> wrote:

> I'm preparing a test profile using regexp and xpath extractors quite
> extensively. Each matching extractor creates some variables local to thread
> and if the thread is looping over the thread group, then there is a risk,
> that variables from previous thread group run will be used in the next one.
> Is there a smart way for avoiding this? I've tried to add beanshell sampler
> at the and of profile removing those variables, but it is hard to maintain
> with big profile. Is there a 'clear variables each iteration' checkbox
> similar to that one for cookies?
> Maybe changing testing strategy e.g. that way:
> * add constant timer e.g.60 000 ms to the profile
> * set big amount of threads (10000)
> * set long ramp-up period (3600 s)
> * set thread group so, that every thread goes through it only once
> What do you think about?
> R.
> --
> "First they ignore you. Then they laugh at you. Then they
> fight you. Then you win." - Mohandas Gandhi.

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