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 can you identify the browser and its information using QTP script?
How does quicktest professional identifies the object in the application?
Does QTP have any limitations?Can it work with all kinds of programming languages like java,springs,ajax ,hybernet?Also does it work well with windows 7.What are its other limitations
Which is the best QTP training institute in Delhi/NCR region and what is the approximate fee for QTP course (Basics and Advanced)
What are the challenges you faced during you entire life automation ?
How does qtp recognize objects in aut?
Can we create a qtp test from qc?
How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s.
what is meant by function library?Public and private functions in function library? if private functions are applicable for only for the particular test means then y we have to add those to function library?
Tell me one scenario, the complex functionality you have automated in your project?
after initiating one project for testing, when exacltly QTP tester role starts?
Which HTML specification will be adhered to? How strictly? What variations will be allowed for targeted browsers?
i am looking job in perfomance testing using Loadrunner any one help me a project plz......?(Chandana) chs_29@rediffmail.com
Explain the concept of object repository and how QTP recognizes objects?
What is the use of ordinal identifier in qtp?