On 8 December 2010 17:55, Rob Schroder <[email protected]> wrote:
> Got it.  Thanks, Sebb.  It also seems that the post-processors only work if 
> placed after sampler,

Not so, they can be placed anywhere within scope:

http://jakarta.apache.org/jmeter/usermanual/test_plan.html#scoping_rules

> which seems strange because there's nothing from the sampler's response that 
> needs to be acted upon.

See also execution order:

http://jakarta.apache.org/jmeter/usermanual/test_plan.html#executionorder

> In any event, thanks for clearing up my confusion on the matter!
>
>
>
>
> On 12/7/10 4:42 PM, "sebb" <[email protected]> wrote:
>
> On 8 December 2010 00:29, Rob Schroder <[email protected]> wrote:
>> If I understand you correctly, you're saying I simply want to do the 
>> following?:
>>
>> vars.put(${mailer_account_id_not_found},"false");
>>
>
> No, ${mailer_account_id_not_found} returns the value of the variable
> mailer_account_id_not_found.
>
> If V is a variable name, ${V} returns its value.
>
> To set variable V:
>
> vars.put("V","value");
>
>>
>>
>>
>> On 12/7/10 4:20 PM, "sebb" <[email protected]> wrote:
>>
>> On 7 December 2010 22:01, Rob Schroder <[email protected]> wrote:
>>> To add some specifics to this, I have the following:
>>>
>>> The While Controller has the following in its "condition" field: 
>>> ${mailer_account_id_not_found}
>>
>> Which returns _value_ of the variable "mailer_account_id_not_found"
>>
>>> In the While Controller loop, I have a BeanShell PostProcessor that 
>>> contains the following script:
>>> vars.get("${mailer_account_id_not_found}");
>>
>> Which uses the _value_ of the variable "mailer_account_id_not_found"
>> as the name of another variable - probably not what you want.
>>
>>> vars.put("${mailer_account_id_not_found}","false");
>>
>> Ditto.
>>
>>> Shouldn't this set ${mailer_account_id_not_found} to "false"?
>>
>> Yes, it does. But you want to set the variable
>> mailer_account_id_not_found false, not the variable whose name is the
>> value.
>>
>>
>>>
>>>
>>>
>>> On 12/7/10 1:45 PM, "Manilla" <[email protected]> wrote:
>>>
>>> Hi,
>>>
>>> Apologies for this naïve question, but I've been having an issue with 
>>> changing the vale of a variable in a While Controller.  The variable I have 
>>> in the condition field is ${Value}.  What's the best mechanism for changing 
>>> the value of ${Value} to "false"?  I've tried using post processors, but I 
>>> can't verify that it's being passed.  Am I doing something stupid?  Is 
>>> there an obvious way to do this?
>>>
>>> Thanks...Rob
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to