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

Answer Posted / ravi

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 ?    19 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between analog and low level recording?

848


How many lines of code in each script of QTP?

4233


Hi, I am supposed to automate mainframe application through qtp. I do not know how to start abt it. Can you plz help me in first initializing the process or do you anybody have a guide book or a link which guides me through the process of automating the mainframe applications and things involved in it.

6858


what is the frame work in J-meter?

1832


Write a QTP script to enter a keyword in to Google search engine?

849


what is the difference between modular framework & datadriven framework

1800


If object is not recognized by qtp but the object is standard object what is your approach?

795


How you can decide which type of object repository you have to use?

914


Whether qtp 9.0 supports Test director8.0

2345


• What type of testing questions will be asked for 2+ yrs exp people in interview?

1471


How many add-ins comes by default with quicktest professional?

735


Explain the parameter in qtp?

776


Can any one tell me about "Mapping Repository Parameter Values" and why we use it....??How to use it???Please, tell the preconditions also...........???? Thanks in Advance

1732


can u explain relative path architecture framework in qtp?

1776


what is run-time data?

1927