Hi All,
I added a Regular Expression Extractor to get the
value of my sessionID.
The request which generates the sessionID returns this
html code :
/**************************/
<html><head>
<meta http-equiv="refresh"
content="0;url=/SASStoredProcess/do?_action=form,properties&saspfs_sessionid=3c7f76115d775182:1006d75:108af7146f1:-7d94&com.sas.bip.sessionid=3c7f76115d775182:1006d75:108af7146f1:-7d94&saspfs_sessionrequest=session1&_program=SBIP%3A%2F%2FFoundation%2FSamples%2FStored+Processes%2Fstppublish%28StoredProcess%29">
</head></html>
/**************************/

To get the value of variable saspfs_sessionid, I added
the follow Regular Expression extractor :
Ref Name : sessionID

Regular Expression:
<meta http-equiv="refresh"
content="0;url=/SASStoredProcess/do?_action=form,properties&saspfs_sessionid=([a-zA-Z0-9]+:[a-zA-Z0-9.]+:[a-zA-Z0-9.]+:[-a-zA-Z0-9.]+)&com.sas.bip.sessionid=3c7f76115d775182:1006d75:108af7146f1:-7d94&saspfs_sessionrequest=session1&_program=SBIP%3A%2F%2FFoundation%2FSamples%2FStored+Processes%2Fstppublish%28StoredProcess%29">

Template : $1$
Default Value : NOTHING

I modified requests which use this variable with
${sessionID} variable.
but When I validate the request, I have it :
Query data:
_program=SIP%3A%2F%2FFoundation%2FSamples%2FStored+Processes%2Fstppublish%28StoredProcess%29&_action=strip&_debug=&_odsdest=&_odsstyle=&_gopt_device=
Referer:
http://midbv:7001/SASStoredProcess/do?_action=form,properties&saspfs_sessionid=NOTHING&com.sas.bip.sessionid=NOTHING&saspfs_sessionrequest=session1&_program=SBIP%3A%2F%2FFoundation%2FSamples%2FStored+Processes%2Fstppublish%28StoredProcess%29
Host: midbv:7001
../..

The value NOTHING is in the request, not my result
value of the regular expression.

I'm validating my regular expression in RegexSR tool
and it works correctly.

How can I get correctly the value of variable  ?
Pascal.

--- pascal NICOLAS <[EMAIL PROTECTED]> a écrit :

> Hi All,
> I'm a beginner with Jmeter and I would like to
> simulate some users on the jsp application.
> I created my project with proxy but when I execute
> it,
> my application returns errors for some requests.
> The error appears when my request uses a dynamic
> parameter.
> My jsp application is a portal environment and we
> need
> to manage sessionID for each user and others
> specific
> session variable. the application regenerates these
> variables dynamicly and I can't put them "in hard"
> in
> the project.
> 
> It seems that we can collect dynamic variable with
> regular expression but I don't find the good way or
> syntax to collect them.
> 
> 
> Example:
> request 1 : connection to portal - generate unique
> sessionID for my user.
> request 2 : need to use this sessionID value to use
> correctly the web application.
> 
> Can you help me on this point ?
> Regards,
> pascal.
> 
> 
>       
> 
>       
>               
>
___________________________________________________________________________
> 
> Nouveau : téléphonez moins cher avec Yahoo!
> Messenger ! Découvez les tarifs exceptionnels pour
> appeler la France et l'international.
> Téléchargez sur http://fr.messenger.yahoo.com
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



        

        
                
___________________________________________________________________________ 
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs 
exceptionnels pour appeler la France et l'international.
Téléchargez sur http://fr.messenger.yahoo.com

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

Reply via email to