Forum Discussion

Inok's avatar
Inok
Occasional Contributor
14 years ago

Howto debug object not found

I have a situation TestComplete stops with the error "Main Menu was not found..." only during the testrun. I have 3 projects called in this order "Login" "DataFilling" "Extras". Starting the projects standalone works fine. But when I call the project within the Project Suite, TestComplete stops at the beginning of the project Extras. It doesn't find the very first step, the main menu, I entered a delay of 30s, within this time I can click to the menu -> it is available. After TestComplete stops, double click to the step which fails and highlighting the selected object, it find and shows the menu.

When I disable the Project DataFilling, it works. DataFilling contains several DataDriven Tests.


I don't know what's wrong. Has somebody any idea what I can do?


Thanks

4 Replies

  • Inok's avatar
    Inok
    Occasional Contributor
    Hi Robert



    I know these two articles. I already had such situations where i had to wait for objects. I could handle this using delays and increase the auto timeout.



    >> This means the test run is running faster than the application creates the objects you need to work with

    I don't belief that. It is the main menu, we never close the main menu. In this situation I have no idea why the menu object should not exist. As I described I did this reserch:

    - I entered a delay of 30s, Autotimeout 10s -> the object was not found 

    - During these 30s I can click to the menu object -> it is available. This is for me the evidence the object exist.

    - My DataFilling project that runs before uses the main menu object as well.

    - When I start the project suite without the DataFilling project -> it works

    - After stopping highlighting the menu object -> it finds the object.



    Is there a difference between clicking to the object using the mouse and accessing it by Testcomplete? Is there something I should know?
  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor
    It could be that the object that your test is looking for called "Main Menu" is not identified the same way any more.  If you're using name mapping, it's possible that the criteria used for defining your object have changed (or the object itself has changed) and so TC no longer recognizes it.
  • Inok's avatar
    Inok
    Occasional Contributor
    Hi Robert



    I used an evaluation version of TC. In the mean time the license run down and I ordered a real license. I deinstalled TC and installed the new version. Since this time, I never had this error again. The tests run...

    I will try to make a regression test over the weekend and see how it works.