QuickTest Professional (QTP) Question:

How to use Descriptive programming?

Tweet Share WhatsApp

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 PDF Read All 115 QTP Questions
Previous QuestionNext Question
When should I use SMART Identification?When and Why to use Descriptive programming?