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
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
Can we record using all the modes in a single script? Explanation with example is appreciated
What is fragmentation and paging?
How do know the number of browsers opened?
If I give some thousand tests to execute in two days what do you do?
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?
What are the types of environment variables in qtp?
Explain the benefits of quick test pro(qtp)?
What are the ways you can synchronize?
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..?
How to add synchronisation points in qtp?
Which advantages helping QTP to hold the position of "Market Leader" for such a long period?
what is the diffrence bw qtp architectute and qtp framework?
How to handle the exceptions using recovery secnario manager in quicktest professional?
Which scripting language used by quicktest professional (qtp)?