site
stats

Author Archives: Anish Pillai

How to Encrypt Passwords using QTP

September 6th, 2011 | Posted by Anish Pillai in QTP Basic Stuff - (5 Comments)

This article covers the different aspects of password encryption in QTP. It talks about why password encryption may be needed, how to encrypt passwords using QTP and how to use the encrypted passwords in our scripts. Lets discuss all these points one by one.

How to Decrypt an Encrypted Password in QTP

September 5th, 2011 | Posted by Anish Pillai in Not So Common Stuff - (8 Comments)

To encode or encrypt a password, QTP provides Encrypt method and Password Encoder tool. But what happens when a user wants to find out the decrypted (original) value of an encrypted password? QTP doesn’t provide a direct way to obtain the decrypted/decoded password.

Call is a VBScript Statement that transfers control to a Sub or Function procedure. The syntax of Call statement is – [Call] functionOrSubName [Argument(s)] where, Call is the optional keyword, functionOrSubName is the name of the function or sub to be called, Argument(s) is the comma-delimited list of parameters.

Reserved Objects in QTP

September 2nd, 2011 | Posted by Anish Pillai in QTP Concepts - (5 Comments)

To begin with, lets see what is an object (or test object) w.r.t. to QTP. A test object is an object used by QTP to represent an object in our AUT (Application Under Test). Each test object has a set of identification properties to identify it correctly in the application.

Numerous times we would have come across the situation where we need to use the Wait() function in our scripts. Consider a scenario where user has to script for auto timeout functionality of the application. i.e. the application under test (AUT) should log out automatically if its left idle for some fixed duration

Did you ever encounter a situation where you needed to search a sub-string inside a string? Of course InStr() is a great function which helps users solve this problem. But what happens when the sub-string you want to search contains a regular expression?

How To Use Regular Expression Evaluator in QTP 11

August 28th, 2011 | Posted by Anish Pillai in QTP Concepts - (4 Comments)

QTP 11 has provided a new feature to test the regular expressions that  automation testers might use in their object repository. This utility, named ‘Regular Expression Evaluator’, helps the users validate their regular expressions before the actual script execution.

Effect of Deleting Objects on Size of QTP Object Repository

August 25th, 2011 | Posted by Anish Pillai in QTP Concepts - (2 Comments)

How do you add objects to your Object Repository? Do you select the top level object, add all objects under it and then delete the ones not needed? Or do you add objects by selecting single object each time? Ever wondered how deleting an object effects the size of your object repository?