To set the comment property of a test object: obj.SetTOProperty ”miccommentproperty”, Now() To retrieve the comment property of a test object: Print obj.GetTOProperty(“miccommentproperty”) * Special thanks to Marc Miedema for providing the basis for this post through our AdvancedQTP LinkedIn Group. Thanks also to Brian Colcord who originally raised the question. Join the forum discussion on this post
Category Archive: QTips
Oct 05 2012
In a previous article we have seen how to decrypt an encrypted password. In this brief post we shall see how to block such possibility to ensure passwords are secure within the scope of automation.
Oct 01 2012
When we enter a password to a WebEdit the input string is encrypted. This short article suggests a method to easily decrypt a given encrypted password automatically.
Aug 25 2012
In a previous article we touched upon the subject of Test Objects in QTP. To briefly summarize, Test Objects provide access to Runtime Objects (the actual objects in the AUT) and thus enable us to manipulate the AUT’s GUI and retrieve data from it, much like a human user. Basically a Test Object uses a description …
Aug 16 2012
Sometimes one needs to produce a list of files in a directory hierarchy. Here is one possible solution that uses a recursive subroutine.
Sep 02 2009
This is a revised version of a previous QTip that suggested a function to find a file deep-down a folder hierarchy starting from a known folder as root. The current implementation is much simpler to understand and robust. Please note that the function uses recursion. Enjoy! 1: ‘———————————————————————– 2: Public Function FindFileRecursively(ByVal strRootFolder, ByVal strFilename) …
Aug 12 2009
Every average QuickTest user probably knows that if he needs to make a number conversion he will use the two built-in functions supplied by VBscript Hex The Hex function returns a string that represents the hexadecimal value of a specified number. Note: If number is not a whole number, it is rounded to the nearest …
Jul 22 2009
As reported previously, HP has been working on solving many of the problems in QTP 10 Debugger; And now the long awaited patch is finally here! You can download QTP_600 from HP support site. Here’s the direct link to the download (and HP support account is required): http://support.openview.hp.com/selfsolve/document/KM752935 Here’s the patch description: QTP_00600 – Stability …
Jul 14 2009
Whether you’re using your own reporting framework, or QTP’s native reporter, your report is probably filled with a lot of full-desktop screen-captures, which are supposed to make the report more comprehensible, but usually just confuse the average reader. An effective screen-capture should highlight the relevant area in the application, and not leave the reader with …
May 26 2009
This QTip provides a function to find a function deep-down a folder hierarchy starting from a known folder as root.
Please note that the function uses recursion.