Ehat is the descriptive programing in QTP?

Answer Posted / ksuresh_999

In Three Situations we go for Descriptive Coding
a)When QTP is unable to identify the "Object" in
the Application?
b)When the "Object repository" become large to avoid that
c)When we are writing "Script" the application is not
ready, then we go for "Descriptive coding". For that dev
team provide LLD Docs.

Each object has default properties like Text Box has Text,
Attached Text, Native Class, Window ID.


Ex:- for login window

Dialog("Name:=Login").Winedit("Name:=User
Name :").set "Abcedf"


Dialog("Name:=Login").Winedit
("Name:=Password :").setsecure "Mercury"


Dialog("Name:=Login").Winbutton("Name:=Ok").Click


That means we provide the properties in scripting for
identify the objects in application.




Suresh K
09341899039
ksuresh.testing@gmail.com
Bangalore

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I need to obtain the parent of an object programatically, so if I have: winButton("aButton") I need to obtain the parent part: window("Window1").Dialog("Dialog1") so I can programatically create a string of the full name of the object to call it with an execute statement in QTP I would like to use something like: part[1] = "window(""Window1"")" part[2] = "dialog(""Dialog1"")" so I can do: exeLine = part[1]&"."&part[2]&"."&"winButton(""aButton"")" Execute exeLine Apart from keeping a record of the window/dialog hierarchy is there a parent or path function/ command Thanks Adrian

1574


Can we record using all the modes in a single script? Explanation with example is appreciated

1392


What is fragmentation and paging?

1594


How do know the number of browsers opened?

627


If I give some thousand tests to execute in two days what do you do?

586






Hi frens! I am testing VB project with MS Access database. At add button click my record is storing in data table and it is shown in datagrid. So at Delete button click i want to check datagrid rows 9before and after delete). so how can i do it using descriptive programming?

1475


What are the types of environment variables in qtp?

547


Explain the benefits of quick test pro(qtp)?

573


What are the ways you can synchronize?

587


Hi Friendss..., can any body help me.. 1. Tell me your achievements(Technically)..? 2. Tell me your strengths(Technically) and weakness(Technical)..? 3. Why are you looking for change..?

1422


How to add synchronisation points in qtp?

580


Which advantages helping QTP to hold the position of "Market Leader" for such a long period?

1390


what is the diffrence bw qtp architectute and qtp framework?

1544


How to handle the exceptions using recovery secnario manager in quicktest professional?

639


Which scripting language used by quicktest professional (qtp)?

666