QTP Tutorial #11 – Use of Password Encoder and Active Screen – Explained With Examples

This QTP tutorial will explain two basic but important features of QTP which are used frequently in advanced QTP scripts. They are the QTP password encoder tool and the active screen. 

Click here to see the list of all tutorials published in STH.

QTP Password tool:

For obvious reasons websites do not display password even while we are providing it as an input to sign in. QTP has a unique feature that will preserve the password from being out in the open thus maintaining the password’s integrity. As you might have noticed when we enter the password as ‘Mercury’ in the flight’s application along and illegible sequence of characters is set in the password edit box.

This is how it looks:

Dialog(“Login”).WinEdit(“Password:”).SetSecure “512c58cda469a14c01aa536f4a1a6a544d7d09e6”

In the above line of code we can see that the password is encrypted.

QTP records a ‘SetSecure’ method when a password is entered. It automatically encodes the password Continue reading →