Is it possible to get the session id in QTP

175 views
Skip to first unread message

Pavan Turlapati

unread,
May 1, 2010, 10:29:27 PM5/1/10
to QTP - HP Quick Test Professional - Automated Software Testing
Hi All,
I was just interested to know whether we have any
predefined function with which we can track down the current session
id.

Our test case is involving the session tracking, where we intend to
check
1) If multiple people are logging into the application using multiple
systems but with the same userid and password, how is the sessionid
getting changed?
2) If one user have multiple sessions opened (eg: by opening different
browsers and logging with the same id), what is the session id.

We need to test these scenarios, so could you please help me how to
retrieve the session id value using QTP.
Thanks in advance.

Regards,
Pavan Turlapati

--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to Mercu...@googlegroups.com
To unsubscribe from this group, send email to
MercuryQTP+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

Roman Zilber

unread,
May 2, 2010, 9:33:28 PM5/2/10
to mercu...@googlegroups.com
Is not it easier to do it with Loadrunner?

Session id is not a characteristic of browser, session ID written in the header of HTML request in cookies. Try to type:
javascript:alert(document.cookie)
in the browser's address bar, when the AUT is open, it will show the cookies.

Roman.
Reply all
Reply to author
Forward
0 new messages