Geeks With Blogs

News QTP and Stuff
Theo Moore Questions... Morphology? Longevity? Incept dates?

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.



Posted on Tuesday, September 30, 2008 10:00 PM | Back to top

Comments on this post: QTP: GetQueryStringValue

Comments are closed.
Comments have been closed on this topic.
Copyright © Theo Moore | Powered by: