Forum Discussion

phil_hunter's avatar
phil_hunter
Occasional Contributor
12 years ago

The Object Does Not Exist

I've been trying to get this working for about 2 hours now and no luck! I can't seem to figure out what to do, even after reading endless documentation!



I understand that it can't find one of the parent objects, I think it is the "reviewActivityForm", but how do I resolve this issue. I have used wildcards in the past when windows are called "FormWindow2" for example, then I will change the Wnd name to "FormWindow*" for example. But I don't think it will work this time.

 

What do I need to do to get TestCompelete to recognise the textbox??





16 Replies

  • phil_hunter's avatar
    phil_hunter
    Occasional Contributor
    I can't find the Keyword Test Log for the reviewActivityForm now, but the same thing is happening to the PH_SCSM_Process_0, the Object Does Not Exist. I will attach a screenshot for that one. 

  • Hi Phil,


     


    Judging by the screenshots, you fail to find the PH_SCSM_Process_0 object, not SCSM_ConsoleWindow which you show (its mapping properties look OK). I guess that the Index property is used in PH_SCSM_Process_0 which isn't a very reliable property. Check this.


     


    Also, I recommend that you try to resolve the error by using troubleshooting steps listed in the "Handling the 'Object Does Not Exist' Error" article.


     

  • phil_hunter's avatar
    phil_hunter
    Occasional Contributor


    The tested process was not found.




    Check whether the tested process is running in the system. To identify processes, TestComplete uses their names and indexes. Verify that your test works with the process whose index coincides with the process index that you used when creating or recording the test.





    This is what i think the problem is with the processes, but can TestComplete not tell what process is currently running, rather than the actual process that was running when recording the tests? The indexes are 1,2,3 for the 3 processes I have. It seems to be looking for objects in different object trees.



    I will attach the SCSM_PROCESS_0 name maping screen here. I added all the identifiers to see if it worked, but it didnt. 

  • Hi Phil,


     


    Judging by the screenshot, you use 21 parameters to map the CSM_PROCESS_0 object. TestComplete will use this mapped object only if the runtime values of all these parameters are equal to the stored values in Name Mapping. If this happens, it will be a miracle :) 


     


    You need to choose 2-3 reliable parameters to map objects. For this object, it's enough to use the ProcessName property with the csrss value.


    Check how it works for you.


     

  • phil_hunter's avatar
    phil_hunter
    Occasional Contributor


    Yes, that seemed to have worked, it now has found the process but I am getting another error now on the next child element. 



     



    An error occurred while accessing the "Click" method or property of the "OutlookViewPage" object.



    The object or one of its parent objects was not found.



    Object Whose Method or Property Was Accessed














    Alias:

    Aliases.PH_SCSM_PROCESS_0.SCSM_ConsoleWindow.ConsoleWindow.ConsoleDisplay.Grid.PART_OutlookControl.OutlookViewPage

    Name mapping item:

    NameMapping.Sys.PH_SCSM_PROCESS_0.SCSM_ConsoleWindow.ConsoleWindow.ConsoleDisplay.Grid.PART_OutlookControl.OutlookViewPage


    Object That Was Not Found














    Alias:

    Aliases.PH_SCSM_PROCESS_0.SCSM_ConsoleWindow

    Name mapping item:

    NameMapping.Sys.PH_SCSM_PROCESS_0.SCSM_ConsoleWindow


    Click the link above to view and configure mapping settings for the missing object.



    Learn about possible causes of the error



     



    I think this one may need remapped. I will include a screenshot of the name mapping identification properties for the ConsoleWindow. 


  • Hi Phil,

     


    The mapped properties for the NameMapping.Sys.PH_SCSM_PROCESS_0.SCSM_ConsoleWindow object looks good to me - WndCaption and VisibleOnScreen. Do you get the error when executing the first operation over this window? Perhaps, it makes sense to add a little delay before clicking an object so that TestComplete could fully load the window. Refer to the "Waiting for an Object, Process or Window Activation" article describing the ways to obtain an opened window during the test, and try implementing them.