[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jmeter-user
Subject:    RE: Problem with If Controller ?
From:       "Krishna, Raj" <Raj.Krishna () ca ! com>
Date:       2004-07-26 4:41:42
Message-ID: 5DE044886484794E872F53E6E6DC50DA02E91016 () ausyms22 ! ca ! com
[Download RAW message or body]

Hi Sathya,

I got over the problem by changing my thread number using which I could
chage the count, not exactly what I wanted to do but served my pupose.

May be u could try that.

Cheer, 
raj

-----Original Message-----
From: Krishna Satya [mailto:krishnasatya@hotmail.com] 
Sent: Friday, 23 July 2004 6:43 AM
To: jmeter-user@jakarta.apache.org
Subject: Problem with If Controller ?


All
I have a HTTP request/response from which I would like to parse a URL. I

would like to invoke the URL if one is present.  This whole scenario is 
wrapped in a Loop controller.

The plan looks like
-- Thread Group
    -- Loop Controller
       -- HTTP Request1
          --- RegEx Extractor to a reference variable myUrl default
value is 
: false.
       -- If Controller  javascript func looks like 
${__javaScript('${myUrl}' == 'false' ? "false" : "true",)}
          --- HTTP Request2

The If Controller seems to work fine the first time with the value of
myUrl 
getting set.  The second pass around through the loop the reference
myUrl is 
getting set properly but somehow the If Controller seems to be using the

value of ${myUrl} from the first pass through.

This could be a problem with my understanding of how variable scoping
works. 
I have spend considerable time trying to figure this.   Any ideas to
help 
this will be much appreciated.

Thanks.
-Krishna

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's
FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic