Ehat is the descriptive programing in QTP?

Answer Posted / nanda

the Two above answers are correct...

there is simple technique to write descriptive
programming..to write DP we use Object Identification dialog
box and Object spy dialog box.

Object Identification dialog boxes uses to know which
properties can identify an object uniquely and Object spy
uses to know values of this property..this technique is
suggested when the application is ready only. If application
is not ready we can write only visible properties, like
text, attachedtext, class.

we can write DP in two ways..by throwing the properties
and their values directly in to script (or) by creating an
object by using description.create method.

for example:

set objtext = description.create
objtext("nativeclass").value = "Edit"
objtext("attachedtext").value = "XXXXX"

this will create a text box object.

browser("sadgd").page("sahdga").webedit(objtext).set "asgfsad"

second method is:


browser("sadgd").page("sahdga").webedit("nativeclass:=Edit","attachedtext:=XXXX").set
"asgfsad"

If any queries..
nanda.dreddy@gmail.com

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between qtp and selenium?

553


There is an excel file of 1 to 100 sheets how you will iterate through it?

534


Explain more about the Test Fusion Report of QTP?

608


we add library file used in test via settings or through "ExecuteFile" command. when we implement framework do we make common library file and load the same for all the test cases execution?

1589


can anyone tell me from where i can download qtp demo or crack version

1629






How to give a call to another action from one action?

635


Explain qtp(quick test professional)?

585


what are the utilities and drivers

1849


What is throw object?

1750


How to save your test using quicktest professional?

542


How to modify object property in qtp ?

567


what are all the fileds present in object repository?

1569


what is clean sweep?

1889


What are the technics follow in writing VB script?

1538


Object repositories types, which and when to use?

583