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
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 |
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 |
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 |
How do u fetch data from a database ?
1) after inserting the check point how to change the expected value that was captured while inserting the check point
what is object repository?
If you have given 1000 manual test scripts, what test you will do? and how?
what is object and child object.. explain ..if possible give some example for better understanding ..
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
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...
can u store QTp frame work folders in VSS? If Not where u store those?
can any one please tell me which is the best institute in Bangalore to learn QA (crash course)? Thanks
what is the difference between seat and concerent licenses.
can anyone tell me from where i can download qtp demo or crack version
What is checking bitmaps?