I tried again and it worked, same way I used to do! I switched from JMeter 2.0.2 to 2.0.3, perhaps something to do with that...
Thanks for your answers... Regards, Arno -----Message d'origine----- De : Bartlett, Sarah [mailto:[EMAIL PROTECTED] Envoy� : mardi 3 mai 2005 13:57 � : JMeter Users List Objet : RE: Regex extractor and if controller Check and see what id actually is using the tree view. It could be that it is empty and not taking the default value at all. I use if controllers with regular expressions a lot in my tests so I looked to see what I do. For one, and this might not matter, I have single quotes around both variable and value (ex. '${id}' != '-1' ), but it's been a while so I can't remember why that had to be done. -----Original Message----- From: COGOLUEGNES Arnaud [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 03, 2005 5:58 AM To: '[email protected]' Subject: Regex extractor and if controller 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] *** We scanned this email for malicious content *** *** IMPORTANT: Do not open attachments from unrecognized senders *** *** MailSystem ASTON *** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

