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 IE & Netscape in web testing on a log in page

2042


what is keyword driven testing in qtp?n how is it useful?

1696


what type of run time errors you get while you ar edoing rpg program?

1721


How to find Operating system information using QTP script?

782


write the vb script for call to new action in qtp?

2039


Give the syntax to load function at run time.

897


Call to copy of an action and call to existing action… i know the diff but in real project how to use..? i want live scenario.pls help me..

1545


What are the technics follow in writing VB script?

1728


For QTP Test Engineer, What is his contribution to the Project? Means, As as automation test engineer what is his role in the current project?

1979


how to convert 100 into hundred repees only and viceversa

1697


Hi any body pls help me for QTP 11.0 software free demo version. i have to practice. Kindly send the link.or where i have to download.

1868


Explain the concept of object repository and how quicktest professional (qtp) recognises objects?

842


How does qtp identify gui object?

785


How to connect the remote desktop using QTP 9.2 explain the method or procedure?

3054


hi frinds i need help .i have 4 + yrs exp in testing and nearly 2 yrs exp in QTP and QC .currently iam working north fast 2 yrs iam looking for job in south is there any openings plz letme know my mail id is pbre1980@gmail.com

1856