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                      
tip   To Refer this Site to Your Friends   Click 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
WHAT IS THE DESCRIPTIVE programming when it is useful? & 
when to use this ?
 Question Submitted By :: Eshwar
I also faced this Question!!     Rank Answer Posted By  
 
  Re: WHAT IS THE DESCRIPTIVE programming when it is useful? & when to use this ?
Answer
# 1
descriptive programming in QTP means whenever qtp facing 
dificulty with obj identification then we will go with 
regular exp or desc prog it means identifying obj unique 
prop from the script itself.
ex:vbwindow("").vbedit("attached text:=username").set cdbjd
 
Is This Answer Correct ?    3 Yes 2 No
Brahma Reddy
 
  Re: WHAT IS THE DESCRIPTIVE programming when it is useful? & when to use this ?
Answer
# 2
without using the objectrepository, and by using the 
objectspy we will write the DESCRIPTIVE programming .
when ever we will go to DESCRIPTIVE programming :-
1.when ever objects are dynamicaly changing.
2.when ever QTP is not going to recognise the objects.
3.when ever objectrepository size is huge automatically QTP 
wil get down slow.
4.when ever not yet develop the build then only we will use
  DESCRIPTIVE programming .
 
Is This Answer Correct ?    14 Yes 1 No
Venkatraj.b
 
 
 
  Re: WHAT IS THE DESCRIPTIVE programming when it is useful? & when to use this ?
Answer
# 3
Hi
the qtp does not identify the development technologe object
that time we can use discriptive programme
the object isnot in object repository then work that object
based on unique property it is comming under descriptive 
programme
uses repository sige is decrese 
 we can exicute test case with out repository
i think this is enough if find out any sutiable answer 
please send to me 
      thanks
 
Is This Answer Correct ?    1 Yes 4 No
Ravinder
 
  Re: WHAT IS THE DESCRIPTIVE programming when it is useful? & when to use this ?
Answer
# 4
descriptive programming is a process where you can wite a 
program directly execute it with out the help of object 
repository.

It used when QTp is unable to find the object..
 
Is This Answer Correct ?    7 Yes 1 No
Raghu
 
  Re: WHAT IS THE DESCRIPTIVE programming when it is useful? & when to use this ?
Answer
# 5
List few scenarios where Descriptive Programming MUST be 
used? 

1.	For an object which will be used only once or 
twice, there’s no need to use the slow, complex Object 
Repository. DP should be used.

2.	In case the identification properties and values of 
an object match more than one object; QTP will throw 
an "Object’s description matches more than one of the 
objects currently displayed in your application" error (If 
OR is used).        
           DP easily deals with double objects by using the 
index property. We can add “Index:=X” to the description 
strings (when X is a zero-based counter), and QTP will 
point to object #X.
3.	Some objects change hierarchies i.e. an object will 
appear under a different parent each time (e.g. – a pop-up 
which appears under the initiating sub-window). In some 
applications, the only way to work with such objects is 
with DP.
4.	When using an Object Reference in an External 
Function, it is difficult to make sure that the relevant 
object is being defined in the Calling Action’s Object 
Repository or Even if it is defined, does it have the same 
Logical Name? Descriptive Programming is the only option 
left.




5.	Instead of working with a single object at a time, 
we can gather all the objects which answer to our 
identification properties, and work with them as a 
collection. 

     For Example:-  Suppose you are testing Yahoo Website. 
After you login, it lists all the mails present in your 
inbox with a checkbox for each mail. Using this checkbox 
you can select a mail for deletion or for moving it etc.  

      But when you design your test, you do not know how 
many check boxes (mails) will be displayed on the page, and 
you cannot, of course, know the exact object description of 
each check box. In this situation, you can use a 
programmatic description to instruct QuickTest to perform a 
Set "ON" method for all objects that fit the description: 
HTML TAG = input, TYPE = check box.
6.	When testing a “NOT YET DEVELOPED” build, DP must 
be used.
7.	Size of Object Repository adversely affects the 
performance of QTP. Huge OR slows QTP down.
 
Is This Answer Correct ?    3 Yes 1 No
Manish Gupta
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
How to test background color and dynamic images which are moving during runtime? CTS6
How we wil do data driven test using chkpts? Plz. give me complete navigation steps for this?  1
if full in Object Repostoiory then how to load other Object Repository  2
hi all QTP recognizing objects as "string_1","string_2","string_3","string_4" like that but when using FOR LOOP for these.QTP not proceeding further can i declare these _1,_2,_3,_4 as a single variable Livetek3
How to add check point?  2
Diff between WEB APPLICATION AND CLIENT-SERVER APPLICATION?  2
can we install qtp in windows vista  1
A question was asked in a company-suppose, I am testing a website on QTP, all the time a new title bar is appeared on next page. Trying to use regular expression under key word driven testing but expert view is also appearing unchanged and error is also generating, do you have any best resolution for that kindly explain in detail. please dont give example of yahoomail, that is unable to clear my doubt.  2
Can u call txt extension file in QTP? Cap-Gemini2
How to make arguments optional in a function? Liquid-Crystal2
what is the difference between image and bitmap check point  3
How to change the Default synchronization method time and where?  4
in how many ways you perform batchtesting? Sapient2
Plz explain about InTERNAl Environment variable, External environment variable,builtin environment variables with examples? TCS1
What is iteration? How it is related to Test Results in QTP?  2
What are associated files in QTP?  2
what is the object properties settings in the QTP DigiTech4
How to record object in runtime. I am testing one Image website in which every time image change on home page.so if i records the image list but during running image get change, and QTP gives error  1
What are the Features & Benefits of Quick Test Pro (QTP)..?  4
There is one login screen,after accepting valid username and apassword, it will show the next screen. In the 2nd screen u r having 2 combo boxes, U have to select any item from these, and click OK button. After closing that, it will show the 3rd screen. If u click CANCEL button from 2nd screen it will show the first screen. Write QTP script for it??? Sonata1
 
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