Ehat is the descriptive programing in QTP?
Answers were Sorted based on User's Feedback
Answer / 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 |
the Two above answers are correct...
there is simple technique to write descriptive
programming..to write DP we use Object Identification dialog
box and Object spy dialog box.
Object Identification dialog boxes uses to know which
properties can identify an object uniquely and Object spy
uses to know values of this property..this technique is
suggested when the application is ready only. If application
is not ready we can write only visible properties, like
text, attachedtext, class.
we can write DP in two ways..by throwing the properties
and their values directly in to script (or) by creating an
object by using description.create method.
for example:
set objtext = description.create
objtext("nativeclass").value = "Edit"
objtext("attachedtext").value = "XXXXX"
this will create a text box object.
browser("sadgd").page("sahdga").webedit(objtext).set "asgfsad"
second method is:
browser("sadgd").page("sahdga").webedit("nativeclass:=Edit","attachedtext:=XXXX").set
"asgfsad"
If any queries..
nanda.dreddy@gmail.com
| Is This Answer Correct ? | 0 Yes | 1 No |
How do I record a script to automate the username and
password for 3 different types of surveys who's username
and password are all the same? I need to run this same
piece of script against all these surveys who get prompted
for the username and password at the exact same place.
| Is This Answer Correct ? | 0 Yes | 2 No |
Answer / nath .t
Descriptive programming means we can write VB Script
without objective Repository. we can write program with
the help of object properties.
ex: if u want to write descriptive program for login page
login page have userid and password and ok, cancel button
every object have some common properties with that we can
write descriptive program suppose u take here login is
window.
Window have some properties like TEXT, ATTACHED TEXT,
NATIVE CLASS, WINDOW ID.....
same as for Text boxes having TEXT, ATTACHED TEXT, NATIVE
CLASS, WINDOW ID....
with the help of above properties we can write descriptive
program
| Is This Answer Correct ? | 0 Yes | 4 No |
we use a file extension .properties why is it used and where do we use it plz help me out with detailed explanation and navigation of how to use on the QTP 8.2?
How do you copy a value from a cell in an msexcel sheet saved on the desktop into QTP's datatable when the co-ordinates of cell are given?
WHO TAKE DECISION TO RELEASE THE BUILD
What is TD plugin? For what purpose they are used . Ineed to connect QC9.2 with QTP 9.2 . Need to run some scripts IN QTP having the QC connectivity. Pls explain in detailed step Thanks in advnece
Explain the concept of Output values in Quick Test Professional?
there are having 10 checkboxes..how can i check only first 5 check boxes by using descriptive programing..
What are the different attribute used with regular expression?
How to pass parameters to Actions Pls anybody can give the answer.. Thanks in advance...
I have created 3 actions in test action1, action2, action3 but I want run action 1,action 3,action2 how can you change in the actions in keyword view?
HOW TO COUNT NUMBER OF ITEMS PRESENT IN WEB LIST
where exactly we can't do the automation testing. give some examples
How to get popup error message.