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

When there is descriptive programming, why do we go for Object repository for desigining scripts.?? why cant we use descriptive programming instead of using the Object repository..??

4 Answers   DST Global Solutions,


in qtp how we work with out put values and what is the process?

4 Answers  


I have a tool for automation testing (eg:qtp).I have two functionality(A & B) to test.A is tested once in a year. B is tested everyday. At present i have the money and resource availability to automate only one functionality.Which one will u suggest and why?

2 Answers   TCS,


where is the bitmap checkpoint be saved

1 Answers  


What is our exact stage involvement with QTP?

1 Answers  






WHAT IS THE SIZE OF OBJECT REPOSITORY USING IN YOUR COMPANY? Can any body tell me answer of this quation........

11 Answers   Ness Technologies,


what is the Exact Meaning of Environment Variables?

10 Answers   AppLabs,


Will there be any standards or requirements for page appearance and/or graphics throughout a site or parts of a site?

0 Answers  


• What type of testing questions will be asked for 2+ yrs exp people in interview?

0 Answers  


What do you to script when objects are removed from application?

0 Answers  


How to use the object spy in quicktest professional 8.0 version?

0 Answers  


what is defenetion of kiran can u tell me plz CVS, SVN

0 Answers  






Categories