If it is a scope issue, try adding a simple controller as parent of
the If controller.

e.g.

Sample 1
- Regex
Simple Controller
- If Controller
- - Sample 2

S.
On 5/3/05, COGOLUEGNES Arnaud <[EMAIL PROTECTED]> wrote:
> Hi all,
> 
> I'm trying to do the following in web test plan: from request A, I retrieve
> object ids with a regex post-processor and I re-inject a random id value in
> the following request (B). It works perfectly and give some realism to the
> test plan. But sometimes, the object list can be empty in request A, so no
> id can be retrieved and request B becomes useless. I wanted to add a
> IF-controller before request B, to test the value of the variable containing
> the id, let's say ${id}, and skip B if ${id} is equal to the regex extractor
> default value. I put this code in the IF condition:
> 
> ${id} != -1    (-1 is the default value)
> 
> but B is always exectuted. First, I thought about the condition syntax but I
> tested with a user variable defined in the test plan and it looked ok. So I
> thought about a scope issue. Is the extracted value visible for the
> IF-controller?
> 
> Any help is welcome, hope my explanations are clear.
> 
> Regards,
> 
> Arno
> 
> ---------------------------------------------------------------------
> 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