i need to learn the descriptive programming very well so for
that what to do am reading the qtp user mannual but it is
not so any materials or links with examples i want please
help me
Answer Posted / pallavi
Hi,
In Decriptive programming all the properties and their
values which make an object uniquely identifiable are
written in the script.
Regular Expressions can be used to specify the value.
Easy way to learn Descriptive programming would be
1.Record the script
2. Now modify the code in such a way the code becomes
independent of object repository
3.Now try to run this code
Eg.
1.If the recored statement is
Browser("Yahoo Login").Page("yahoo Login").WebEdit
("Login").set "User1"
2. Now try to identify the variable-value pair for each oh
these objects which will make these objects unique.
For example if for 'Page' object , its title makes it
unique, then specify the property-value pair in the
description
Browser("title:=Yahoo Login").Page("title:=Yahoo
Login").WebEdit("Name:=Login","html tag:=INPUT").set "User1"
Note:
1. Object Spy will give the the list of all the properties
and their current value for an object.
2. what i do is,
I. i record the script, now the object repository is
created.
II. Now i start changing the script, by looking at the
object repository i change the description of the object in
the script.
III. Run the modified script. I correct the script until
the scrit runs successfully.
IV. When the script runs without any error and is
completely descriptive. Go to Object Repositry and delete
the antire object repository
3.You can write partly descriptive script also
E.g.
Browser("Yahoo Login").Page("yahoo Login").WebEdit
("Name:=Login","html tag:=INPUT").set "User1"
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Suppose I have three hyperlinks with same properties. How to solve this and what are the ways to solve this. we can solve this by using index property but what are the other ways we have have to solve this problem. Login (href: btnlogin.aspx) Login (href: Sourcelogin.aspx) Login (href: homelogin.aspx)
i am new QTP... please tell me automation frameworks , types & for whiich type of applications frameworks are used & how to generate script in keyword driven framework
What is qtp window?
Can U Explain about QTP tool from older version to latest version also its differences?
How extensive or customized are the server logging and reporting requirements; are they considered an integral part of the system and do they require testing?
Is it possible to change the values of analog recording?
how many maximum number of virtual users we can create?
Hoe can we do retesting using functions please give the code for it using login page
what is the structure for the data driven framework
Explain step generator in qtp?
How to find Operating system information using QTP script?
What is the new version of qtp which is recently released in the market?
1.Write a CRITICAL test cases for calculator ? 2.What is the difference b/w FRS and SRS documents ? 3.What is Component ? 4.What is object ? 5.what is the difference b/w static and dynamic descriptive programming ?
can any boby tell me what is method or steps to connect the remote desk top by using QTP 9.2 version?
What is output value? How many types of output values are there in qtp?