Hi
a. use a debug sampler or just type ${variableNameYouveUsed} in the next
sampler name to check what value you are getting , if this value is correct
, how exactly are you passing it to the next request .

b. An easier solution is to use the HTTPCookieManager under your thread
group so that the JSESSIONID is stored as a cookie (assuming your server is
configured for both urlrewriting and cookies which you can verify whether
the first response has a Set-Cookie)

regards
deepak

On Fri, Aug 7, 2009 at 10:45 AM, Braulio <[email protected]> wrote:

>
> Hi All,
>
> I'm running into an issue with JMeter in that I can't pass the JSESSIONID
> to
> other requests in the same Thread Group in my JMeter script.
>
> The script is very simple (all in one thread group):
> 1. Send HTTP request to go to Login page
> >> Regular Expression Extractor to get JSESSIONID and store in variable
> 2. Send HTTP request to Login to site (POST)
> 3. Send HTTP request to Logout (POST)
>
> The problem is that even though I'm extracting the JSESSIONID (I think I'm
> doing it right) it doesn't seem to pass it to the second request, therefore
> the user is never logged in.  Instead, it looks like a new JSESSIONID is
> created and the site redirects me to the Login page (step 1).  I can never
> login to the site! If the script was working correctly, I would expect that
> after step 2 the user to login to the site.
>
> Any ideas?  Very much appreciated.
>
> Brau
>
>
> --
> View this message in context:
> http://www.nabble.com/How-do-you-pass-a-JSESSIONID-to-other-requests-after-Login--tp24869203p24869203.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to