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

How QTP identify the system time that's changes every seconds?

809


What are the trigger events in qtp?

819


Where is the Bitmap checkpoint information stored?

1982


What if recovery scenarios is also failed for identify the alert ? (We are handling unexpected popup through recovery scenarios but if still recovery scenarios also failed than what should be the approach)

1232


How to read a text file from QC using QTP. I would like to do something like this. But instead read a file from QC and NOT from my local drive. Set fso = CreateObject("Scripting.FileSystemObject") Set InputFile = fso.OpenTextFile("C:\test.txt", ForReading) Thanks

3012


What is expert view in qtp?

805


Explain the differences between table and db checkpoints?

766


Print the Prime numbers in below format only up to 20(Need commas also) 1,2,3,5,7,9,11,13,17,19

1429


This is a question thats generally asked in every QTP interview. What were the problems that you faced during automation and how did you resolve them?

1703


write a script to validate the content in the web application. (do it by OR method) and (do it by Descriptive method by creating a description object..

2050


Discuss quicktest professional environment?

797


How we can import data from database?

911


banking project description for software tester

7236


Which scripting language used by quicktest professional (qtp)?

900


How to capture all the data of a webtable, weblist and combolist using QTP?

3054