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
What is accessibility check point?
hi can anybody help with an qtp 9.2 license key please. Thanks, Nitesh.
What r the different filters in defect in quality center
Explain measuring transaction.
Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.
What is the use of text output value in quicktest professional (qtp)?
What are the different ways to invoke an application using QTP?
Why is Client side image is preferred over server side image?
What are the differences between table and db checkpoints?
Hi Friends... By using QTP , can we test .net products...and that product supports different languages.. thanx in advance..
I want to open a Notepad window without recording a test and I do not want to use System utility Run command as well. How do I do this?
what is review
How you are developing the script? Using record and play back or manual?
How do you convert manual test cases to automated test cases?
In what occasion we can specify global sheet and action sheet?