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

how can we test the Triggers, Cursors, Indexes while doing Database testing in DTP??

1600


I want to grow as a Automation Engineer,Kindly help me in clearing my interview that what interviewer looks for as a Automation Engineer. I am having three years of experience in testing.

1630


How to import a test case present in ".xls" file to TD under a Test set?

756


Hello friends..... On which areas of an application we can not test with QTP

1568


In qtp, explain what is crypt object

609






What are the differences between qtp and winrunner?

541


What are the different types of recording modes?

550


How to creating an output value using quicktest professional?

547


How can I change object description or check point values in qtp?

567


What is Port testing. Whhen will you perform?

1506


Give me some real time point of way where exactly we can conduct audits?

1508


You will receive the mail in your outlook from client at night time to go ahead for the execution. Based on the mail you need to trigger the batch run. What is the QTP Code for this?

1358


Is virtual object supported in low level recording mode?

632


what is actually contain test report? can anybody post the test report

1479


What is the difference between local and shared object repository in qtp?

571