Category Archive: QTips

Apr 08 2013

Set and Retrieve the Comment Property of a Test Object

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

Oct 05 2012

Block Decryption of Encrypted Passwords

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

Decrypt an Encrypted Password

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

Using a Test Object Custom Property

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 …

Continue reading »

Aug 16 2012

Show all Files in a Folder Recursively

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

Find a File Recursively

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) …

Continue reading »

Aug 12 2009

Conversion

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 …

Continue reading »

Jul 22 2009

HP Released Debugger Patch for QTP 10

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 …

Continue reading »

Jul 14 2009

Highlighting the .Net Active Control in Screen Captures

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 …

Continue reading »

May 26 2009

Find a File Recursively

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.
Enjoy!

Page 1 of 1812345...10...Last »