Forum Discussion

TRoper's avatar
TRoper
Occasional Contributor
14 years ago

First Test, Object not found


Hi All,


As an introduction and describing a problem.  New to using TestComplete.  Have been using QTP for 7 years.


I have a very frustrating problem right out of the box.  Recorded a small test to get the feel for
TestComplete.  Right after recording the test,
I try and run the test.  Object not found
is all I get even though the Test Visualizer shows the fields.  I have tried changing the time out values to
no avail.  I have renamed the Aliases in
the Name Mapping fields.


I am finding the Name Mapping to be almost unusable.  Attached is a screen shot of the Name Mapping
along with the test itself.


When the test fails and the Update Name Mapping window
comes, I drag the identify icon over to the field and the response is: Object
id different.  Remap….


Is anyone else having this problem?


Thanks, in advance, for your help.


Steve




 


 

1 Reply

  • sastowe's avatar
    sastowe
    Super Contributor
    I, personally, don't record tests. I don't use name mapping. So what I am about to say might not help. But here goes. At record time, the object has a name and stores it in your test. (Script? I am going to assume script for the sake of example but there are parallels in keyword tests.)  Take a look at your object browser in the state of the application where the error occurs. See if the parent of the object that was not found has sibling objects of the same name.



    The programmers at my company are very fond of control arrays. I believe that is what causes bunches of objects on forms to be of the same name. You need to find the parent object that contains the child object you are looking for. Do a look in the help files for FindChild, FindAllChildren...



    Good luck.