Hi Neal,

It sounds like a variable scoping problem.
Have you declared this variable up in the 'Test Plan' 
scope?  I'm not sure if that's required or not.

I haven't used these, but study the difference between using
each of these to see if that makes a difference :

  __regexFunction
    "The Regex Function is used to parse the previous response"

  Regular Expression Extractor
    "will execute after each Sample request in its scope"

both documented @ :

  http://jakarta.apache.org/jmeter/usermanual/component_reference.html

The 5th parameter in __regex is the name of the variable to put the 
regex match into.

Here's a gotcha if you use a function. 
I don't believe white space is allowed
in the function between parameters - at all!  If you're used to
putting some white space in there for readability, then ouch!
I recall a previous post to that effect.


Lee Peterson

SAS Institute Inc.
SAS ... The Power to Know

> -----Original Message-----
> From: Neal O'Connell [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, March 23, 2004 9:42 PM
> To: 'JMeter Users List'
> Subject: RE: Newb needs regular expression help
> 
> 
> Mark & Lee,
> 
> Thanks for your help!
> 
> Between the two of you I was able to figure out what was going on.  
> 
> Using the suggested reg expr of SessionID=([^&"]+)[&"] I was 
> able to get the
> SessionID when I directly request the frameset.  But when I 
> request the page
> that redirects to the frameset, SessionID is set to the 
> default.  (I do have
> the HTTP Request set to follow redirects.)
> 
> Does this sound like a bug to anyone else?  It seems to me that if the
> request is set to follow redirects, shouldn't the items that 
> depend on it
> (reg expr, assertions) wait until the redirect has completed 
> and use the
> redirected response?
> 
> Maybe I'm just missing some JMeter setting?
> 
> Thanks!
> Neal
> 
> 
> ---------------------------------------------------------------------
> 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