Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 do u fetch data from a database ?

2 Answers  


1) after inserting the check point how to change the expected value that was captured while inserting the check point

2 Answers   TCS,


what is object repository?

4 Answers  


If you have given 1000 manual test scripts, what test you will do? and how?

2 Answers  


what is object and child object.. explain ..if possible give some example for better understanding ..

0 Answers   HCL,


Hi, I'm a beginner in QTP and planning of a certification in QTP, but have no idea about it :P. Could anyone please tell me what certifications that a QTP- beginner can take? What is the fees and the syllabus for the certification? Please reply soon. Thanks Vidhya

0 Answers  


hello...any one tell me , where can i get company email id.. actually i am searching on testing... in my CV i put 3+ exp.. but all companies are asked company email id.. please provide solution for that... thanx in advance...

9 Answers   HDFC,


can u store QTp frame work folders in VSS? If Not where u store those?

1 Answers  


can any one please tell me which is the best institute in Bangalore to learn QA (crash course)? Thanks

0 Answers   iFocus,


what is the difference between seat and concerent licenses.

3 Answers   AppLabs, TCS,


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

0 Answers  


What is checking bitmaps?

0 Answers  


Categories