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

suppose by navigation i went from 1st page to 5th page write a script for coming from any page to the 1st page abd by executing where the page may be . it will come to 1st page give the code using gmail. give me mail id so that i can under this answer with out any doubt

1 Answers  


Test cases for Traffic Signals

4 Answers   AppLabs,


I have recorded a test over web application(with IE6.0) in analog mode. But, while running it my test gets failed. Why? (Note: my systray has 3 open web applications)

7 Answers   Xansa,


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

0 Answers   CTS,


Hi i have a webtable which is having 7 columns and 6 rows of data in that table of 4th and 5 th column each row is partiotioned into 3 sub rows i want to verify in each partitioned rows of corresponding row for ex values will be like this 0 / 1 ,26/28.if it is 0/1 i want to skip only if any num/num greater than 1 i want to click.

1 Answers  






What is the new version of qtp which is recently released in the market?

0 Answers  


In Descriptive programing if i use this below code will it work for login window or flight Res Window. Shud i add the properties like attached text=login and text=Agent Name in the object repository and define a new object first. Pls tell me the procedure in clear inorder to execute this script. Dialog("title:=Login").WinEdit("attached text:=Agent Name:").set"agent123" Dialog("title:=Login").WinEdit("attached text:=Password:").set"mercury" Dialog("attached text:=Login").winbutton("text:=OK").click

2 Answers  


In a webtable, lets say there are 10 records and 1 column. let say "image" is available for 1st,2nd and 3rd records and 4th onwards image is not available. How to recognise for that cell image is available or not?

2 Answers  


wt is the difference between global and action excel database in qtp?for example one action is calling another action the second action is using action excell sheet?if it is using global sheet what makes the difference?

2 Answers   Datamatics,


How to face prjoect manager round what type of questions they will Ask ? (Chandana)

1 Answers   Call Centre, Convergys, IBM,


How can we get a textcheckpoint in QTP9.1?

2 Answers   EmTechPro,


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

0 Answers  


Categories