Shared Object Repository is preferable while dealing with dynamic objects ok? descriptive prog also same?
ok but why descriptive?(only for w/o application)

Answer Posted / saritha

Below are some situations when Descriptive Programming can be considered useful.

1] The objects in the application is dynamic in nature and need special handling to identify the object.

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

3] When you don't want to use object repository at all.Well the first question 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 making QTP scripts.But if we know the descriptions of the object that will be created then we can still start off with the script writing for testing.

scenario 2] suppose an application is 3 navigation buttons on each and every page.Let the buttons be "Cancel","Next" and "Back".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.



4] Modification to a test case is needed but the object repository for the same only is Read only or in shared mode i.e ,changes may affect other scripts as well.



5]When you want to take action on similar type of object i.e, suppose we have 20 textboxes on the page and ther names are in the form txt_1,txt_2,txt_3 and so on.Now adding all 20the object repository would not be a good programming approach.There are two ways in which descriptive programming can be used.

I] By creating properties collection object for the description.

i i] By giving description in the form of string arguments.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to create runtime property for an object?

1439


I am getting the "test object property" Description properties "toolkit class" value By using "gettoproperty" in run time But my problem is how to get Ordinal Identyfier's type and value Type is index, value is 0 How can i keep this values in to required place How can i get these values in runtime I have to insert these "index" and "value" into another area Is there any script for this like "gettoproperties","Getroproperties" If anybody knows,please help me .

1714


How to indentify MS-Word objects like Menubar, Toolbar, table/columns/rows/cells etc within Word document, using QTP?

1796


If you giving priority as p0, as a developer if I give priority as p2, What happens In user defined function ?

576


Without integrating QC/Testdirector with QTP, is it possible to keep track of the defects?If yes how? How to export QTP results to an excel sheet?

1477






Consider one application is open, clicking one menu will open another application in another browser. QTP does not catch the URL of the second browser(second application). can we capture it ?

1461


Hi I know two types of testing processes. 1. Reaquirments stage,test design,code review's, Design review's, Test Plan, Test Cases design, test execution, Defect Reporting and tracking, UAT, Signoff. 2.Test Initiation , Test Plan, Test Design, Execution,Bug tracking, UAT, Sign off.

1363


what is the difference betn QTP 8.0 AND PREVIOUS VERSION

1945


The hybrid framework can be implemented for any application. Is it true?

578


hi guys we r working in office...we write some scripts..suddenly we have a work(5min only) in out side..what will do now,,,used to system shut down or log off or lock or sleep mode,switch use or hibernate?

1578


Explain how qtp identifies objects?

558


To which environments does quicktest professional (qtp) supports?

579


In QTP TEST DIRECTOR COMBINATION WHAT IS THE PURPOSE OF TEST DIRECTOR? In Somebody says to store test cases and design test cases.?ok fine , but In test director 5.0 , QTp not launching. what u do?

1484


Explain process of smart Identification in QTP?

592


On the website, the protocol has been changed https: to https what you will do? Tell me your approach?

567