How Qtp will identifies object during run time
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / jitu
Itold it will learn mandatory properties,assistive
properties,etc but the interviewer says give eample of
mandatory property,assistive property..
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / geena
In the run time QTP read the VB Script and compare line by
line with the OBJREPOSITORY and then compare with the
application. If ObjRepo's objects and appications objects
are same u get pass otherwise u get fail result.
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / deven
To access runtime objects we can use GETROProperty and
SETTOProperty to change the TESTOBJECT property in QTP.
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / chandana
Hi
i think by its logical name, and class
chandana
| Is This Answer Correct ? | 1 Yes | 5 No |
Answer / chandini
I think itz GetROProperty, it recognizes the run-time
objects
| Is This Answer Correct ? | 1 Yes | 8 No |
I want to read XML file loaded in Quality center and compare the values with the values displayed in Application (web table).How can I do that
I am new to automation testing.I am learning QTP 9.2.my question is how to install the defferent addins(other than Default Addins) is there any defference in QTP after installing the Addins.where we can get the addins?
Hi frnds, for ex.. we got a job in wipro, they will give me one mail id.. "Rameshkumar@wipro.com", where to open this mail id..in which sw ? or outlook?
what do u mean by test harnesses in qtp?
How to perform action on objects, If two objects have the almost the same name ? example : Object 1 : "Entry of Items" Object 2 : "Items" Whenever I ask QTP to perform an action on Object 2 it performs action on Object 1. Note: The two objects are present in an Oracle Application tree.
How to compare source and target database in testing? Can anybody please tell me in detail the procedure how to compare it?
what is vss and cvs what is main difference b/w these two
How can I replace all the text from the QTP script with some other text.
HI ALL I AM WORKING AS A AUTOMATION ENGINEER FROM PAST 2 MONTHS IN QTP,MY QUESTION IS IF I OPEN THE BROWSER FIRST & THEN THE QTP LATER MY OBJECT SPY WILL NOT WORK,Y IT IS SO..IF U HAVE THE ANSWER PLZ MAIL ME AT AKSHAR.MYSORE@GMAIL.COM
hi all need one help . i want scroll down and up but thing the holl page is taking webtable. i need to scroll down and up using scroll tab any bodu knows plz help its urjent regards balaji
I have a drop down box to show selected number of records in result page.It contains 4 items like 10, 25,50 and 100. when i was recordes script for seelcting each item and checking selecting number of records in the result page( it is in the same page in the table format)it is generating a new page with same controls( objects) in the OR. how to avaid these in OR? is it possible to write DP for only these lines?, remaining(remaingin lines of code) objects i want use from OR only. One more problemis if change ( add /remove properties of an OBJECT in OR , my ( recorded )application is not running.
Can we select add ins in UFT during run time