I am using descriptive programming for my project.when QTP
deosn't identity or recognize a object by record and
playback method,is it possible to make QTP identify that
object using descriptive programming?
Note: The object doesn't have unique properties and same
properties used in Record and playback are only available,
no extra properties are defined.

Answer Posted / guest

As per my knowledge, QTP can recognize all type of objects
through descriptive programming. For that u need to create
object with the help one properties only i.e nothing
but "micClass". then set index property for remaining
object.

Example for Link object
=======================
set linkDesc = Description.Create()
linkDesc ("micClass").Value = "Link"
EditDesc("Index").Value = "0"
Browser("Browser Name").Page("Page Name").Link
(linkDesc ).Click

==========================

If u will change the index value, then it will click
accordingly.


I hope, it will resolve your problem.

Thanks,

-Akshaya-


Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we extract data like "Details","Result","Time" from the 'Run Error' result generated in QTP after run time errors are generated during a run & import the details etc...into excel sheet

1796


How to define array in qtp?

770


How can i click on any Excel sheet's "H" column with out writing coordinates Ex:Window("Book1").WinObject("Book1").Click 498,14 I dont want to give coordinates like 498,14 Can i open "H" column by writing like Ex:Window("Book1").WinObject("Book1").Click "H" or Ex:Window("Book1").WinObject("Book1").Click "H","1" or Ex:Window("Book1").WinObject("Book1").Click H,1 If i want to click on "Sheet3" of an excel sheet, Can i open like Ex:Window("Book1").WinObject("Book1").Click "Sheet3" Please help me any one

1851


How many types of recording modes are there?

789


What is the difference between analog and low level recording?

846


what is clean sweep?

2058


How many types of actions are there in quicktest professional (qtp)?

728


what is vmodel?advantages and disadvantages of vmodel?

1811


When ‘option explicit’ keyword is used in qtp?

966


When and why to use descriptive programming?

795


What is quicktest professional window?

761


What is the quicktest professional testing process?

814


How do you create new test sets in td?

716


Which scripting language used by quicktest professional (qtp)?

899


explain keyword driven framework with banking domain?

1762