When to use Descriptive programing?

Answers were Sorted based on User's Feedback



When to use Descriptive programing?..

Answer / malar and sandy

Below are some of the situations when Descriptive
Programming can be considered useful:
1. 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
<<UserName>>”.
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 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.

4. Modification to a test case is needed but the
Object repository for the same 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
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.

Is This Answer Correct ?    4 Yes 1 No

When to use Descriptive programing?..

Answer / mohammad

if one describes the object description in the pgm itself
that is desc pgmming

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

what is the difference between Reusable action and external action?

2 Answers   HCL,


Create flight reservation login descriptive programing (Condition: Remove the value and substitute with a variable, and then call the validation from Excel) Plz help me....... very urgent.........

0 Answers  


How u call functions in QTP

5 Answers   Lehman Brothers,


After coming to know that QTP could not identify non-standard objects, we set those non-standard objects as virtual objects using Virtual object wizard. But how can we identify that qtp could not identify non-standard objects?

6 Answers  


How Does Run time data (Parameterization) is handled in QTP?

4 Answers   IBM,






how can i add an action(external action) programmatically?

3 Answers   Ordain Solutions,


Is it possible to switch between recording modes during a test creation?

0 Answers  


Hi All I'm new in QTP. I'm trying to make test cases for login on Flight.exe . I have parametrise the agentname and password field. So wen wromg agent name or password is entered it show a dialog box with proper message(Like: "Wrong Password" or :Please enter Password" etc) and OK button. I have created If else block. Now my problem is i want to make checkpoint on error message Dialog box. But each time i create a checkpoint it shows same text message. So how i can check that message is there or not.

2 Answers  


How we can add actions in the test using QTP?

4 Answers   BirlaSoft,


what is error and fault in terms of software quality?

0 Answers   TCS,


QTP 1.What type of bugs u commonly find in u r project? 2.what is agile testing explain with example? 3.application is given req n functionality r missing then how can u start testing? 4.what r the types of defect tracking tools? 5.what is functionality testing? 6.what is change req how u use it? 7.diff bet gul n functional testing? 8.test cases for IE 6.0? 9.where do u store test cases? 10.what r design objects in qtp? 11.what r 5 types of objects in qtp? 12.how to change .mtr to .tsr n vice versa? 13.in which situations qtp will not recoznize objects? 14.how to call .vbs fuctions, library files in qtp? 15.if 10 windows r ope write command to close all windows in qtp? 16from what stage u start automation in u r project? 17.what is VSS? it is usedin automationr manual? 18.size of object repository? 19.how to conduct GUI testing n performance testing on MS-Word? what r performance TEST CASES? 20. use of virtual objects explain? 21.how to connect buzilla with qtp? 22. what is API ? 23.how to merge 2 object repositories in qtp? 24.what is recovery scenario manager? 25. diff bet link n hyper link? 26.diff bet test case n test case scenario? 27.what is relational testing? 28.where do we write test cases? 29.what is base line in testing? 30.what r key process areas(KPA) in u r company? 31.what is hot fix? 32.what is sql injection? 33.what is valnerability? 34.what is TOM in qtp? 35.can we do qtp testing with out creating objects in object repository? can we completely write code in expert view only? 36.where we cant do automation testig? give example using OR is a advantage r a disadvantage?

6 Answers   IBM,


How to export data in excelsheet to qtp without using datatable.

4 Answers  


Categories