what is descriptive programming in QTP? How can be done?

Answers were Sorted based on User's Feedback



what is descriptive programming in QTP? How can be done?..

Answer / john

There are two ways, QTP uses to recognize the objects
present in your application.

1. Object Repository (OR)
2. Descriptive Programming (DP)


First let see how OR works. OR is the simple and default way
of object identification in QTP. OR stores groups of
properties and values of every object. While you record on
application, all the objects you click, are stored in Object
Repository.

During the play back QTP use this OR to identify the object
on which the action is to be performed.


What is Descriptive programming (DP)?

We'll use DP when we want to bypass OR. Descriptive
programming is used when we want to perform an operation on
an object that is not stored in the object repository. This
way QTP won’t search....


For full article, refer below link..

http://qtpschools.blogspot.com/2011/03/descriptive-programming-part-1.html

Is This Answer Correct ?    0 Yes 0 No

what is descriptive programming in QTP? How can be done?..

Answer / automation tester

Hi Friends,

In simple terms, Descriptive Programming is the type of
programming in QTP where you don't want to use Object
Repository to store the objects and its properties.
Descriptive Programming provides a means by which you can
provide the object properties in the code itself.


Check the below links for more details...

http://www.automationrepository.com/2012/03/descriptive-programming-in-qtp-the-complete-guide-part1/

http://www.automationrepository.com/2012/03/descriptive-programming-in-qtp-the-complete-guide-part-2/

Is This Answer Correct ?    0 Yes 0 No

what is descriptive programming in QTP? How can be done?..

Answer / vikas choubey

It doesn’t require recording the page and so no need
worry about object repository.
You can optimize your code.
Before starting descriptive programming you need to know
about object properties and their values, using object spy
you can see each object’s properties.

DP can be written in two ways..

1. Static (by provide the set of properties and values directly)
2. Dynamic (by creating description object)

Is This Answer Correct ?    0 Yes 0 No

what is descriptive programming in QTP? How can be done?..

Answer / najerr ahemed

Entering Objects Information directly into the test script
is called descriptive program.

It is 2 types
1) Static Programming
2) Dynamic Programing

for more Information & QTP scripts examples visit:

www.gcreddy.com

Is This Answer Correct ?    1 Yes 2 No

what is descriptive programming in QTP? How can be done?..

Answer / babu

Hi,

I had gone through the answers provided all of you. I had
written the script by passing the property, value of the
objects using descriptive programming as it mentioned above.
Process what i followed is:
1)recorded the script.
2)take some object and remove the same from object
repository and add property,value of that removed object in
the script.
3)run the script.

It is displaying the message that object can't be find in
the object repository.

ex:Dialog("Login").WinEdit("Name:=Agent Name:","attached
text=Agent Name:").Set "xxxx".

I removed Agentname from the object repository.
While running i am getting the error that the object Agent
name is not able to find in object repository.

Help me out what mistake i made when writing descriptive
programming.

Is This Answer Correct ?    0 Yes 2 No

what is descriptive programming in QTP? How can be done?..

Answer / satish

Actually descriptive programming means whenever objects are
underconstruction it means under development then we are
using descriptive programming.

Is This Answer Correct ?    0 Yes 3 No

what is descriptive programming in QTP? How can be done?..

Answer / mic

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 ?    3 Yes 8 No

what is descriptive programming in QTP? How can be done?..

Answer / pradeep

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 ?    13 Yes 22 No

what is descriptive programming in QTP? How can be done?..

Answer / veeravel

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 ?    3 Yes 33 No

Post New Answer

More QTP Interview Questions

A web page title might be xxxx@xyz.com or xxxy@xxx.co or xyz@abc.in.Using what mandatory properties can be the page identified.Give the regular expression for that.

3 Answers   Virtusa,


How to run scripts 1,29,3,5,7,2 scripts using test batch runner in QTP.... Ie...I wanted to run scripts not in an order 1,2,3,4,5...like that How it is possible using test batch runner... I dont want hardcoded script

0 Answers   IBM,


Hi Small doubt . i am working as Contract employee in XYZ comany thrw ABC Consultancy. so. How i write my resume ? In Professional experience Column. plz send urgent

2 Answers  


please write a script to find the text in a application. Note: i dont know the location of that text where it is located. just like negative testing.

2 Answers   BSL,


How can we get the result from WindowsXP Command Window? (e.g. After we input 'ipconfig' in command window, how QTP get the result?)

3 Answers  


How to capture a window in qtp or how to take snapshot of any window while writing script in qtp

3 Answers  


What are the views available in quicktest professional (qtp)?

0 Answers  


If there r 1000 test scripts that were written. If a change to any functionality is to be made then how can we know in which script is this functionality existing.

4 Answers   iGate,


What is dictionary object? what is the use of it? How you will display all the items in the dictionary object?

1 Answers   Bank Of America,


can anyone please tell me what are all the shortcut keys used for qtp9.2? Thanks in advance..i expect ur valuable reply that help us our team???

0 Answers  


What is test fusion report?

2 Answers   CIL,


Are Shared ORs read-only?

0 Answers  


Categories