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

can we run the scripts of qtp 8.2 in the qtp7.0?

2 Answers  


How to find if given number is prime or not

1 Answers  


What are the Features & Benefits of Quick Test Pro (QTP)..?

5 Answers  


What exactly is the difference among all the three recording modes.

2 Answers   TCS,


Hi All, I have a problem with getting the value which is available in the table and it is not having any unique property. Please find the below table TopicName CreatedBy ViewCount ------------------------------------------------ XXXX Y 10 ZZZZ ZZ 0 AAAA BBB 3 In the Above table TopicNames are link and it is having an id but the remainig two columns(Created by and ViewCount) are static Web element values and they are not having any unique property. Now i want to get the values of Created BY and View count for each and every topic. Can anybody give me the solution for the above ASAP. If anybody didn't understand the above please free to send me a mail by that i can send you the snap shots and some more description. You can catch me at krishnachand.p@gmail.com

0 Answers  






How to handle Java tree in QTP?

0 Answers  


What is the framework your company is following. What is the reason. Explain why key word driven frame work is chosen.

0 Answers   Value Labs,


Explain about opening notepad in QTP and writing of test result in notepad?

4 Answers  


Hi we are running tests remotely from quality center and pushing tests into qtp boxes remotely, and it does execution but while uploading results back into quality center it hangs in qtp box.If any one come across similar problem, please send me details how to handle this. Thanks kris

0 Answers  


How we test the logo or images in the web page using QTP? For example take google page, they change their logo for new year,christmas etc..How we test that? Plz answer this question... Thanks in advance..

2 Answers  


The Senario is Steps to do 1.Entered userid in textbox 2.saved with details 3.i want to open user which i have created its in hurry.....

1 Answers  


describe some problem that u had with automation testing tool?

3 Answers  






Categories