How to handle dynamic objects in QTP?

Answer Posted / sreeprasad

QTP has a unique feature called Smart Object

Identification/recognition. QTP generally identifies an

object by matching its test object and run time object

properties. QTP may fail to recognise the dynamic objects

whose properties change during run time. Hence it has an

option of enabling Smart Identification, wherein it can

identify the objects even if their properties changes

during run time.

Check this out-

If QuickTest is unable to find any object that matches the

recorded object description, or if it finds more than one

object that fits the description, then QuickTest ignores

the recorded description, and uses the Smart Identification

mechanism to try to identify the object.

While the Smart Identification mechanism is more complex,

it is more flexible, and thus, if configured logically, a

Smart Identification definition can probably help QuickTest

identify an object, if it is present, even when the

recorded description fails.

The Smart Identification mechanism uses two types of

properties:

Base filter properties?The most fundamental properties of a

particular test object class; those whose values cannot be

changed without changing the essence of the original

object. For example, if a Web link's tag was changed from

to any other value, you could no longer call it the same

object. Optional filter properties?Other properties that

can help identify objects of a particular class as they are

unlikely to change on a regular basis, but which can be

ignored if they are no longer applicable.

Is This Answer Correct ?    14 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i am trying to automate yatra.com,in that site, when i go to automate the Leaving from field showing as a WEBEDIT, but when i enter 1 or 2 char, it displaying dropdownlist, i try to use keyboard automation to select the item from that list but it is not possible, can anybody help he. Thans for posting the Answer

3492


hi all can any body explain how to write the script for finding the mandatory fields which are having [red Astrik sign (*)]

1462


what is meant by function library?Public and private functions in function library? if private functions are applicable for only for the particular test means then y we have to add those to function library?

1377


please give me the code for doing retesting of gmail login page using functions so the function has to give the value

1546


What is standalone database?

1746






How many types of status are there?

589


What are the challenges u faced in testing with crm domain? How u overcome with?

1485


Explain the Different types of QTP test assets and their extensions?

604


Give the syntax to load function at run time.

627


What is file database?

1690


If you giving priority as p0, as a developer if I give priority as p2, What happens In user defined function ?

588


How to find the length of the string in qtp?

578


What is text/text area checkpoint?

564


How should I click on the right click menu objects When I trying to add the object properties to the OR.It is showing only Window(Window).Not all the objects of the window. Also while recording I found No script. How to solve this>.

1540


How do you send email with attachment from outlook using qtp ?

563