How Qtp will identifies object during run time
Answer Posted / ayaan
To answer what Jitu's interviewer asked -
The default mandatory properties for a Web Image object are
the alt, html tag, and image type properties. There are no
default assistive properties defined. Suppose your Web site
contains several space holders for different collections of
rotating advertisements. You want to record a test or
component that clicks on the images in each one of these
space holders.
However, since each advertisement image has a different alt
value, one alt value would be recorded when you create the
test or component, and most likely another alt value will
be captured when you run the test or component, causing the
run to fail. In this case, you could remove the alt
property from the Web Image mandatory properties list.
Instead, since each ad image displayed in a certain space
holder in your site has the same value for the image name
property, you could add the name property to the mandatory
properties to enable QuickTest to uniquely identify the
object.
Also, suppose that whenever a Web image is displayed more
than once on a page (like a logo displayed on the bottom
and top of a page), the Web designer adds a special ID
property to the Image tag. Thus, the mandatory
properties are sufficient to create a unique description
for images that are only displayed once on the page, but
you also want QuickTest to learn the ID property for images
that are displayed more than once on a page. To do
this, you add the ID property as an assistive property, so
that QuickTest learns the ID property only when it is
necessary for creating a unique test object description.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
Subj: realtime example of Database check point, Can any one please detail on how the Database check point is utilized/implemented in a real time project. I already know how to make one by creating DSN/ODBC and writing the required query manually and other steps...I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thank you in advance
How to create scenario selector
What is the extension of the recovery scenario file in qtp?
On what document base Descriptive programming is written if build is not yet ready ?
Did QTP prove efficient for your project? Yes or No, explain?
how to convert 100 into hundred repees only and viceversa
What is action split and the purpose of using this in qtp?
what type of framework u r using in ur organization
I have enrolled for a QTP course which is a four weekend course.Do you think its a good way to start off learning this tool?What all do i need with me in order to become a pro at using this tool?
What are parameterizing tests?
Where we use data driver in qtp?
What is qtpro? What is quick test pro? What is a quick test professional?
Give me some real time point of way where exactly we can conduct audits?
How will we compare the texts in the two word files using QTP writing the script in Descriptive Programming. Thanks
Explain calling sub procedure.