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 to upload an excel sheet to quality center?
Hi Recently I Attend one interview .The intervier ask on Question in QC 9.2 . The Qus was while ruuning the Batch RUNS scripts in test lab if defect will comes .The defect automaticly wants to genate . How to Configure in QC . Thank You Balaji
what is the difference between DATA TABLE and DATA SET?
How can you quit from Action.
what all are the coverages , explain ?
How you debug your script?
when i try to recognise a winmenu item it does not allow me to do that but recognises it as window..i am using qtp 9.2 could someone help with this
Call to copy of an action and call to existing action… i know the diff but in real project how to use..? i want live scenario.pls help me..
Hello, Is there any way to send the test results in html format (or any other) by email using outlook after the test run ends? thank you in advance
I have a list box which contains duplicate values e.g. A,A,A,B,B,B,C,C,C.Now write a code in qtp to test the list box . Scenario #1 : I have to check whether any values are there? Scenario #2 : If duplicate values are there,then how many time it is getting duplicated? Svenario #3 : how can I test presence of items in list box ommiting duplicate values?
did you perform retesting(DATA DRIVEN test) using functions with out using datatable methods how can you perform retesting using functions
What are the Automation Limitations??