How Qtp will identifies object during run time

Answers were Sorted based on User's Feedback



How Qtp will identifies object during run time..

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

How Qtp will identifies object during run time..

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

How Qtp will identifies object during run time..

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

How Qtp will identifies object during run time..

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

How Qtp will identifies object during run time..

Answer / chandana

Hi

i think by its logical name, and class

chandana

Is This Answer Correct ?    1 Yes 5 No

How Qtp will identifies object during run time..

Answer / chandini

I think itz GetROProperty, it recognizes the run-time
objects

Is This Answer Correct ?    1 Yes 8 No

Post New Answer

More QTP Interview Questions

Which scripting language QTP is using?

6 Answers  


explain abt dyanamic changing object with example?

0 Answers   Wipro,


How can i find out any "text's" coordinates in excel sheet For example: I want to know the coordinates of "F" Column in the excell sheet While recording when i clicked on F column it is showing the coordinate values 385,9 but with out recording how can i find out them Suppose i want to clik on "H" column writing the script like this Window("Book1").WinObject("Book1").Click (...........) Here I Dont know what (x y )values should i enter Please any one can help me?

1 Answers   Livetek,


Does QTP is "Unicode" compatible?

4 Answers  


what the difference between shared repository and per action repository?

0 Answers  






Tell me the difference between the Data Driven Frame work and Keyword Driven frame work?

3 Answers   Semantic Space,


What is the difference between per-action and shared?

0 Answers  


It is given in the help of QTP 9.2 that we cant debug the scripts. Is there any other way to VIEW, PAUSE and make modifications in the scripts during execution???

0 Answers  


Hi everybody.. I m using QTP 9.2 version., plz send me licence key is it seat or concurrent licence key... plzzzzzzzzz plz help me for this one and its Locking code:8-5C740 Maintenance number: 0123-2820602186.,

1 Answers  


what is the difference between testing and debugging?

2 Answers  


Can i get a simple example exercise for update run mode for sample flight application......... In qtp when i try to run the test in update mode.. Auotmation> update option is disabled............ Pls let me know ................. Thanks in advance.....

3 Answers  


What kind of performance is expected on the client side (e.g., how fast should pages appear, how fast should animations, applets, etc. load and run)?

0 Answers  


Categories