Answer Posted / imran sheikh
Objects in QTP are recognized by it's properties. When
object cannnot be recorded in OR or cannot be added in OR
due to some reason, we can identify an object by
Descriptive Programming. Small example of web application
which make DP clear is: Suppose there is a link which is
phone number, everytime we log-in with different user phone
link is changed. if we want to click the phone number we
cannot create it's object in repository because OR will
capture the present phone number,next time with second user
it's phone number link will not be clicked.To do that:
Set phoneLink = Description.Create
phoneLink("html tag").value = "Link"
phoneLink("name").value = DataTable.value("phone")
Browser(brw).Page(pg).Link(phoneLink).click
Here 'html tag' and 'name' are property whose value you can
confirm from Spy. If value of phone is there in DataTable
you can use as specified, else you can use regular
expression.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How may types of defects identify application or your currently working application?pls give me answer..
Name the properties you would use for identifying a browser and page when using descriptive programming?
How to create Reusable and Multiple Actions?
What is throw Object?
Why qtp always start action1 and does not start action?
How do you convert manual test cases to automated test cases?
How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s.
can anyone tell me from where i can download qtp demo or crack version
how to write xml output check point bu useing descriptive programing .means without useing output check point
HI I want to know the detials of QTP certifications such as syllabus, study Materil etc. Can any provide me all these details?? my mail ID is krishnuvk@yahoo.com
How many types of Automation frameworks are there in UFT? Describe them.
Can we run multiple QTP scripts one after the other without manual intervention? How?
How do you send email with attachment from outlook using qtp ?
What are the technologies supported by qtp?
What is the descriptive programming?