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...

What are the advantages and disadvantages of Descriptive
programing and Object repository in QTP??

Answer Posted / vijay indur

Advantages:
1. One place where DP can be of significant importance is
when you are creating functions in an external file. You
can use these function in various actions directly,
eliminating the need of adding object(s) in object
repository for each action [If you are using per action
object repository]
2. The objects in the application are dynamic in nature and
need special handling to identify the object. The best
example would be of clicking a link which changes according
to the user of the application, Ex. “Logout <>”.
3. When object repository is getting huge due to the no. of
objects being added. If the size of Object repository
increases too much then it decreases the performance of QTP
while recognizing a object. [For QTP8.2 and below Mercury
recommends that OR size should not be greater than 1.5MB]
4. When you don’t want to use object repository at all.
Well the first question would be why not Object repository?
Consider the following scenario which would help understand
why not Object repository
Scenario 1: Suppose we have a web application that has not
been developed yet. Now QTP for recording the script and
adding the objects to repository needs the application to
be up, that would mean waiting for the application to be
deployed before we can start of with making QTP scripts.
But if we know the descriptions of the objects that will be
created then we can still start off with the script writing
for testing
Scenario 2: Suppose an application has 3 navigation buttons
on each and every page. Let the buttons be “Cancel”, “Back”
and “Next”. Now recording action on these buttons would add
3 objects per page in the repository. For a 10 page flow
this would mean 30 objects which could have been
represented just by using 3 objects. So instead of adding
these 30 objects to the repository we can just write 3
descriptions for the object and use it on any page.
5. When you want to take action on similar type of object
i.e. suppose we have 20 textboxes on the page and there
names are in the form txt_1, txt_2, txt_3 and so on. Now
adding all 20 the Object repository would not be a good
programming approach.

Disadvantages:
1. Test should aware of VB scripting knowledge.
2. The main disadvantage of Descriptive programming is
Maintenance issue.
Since Object repository will be stored in centralized
place, property definition for any Object can be easily
changed at any time if the application developer changes
the property of the actual object/control.

But, in descriptive programming (DP) it is difficult to
change the object property as each QTP developer will be
defining object property in many places using DP.

Is This Answer Correct ?    37 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

a="10.20.30.1" replace 1 with 45 in python using reg ex

1293


how do invoke OS task through ANT?

2654


In sap script, created 1 form but when its went to production system , client want some changes in 1 (ex - addrss) window, what we will do?

1464


I have deducted tds on pay slip for employees ist month tell me how to deposit this amt to govt. by bank or any form is available fill the same and deposit the govt. department. Pls explain me which form to be used for deposit the same with due date.

3312


Why we use Action Script(Multimedia Flash) rather than using other scripting languages (JAVA,VB...etc) ?

2764


Need a batch file or VB script to delete old (more than 90datys) roaming profiles

2261


what is the Structure of an ANT file?

2244


How do you insert record into scripting using siebel crm

5485


how can we move to the next column in excel sheet in file operation using descriptive programming inQTP?

2194


how can i type the text message in compose box in yahoo mail using descriptive programming in QTP?

2066


Would you tell me that what is test script? and how to write it? are there some templates?

2213


how do u define in ur build.xml If I need to execute a task before executing my task?

2221


why do u need an ANT?

2439


How can you convert QTP 8.2 scripts to QTP 9.2. Please give some inputs ASAP.

2782


I Am Planning to Write ISTQB foundation level Ceritification of inida. can Any Body let me know how to prepare for it & Any Study material can you provide or Any other E-books i should need to Study. Please Mail to me ajaybe_2004@yahoo.co.in THnaks in advance Ajay

2168