Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

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)

1924


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

2040


What is qtp window?

939


Can U Explain about QTP tool from older version to latest version also its differences?

1925


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?

966


Is it possible to change the values of analog recording?

1054


how many maximum number of virtual users we can create?

2055


Hoe can we do retesting using functions please give the code for it using login page

1897


what is the structure for the data driven framework

1944


Explain step generator in qtp?

1052


How to find Operating system information using QTP script?

949


What is the new version of qtp which is recently released in the market?

1019


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 ?

2059


can any boby tell me what is method or steps to connect the remote desk top by using QTP 9.2 version?

2022


What is output value? How many types of output values are there in qtp?

965