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   SiteMap shows list of All Categories in this site.
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 descriptive programming in QTP? How can be done?
 Question Submitted By :: Geminisrinivas
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is descriptive programming in QTP? How can be done?
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 ?    26 Yes 8 No
Prasad
 
  Re: what is descriptive programming in QTP? How can be done?
Answer
# 2
descriptive programming in QTP means when there is no 
object in object repository for that object wehave to write 
decriptive programming to add the properties of the object 
which is not there in the oblect repository.
  you can describe an objectdirectly in a test statementby 
specifying property:= value pairs describing the object 
insted of specifying an object's logical name.
syntax
  testobject
("propertyname1 :=propertyvalue1","...","propertynamex :=pro
pertyvaluex").
 
Is This Answer Correct ?    22 Yes 4 No
Mallikharjun Bhavanam
 
 
 
  Re: what is descriptive programming in QTP? How can be done?
Answer
# 3
It works perfectly....


'USING DESCRIPTIVE PROGRAMMING - WITHOUT OBJECT REPOSTARY

Browser("creationtime:=4").Page("title:=Editorial Company 
Search").Link("text:=Codes").Click

'OR

Browser("name:=Editorial Company Search").Page
("title:=Editorial Company Search").Link
("text:=Codes").Click


For descriptive programming the object properties should be 
extracted first using the QTP object repository and then 
use it in the code.

Ex., name:= or creationtime:= or title:=

Depends on the objects and its available properties
 
Is This Answer Correct ?    6 Yes 8 No
Pradeep
 
  Re: what is descriptive programming in QTP? How can be done?
Answer
# 4
Writing the scripting even though  the objects are not 
existing in the object repository(Those may be at 
development level) it occurs based on the prototypes.
For script creation we use description.create
ex: set mywindow=description.create
mywindow("text").value=login
 
Is This Answer Correct ?    11 Yes 5 No
Vijendra
 
  Re: what is descriptive programming in QTP? How can be done?
Answer
# 5
It is something like instructing the QTP to perform 
operations on objects without refering to the Object 
Repository. To do this we provide QTP with a list of 
properties and Values that QTP can use to identify the 
Object on which we want to perform the operations. 

There are basically 2 ways 

1. We can list the set of properties and Values that 
describe the object directly in the statement

Propertyname:=Property Value, --------, PropertynameN 
N:=PropertynameN

2. Using Descriptive Object:

Here we do create a Descrition Object and add the property 
name and it's Valuse to the Description Object. We pass 
this description object to the QTP statement.

Set < Var name > = DESCRIPTION. CREATE

< Desc OBJ / Var Name >.
(<"Propertyname1">.value=<propertyvalue1>

- If we want to add more more properties we have the follow 
the above
---
---
---
< Desc OBJ / Var Name >.
(<"PropertynameN">.value=<propertyvalueN>
 
Is This Answer Correct ?    12 Yes 4 No
Ravi
 
  Re: what is descriptive programming in QTP? How can be done?
Answer
# 6
: Programming is done without using the object repository 
is called descriptive programming. To do this we provide 
QTP the list of properties & values, that qtp can use to 
identify the object on which we want to perform the 
operation. There 2 methods on
Which we go for descriptive programming 
&#61692;	Specify the list of properties and values, which 
describe the object directly in the statement.
&#61692;	Use a description object which has a method cold 
create
Note: - When the objects that create dynamically. Console 
based application, lesson of object in the application.
 
Is This Answer Correct ?    10 Yes 3 No
Amit Puhan
 
  Re: what is descriptive programming in QTP? How can be done?
Answer
# 7
Basically by having object repository it has both 
advantages as well disadvantages. We all know about 
advantages.. As far as disadvantage is concern Supoose if u 
have unstable application ie Properties might change or 
Name of the Object might change..Frequent changes is 
happening in ur application..We will go for descriptive 
programming.. Pbjects id will be unique for all 
applicaions.. So by having unique id we can write the code 
like

("windowid:=2342143")
 
Is This Answer Correct ?    7 Yes 2 No
Neelakantan
 
  Re: what is descriptive programming in QTP? How can be done?
Answer
# 8
amit is great...............tanq very much amit.....all 
other those who ahv answers have given studeid answers.amit 
is the only great guy........
 
Is This Answer Correct ?    0 Yes 20 No
Veeravel
 
  Re: what is descriptive programming in QTP? How can be done?
Answer
# 9
Descriptive Programming is the way of instructing QTP to 
identify the objects without object repository.

It can be done as follows:

Example 1: Browser("title:= < title of the browser> ").Page
("title:= < title of the page> ").frame("name:= <name of 
the frame>")....

Example 2: vbwindow("title: <title>").vbedit("attached 
text:=username").set "name"

etc....
 
Is This Answer Correct ?    5 Yes 2 No
Pavan
 
  Re: what is descriptive programming in QTP? How can be done?
Answer
# 10
QTP knows X only,           // X is QTP's VB language

ie, 
QTP language = X
X = VB (QTP oriented)       // QTP understands VB 

.'.
X = VB

OR = converted.VB(Objects)  // OR = Object Repository
X = OR                     

// QTP converts Objects to its unique understable format as 
VB oriented and stores in Object Repository. If the code is 
in VB no proble to QTP to read while running, ne need to 
convert again to another format.

X = VB 

VB = DP                      // DP = Descriptive Programming
X = VB = DP = QTP language
 
Is This Answer Correct ?    2 Yes 0 No
Mic
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
can we enable smart identification for test object  3
Does QTP support flat files? If yes what are those?  2
how to calculate no. of repeating characters in a a string..please give me the code  1
Is there any thing that we can replace recovery scenario manager in QTP.  1
what are the disadvantages of descriptiveprograming GE4
IF THE GUI OF APPLICATION IS CHANGED THEN IS THERE ANY NECISSITY TO CHANGE OR UPDATE OUR TEST SCRIPTS  2
what are the areas that cannot be tested using an automated tool? list a few  3
Iam doing automation in Oracle App's using QTP? In App's because of some functional setup, keep on changing my script flow. for this how can i use the recovery sceanrio?? Please help me?  1
Can u explain about QTP framework ACS9
Hi I able to record IE object but not able to record mozilla firefox 3 object using QTP 10. i don know wats the problem????  2
If u prepare bug report in Excel sheet . Is it possible to send thrw Test director? how it is? Wipro3
Can any body tell me how can I choose the share object repository and per action object repository mode. Please give me with steps.  3
what are the mandatory and assistive properties of objects in QTP?What is attached text?Plz assist me with proper answer. MBT5
How do we call Library Files(.vbs) in the Test Script Thanks in Advance...  4
How do you find out whether the string is Numeric or Alpha numenric.Suppose..'QTP is an automation testing tool 12345' How should I know it is alphanumeric.Can any one please write the code for this  3
how can i add an action(external action) programmatically? Ordain-Solutions2
What are SetToProperty, SetRoProperty, GetToProperty scripting?  1
How to export QTP results to an ".xls" file?  1
Why we have to split actions in a test?  4
what are the different Frame Works in Quick Test Proffessional testing Wipro2
 
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