jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: JMeter Setting Variable Values during a test
Date Wed, 02 Dec 2009 18:35:29 GMT
On 02/12/2009, Deepak Shetty <shettyd@gmail.com> wrote:
> You can do this in any BeanShell pre processor / post processor to a request
>  (at the right spot of course).

You should also be able to do this using the Pre-Processor designed
for this, i.e. the User Parameters test element.

UDV does not work for the reset because it is a Configuration element.

>  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
>  >
>  >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Mime
View raw message