ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
When to use Descriptive programing?
 Question Submitted By :: Rajaputra Arunsingh
I also faced this Question!!     Rank Answer Posted By  
 
  Re: When to use Descriptive programing?
Answer
# 1
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 ?    1 Yes 0 No
Malar And Sandy
 
  Re: When to use Descriptive programing?
Answer
# 2
if one describes the object description in the pgm itself 
that is desc pgmming
 
Is This Answer Correct ?    0 Yes 0 No
Mohammad
 
 
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
How should i get name of the screen? Ex:There is a "submit" button.If i clicked on the submit button it opens a screen. I want that screen name.How can i get that screen name I dont have any property regarding that screen. If suppose we cliked on the screen , Then QTP captures the screen properties then i can get the screen name by using GETROPROPERTY But i want the screen name without clicking the screen. ("I am using the "settoproperty" for Second screen by using fist screen properties") Please tell me anyone Livetek2
what is recovery scenario in QTP? what is the need of the recovery scenario in QTP? what are the advantages of the recovery scenarios in QTP? CTS3
What is the latest version of QTP? aster googling i found it 9.5 . but somewhere in my frnds resume i hve seen 10.0 so i am a bit confused pls let me know. NCR3
can we run the scripts of QTP8.2 in QTP7.0?  1
What is AUT in object reposity in QTP? Why we use it in Object repository???What is full form???????  2
in QTP, we have options like (record and play,recording modes(normal,analog,low level),object identification,smart identification,object repository,synchronizing test,transactions,checkpoints(std,bitmap,text,text area,DB,XML,accessibility),regular expression,actions,data driving,parameter,parameterization,data tables,recovery scenario(pop up,object state,test run error,application crash). real time users of QTP, pls say and when and at what point u have used all these options ,in ur concerned project.pls give me explanation in accordance with ur real time project handled. real users pls send some time in the aboue case. if u can send the the reply through allinterview or at ref_it_ref@yahoo.co.in  1
How to call .vbs funtion , Library files in QTP? plz Explain indetail(chandana) Wipro4
what are the design objects in qtp Wipro2
How to set the function parameters as optional. Pls anybody can give the answer.. Thanks in advance... Navis2
what is object repository?  3
How to invoke QTP using Dos prompt ? ABC2
Hello Everyone, In QTP we have one option Data Driver wizard that comes in Tools -> Data Driver. so, please tell me abtout the use of Add Value and Parameterize options available in Data Driver wizard. And also the concept of value, constants, Parameterized displayed in the wizard. Please explain by giving the example. Thanks in advance, Gaytri  2
if there r 10 windows open in QTP write a command to close all 10 windows at a time ? Wipro8
WHAT IS THE FRAMEWORK & ARCHITECTURE OF YOUR PROJECT Wipro2
what is virtual object?  2
Consider a scenario where there are two action sheets say action 1 and action 2. Can Action 1 take values from action 2 data sheet or vice versa. If so, how? Oracle6
When to Insert transactions in QTP? Siemens2
I want to open a Notepad window without recording a test and I do not want to use SystemUtil.Run command as well How do I do this?  9
I have recorded a test over web application(with IE6.0) in analog mode. But, while running it my test gets failed. Why? (Note: my systray has 3 open web applications)  1
results.xls file is automatically generated while running the script in QTP.But it is showing error to open the file  1
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com