On 10/01/06, pascal NICOLAS <[EMAIL PROTECTED]> wrote:
> I don't find solution to get correctly my variable.
> I must write bad something in my project.
> I use Jmeter 2.1.1.
>
>
> The request /Portal/syndication.do  returns this html
> string (html code of View Result Tree) :
> <html>
> <head>
> <meta http-equiv="refresh"
> content="0;url=/SASStoredProcess/do?_action=form,properties&saspfs_sessionid=3c7f76115d775182:1006d75:108afbf3964:-77b4&com.sas.bip.sessionid=3c7f76115d775182:1006d75:108afbf3964:-77b4&saspfs_sessionrequest=session1&_program=SBIP%3A%2F%2FFoundation%2FSamples%2FStored+Processes%2Fstppublish%28StoredProcess%29">
> </head>
> </html>
>
> I put my regular expression as child of this request.
> Ref Name : sessionID
> RegExp :
> &com.sas.bip.sessionid=([a-zA-Z0-9]+:[a-zA-Z0-9.]+:[a-zA-Z0-9.]+:[-a-zA-Z0-9.]+)&

This is different from the previous RE you posted, where you were
looking for saspfs_sessionid.

Also, the "." characters should really be escaped:

com\.sas\.bip\.sessionid

Not sure why you are including "." in the character classes; the
example does not have "." in the session id.

You could try:

com\.sas\.bip\.sessionid=([-a-z0-9:]+)

> Template : $1$
> Default : NOTHING
>
> I validated my regular expression in "Vi" and
> "RegexSR" and it works.
> but in Jmeter, no way !!
> I don't understand why.
>
> Do I put the RE extractor at the good place (child of
> request  /Portal/syndication.do) ?

Yes, so long as that is the request that generates the response.

> How can I validate the "good" regular expression for
> Jmeter ?
>
> The html code is in the header tag. Is it a problem ?

No, it is still part of the body of the page.

Make sure you set the "Response Field to check" as Body, and not Headers.
"Headers" refers to the HTTP headers (e.g. Set-Cookie, Content-Type).

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to