jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepak Shetty <shet...@gmail.com>
Subject Re: JMeter Setting Variable Values during a test
Date Wed, 02 Dec 2009 17:52:43 GMT
You can do this in any BeanShell pre processor / post processor to a request
(at the right spot of course).
If you dont have an appropriate request that you could add the pre / post
processor to  you can create a Test Action Sampler and then add the pre/
post processor to it

regards
deepak

On Wed, Dec 2, 2009 at 9:29 AM, Eddie O'Sullivan <eos@qad.com> wrote:

>
> Hi all,
>
> Is it possibly to assign a value to a variable during a test run without
> recording a Sampler Result? The example below might explain better
>
> If I have the following test:
>      Thread
>            counter=0 (UserDefinedVariable)
>            found=0 (UserDefinedVariable)
>            Samplers
>            While Loop
>                  reset counter=0
>                  reset found=0
>                  While Loop
>
>                  End While
>            End While
>      EndThread
>
> In the first While loop I want to reset the variables "counter" and "found"
> to 0. Currently as a work around I am using a BeanShell Sampler and a
> Regular Expression Extractor, however this is producing a large number of
> Sampler Results I do not want.
>
> Is there an alternative to assigning a value to a variable during a test
> result with a Sample Result been taken?
>
> Thanks in advance,
> Eddie
>
>
>
> ---------------------------------------------------------------------
> 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