Any one knows about descriptive programming to identify
objects in a page?
Kindly drop me mail
prasanna.sabat@gmail.com

Answers were Sorted based on User's Feedback



Any one knows about descriptive programming to identify objects in a page? Kindly drop me mail p..

Answer / madhusudana

hi friends this is madhusudan

we can achieve D.P in two ways

* static way
* dynamic way

static type means we can directly write the properties and value of the test objects in script.
example script

browser("title:=Ranford home page").page("title:=Ranford home page").exist

like this

dynamic means we have to create the description object to the test objects by fixing the set of properties and values and that description object we can use in script directly.

example

dim br,pg

set Br("propety").value="value"
set pg("property").vlue="value"
Browser(br).page.Exist

these are the two types of D.P

Is This Answer Correct ?    0 Yes 0 No

Any one knows about descriptive programming to identify objects in a page? Kindly drop me mail p..

Answer / murali raju

Hi .. I am murali from blore..

in my company this way to we write descriptive
programming...

if u have an internet and qtp 8.2 or 9 run the below script
in ur machine..

Browser("title:=Welcome to Gmail").Page("title:=Welcome to
Gmail").WebEdit
("type:=text","name:=Email").Set "prasanna.sabat"
Browser("title:=Welcome to Gmail").Page("title:=Welcome to
Gmail").WebEdit
("type:=password","name:=passwd").set "urpwd"
Browser("title:=Welcome to Gmail").Page("title:=Welcome to
Gmail").WebButton("type:=submit","name:=Sign in").click

did u understand the abvoe code...?

otherwise call to me..

09845135495
bangalore...

Is This Answer Correct ?    0 Yes 1 No

Any one knows about descriptive programming to identify objects in a page? Kindly drop me mail p..

Answer / ycy

BY DP
Dim obj_ChkDesc

Set obj_ChkDesc=Description.Create
obj_ChkDesc(?html tag?).value = ?INPUT?
obj_ChkDesc(?type?).value = ?checkbox?

Dim allCheckboxes, singleCheckBox

Set allCheckboxes = Browse(?Browser?).Page
(?Page?).ChildObjects(obj_ChkDesc)

For each singleCheckBox in allCheckboxes

singleCheckBox.Set ?ON?

Next

Go to help section in QTP and see for other objects like
webEdit, webtable, webelement.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More QTP Interview Questions

How to record a qtp script ?

0 Answers  


Explain the concept of how quicktest professional identifies object?

0 Answers  


What is difference between design time and run time data table?

0 Answers  


in howmany ways you perfrom batchtesting

6 Answers   Lehman Brothers,


Write a script to delete the a specific row (say 3rd) in a webtable.

0 Answers  


could any help me please, how to work on visual foxpro application using UFT

0 Answers   NA,


w is fragmentation and paging

1 Answers   MBT,


Write a Script With descriptive programming(Without Repository) to update an Update an order in Flight App and verify whether it is done successfully.(Use ChildObjects method)

2 Answers  


DIFFERENT RUN MODE IN QTP..1-VERIFY MODE 2-UPDATE MODE 3- dEBUG MODE. My question is in whic sitution we use these modes Explain me with example

1 Answers  


How to use userdifined environment variables.Once we created in Environment tab which is at File--> Settings-- >Environment-->Userdifined

0 Answers   Livetek,


Function to convert lowercase to uppercase in QTP Pls anybody can give the answer.. Thanks in advance...

2 Answers   Navis,


How to Test the mainframe application?(tell me few basic things)

1 Answers   Covansys, IBM, UST,


Categories