QuickTest Professional (QTP) Question:
Download Questions PDF

How to use Descriptive programming?

Answer:

There are two ways in which descriptive programming can be used
By creating properties collection object for the description.
By giving the description in form of the string arguments.

By creating properties collection object for the description.

To use this method you need first to create an empty description

Dim obj_Desc ‘Not necessary to declare
Set obj_Desc = Description.Create

Now we have a blank description in “obj_Desc”. Each description has 3 properties “Name”, “Value” and “Regular Expression”.

obj_Desc(“html tag”).value= “INPUT”

Download QTP Interview Questions And Answers PDF

Previous QuestionNext Question
When should I use SMART Identification?When and Why to use Descriptive programming?