QTP: GetQueryStringValue

I recently updated a handy function for our QTP library. It is a handy function that will extract the query string from the URL in a current displayed browser, parse it, and store it in such a way that the user can call for the value by name. It is also pretty smart that it stores and only parses it one time. It remembers what the last browser was, and if the URL changes, it re-parses the string. Pretty handy. So, if you wanted a value out of the query string for say, lnkey, you'd simply call it like:

 

myVar = Browser("MyBrowser").GetQueryStringValue("LnKey")

It's made extracting such values infinitely simpler and provides a standard interface for use by the whole team.

 

Handy.

posted @ Tuesday, September 30, 2008 10:00 PM

Print
Comments have been closed on this topic.
«December»
SunMonTueWedThuFriSat
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910