jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dongsheng Song <dongsheng.s...@gmail.com>
Subject Re: Is there have any variables can be used within functions that generate different results each time they are called ?
Date Tue, 04 Dec 2012 02:46:59 GMT
On Mon, Dec 3, 2012 at 6:31 PM, sebb <sebbaz@gmail.com> wrote:
> On 3 December 2012 07:02, Dongsheng Song <dongsheng.song@gmail.com> wrote:
>> On Sun, Dec 2, 2012 at 8:03 PM, sebb <sebbaz@gmail.com> wrote:
>>>
>>> Yes, because as I previously wrote, User Parameters is executed for
>>> every sampler.
>>>
>>> If you want to initialise variables, do so on the Test Plan.
>>>
>>
>> So there no such variables which I can got (or modified) in one
>> sampler processor and generate different results each time they are
>> called, then used in the following sampler ?
>
> No, that's not what I meant.
>
> Variables are set by various test elements and are local to a thread,
> and remain set until updated.
> But you must ensure that you set them at the appropriate time.
>
> In the sample you provided the User Parameters element will be invoked
> before every sample, so will occur just before HTTP POST TO PAGE02
> which in turn will occur before the Timer.
>
> Add a Debug Sampler just before the loop and before HTTP POST TO
> PAGE02 to see this.
>
> Please (re)read the manual, especially:
>
> http://jmeter.apache.org/usermanual/test_plan.html#executionorder
>

That's what I wonder, If I want to use 'Sampler 1' BeanShell
Post-Processor 1 results in 'Sampler 2' Pre-Processor 1, what can I do
?

Thanks,
Dongsheng

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


Mime
View raw message