Micro Focus QTP (UFT) Forums

Full Version: smart identification
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
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!
+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.