Micro Focus QTP (UFT) Forums
smart identification - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: smart identification (/Thread-smart-identification)



smart identification - ctsav8tr - 01-31-2008

Hi:

While running a script I get a warning that indicates a smart identification has occurred; Multiple Objects exist and that QTP resolved it. It doesn't always occur at the same step in the test and can move around from run to run. What is causing this to occur? How can I fix it? Or is there a way to ignore the warning?

Thanks in advance.


RE: smart identification - Ankur - 01-31-2008

You need to learn the concept around smart identification... Go through the post on Smart Identification and understand it word by word.

You can then probably answer the question by yourself!


RE: smart identification - lbc_rider - 02-01-2008

+1

Usually, you need to give your object(s) more specific properties so that QTP doesn't need to use smart identification to find it.

If you have 2 objects with the same exact properties, QTP won't know which one to pick and will need to invoke smart identification to see which one you wanted.

If you specify a more specific property(s) for the object you want QTP to select, then QTP will know exactly which object to look at without having to invoke smart identification.

What I usually do is when Smart identificaton occurs, I look at the test results and see which property QTP used to identify that object. Then I go to my object repository and assign that property to that particular object so that next time I run the test, smart identification is not needed. This is a simple example but it isn't always that easy.