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
how can we test the Triggers, Cursors, Indexes while doing Database testing in DTP??
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.
How to import a test case present in ".xls" file to TD under a Test set?
Hello friends..... On which areas of an application we can not test with QTP
In qtp, explain what is crypt object
What are the differences between qtp and winrunner?
What are the different types of recording modes?
How to creating an output value using quicktest professional?
How can I change object description or check point values in qtp?
What is Port testing. Whhen will you perform?
Give me some real time point of way where exactly we can conduct audits?
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?
Is virtual object supported in low level recording mode?
what is actually contain test report? can anybody post the test report
What is the difference between local and shared object repository in qtp?