For the scenario 2, adding a HTTP Cookie Manager will take care of handling session ids.
Thanks & Regards Sengamalam Kannan Testing CoE Mobile: +91 99529 67005 Tel: +91 44 6615 2684 -----Original Message----- From: mayank panwar [mailto:mayankcoo...@gmail.com] Sent: Tuesday, March 31, 2009 5:20 PM To: JMeter Users List Subject: Re: JMeter- how to manage correlation?? Hi , Thanks for replying. Please solve following scenario's *1. I used HTTP URL Re-writing Modifier in following scenario:* I was load testing a site in which after i log-in the site, Session IDs was passed in the URL itself. so when i recorded the pages i got Session ID in HTTP Request --> Send Paramenters in the request section as Name: Session_ID. I added a "HTTP URL Re-writing Modifier" in that http request and set following: a. Checked Cache Session Id. b. Session Argument Name: Session_ID. After that I replaced value of Session_ID in the HTTP Request to *. I did the same procesdure for all the pages using Session_Id in thier HTTP Request. I run the test and everrything was Ok. Question1: Even without adding the HTTP URL Re-Writting Modifier i was able to run my test successfully. So what is teh requirement of managing Session_ID here. *2. Scenario 2:* I am load testing another site in which i am not getting any session ID on Http Request page but when i run the test i saw uique session id in the View Result Tree Listener --> Sample Result Tab (unique for every page) in the following format: Page 1: Set-Cookie: ASP.NET_SessionId=oo4rdu5505tzngb1ryvdzki1; path=/; HttpOnly Page 2: Set-Cookie: ASP.NET_SessionId=kdf4rl55r5gtqjqzqbptpz55; path=/; HttpOnly so on.... Now as i am getting diffenet session id's for diffenet pages, how can i manage correlation here? Question 2: How can i extract these session ID's and can use wild cards to send same session id in every request? Please reply as i am really strucked in above cases. Thanks in advance, Mayank. On Sat, Mar 28, 2009 at 5:32 AM, mayank panwar <mayankcoo...@gmail.com>wrote: > Hi, > > Thanks a lot for your response. It really helped me a lot !!! > > I used HTTP URL Re-Writing by putting the session Variable name in Session > Argument Name (HTTP URL Re-Writing) to manage correlation. > > I am still having some query regarding correlation: > > 1. Correlation can be achieved by both Pre Processors --> HTTP URL > Re-writing Modifier and Post Processors -> Regular Expression Extractor?? > Both are different methods to manage correlation?? > > 2. If yes, then what is the difference between both the methods? > > Thanks a lot in advance,Mayank. > > On Thu, Mar 26, 2009 at 7:42 PM, Himanshu Ghai <himanshug...@gmail.com>wrote: > >> add the cookie manager it will do it for sessions >> and other cookies..for the application correlation use >> regular expression extractor..it's there in the >> manual.. >> >> Himanshu >> >> On Thu, Mar 26, 2009 at 7:04 AM, mayank panwar <mayankcoo...@gmail.com >> >wrote: >> >> > Hi all, Could anyone explain me the concept of correlation, session id >> in >> > JMeter? how can i manage correlation in JMeter? >> > i am unable to find any help :( Thanks in advance. Mayank Panwar. >> > >> > > --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org