Forum Discussion

VincentW's avatar
VincentW
New Contributor
15 years ago

The object or one of its parent object does not exist message.

Hi, I am testing an application that is built on VB6,



Just right after i finished recording some actions for the login test case, i tried to run it but it seems like TC could not detect the objects.

here is the information under Additional Information. i tried to debug and put a waiting before the operation but this doesnt seem to solve the problem. it seemd like the objects are recognized when i record the test but are not recognized when i run the test.




An error occurred while calling the "Click" method or property of the "txtLoginName" object.

The object or one of its parent objects does not exist.


Tested Object














Alias: Aliases.Completions.frmInitScreen.gcMain.pnlLogin.txtLoginName
Mapping item: NameMapping.Sys.Completions.frmInitScreen.gcMain.pnlLogin.txtLoginName


Missing Object














Alias: Aliases.Completions.frmInitScreen.gcMain
Mapping item: NameMapping.Sys.Completions.frmInitScreen.gcMain








The log was generated in a test that is run right after recording the steps to the test and i dont see any reason why the object could not be detected. would you be able to help me with this issue ?



Thank you very much beforehand.



Vincent.


  • nnissan's avatar
    nnissan
    New Contributor
    I just submitted a Support Case to SmartBear for this.  I have the exact same problem.  I have provided a couple of snapshots to illustrate. 



    Not only do I get the bogus objection of Test Complete saying that the hierarchy doesn't match --- which it does --- I try to re-map anyway. 



    Then to add insult to injury, when I *DO* try and re-map it using the wizard, it pops up for me during playback, it doesn't let me. 



    Now I have to stop the test altogether, go to the NamedMapping Editor, and try and see what's wrong.  And it maps.



    Can anyone reply to this and help please?
  • Hi,



    We've received your message. Brian has replied to you via e-mail.
  • Hi,



    I have the same problem. 



    An error occurred while calling the "Click" method or property of the "SortableTable"
    object.

    The object or one of its parent objects does not exist.

    Tested Object













    Alias: Aliases.ActiveConsole.Dialog.RootPane.null_layeredPane.ResizableFrame_1.ContainerContainer.FrameContainer.metricsview.RootPane.null_layeredPane.null_contentPane.DefaultApplicationActionableComponent.ACTabbedMetricsView.ACMetricsView.MetricsTableViewer.Panel.CardScrollPane.Panel.CardScrollPaneComponent_0.Panel.MetricsTableGui_MetricsTableScrollPane.m.SortableTable
    Mapping item: NameMapping.Sys.ActiveConsole.Dialog.RootPane.null_layeredPane.ResizableFrame_1.ContainerContainer.FrameContainer.metricsview.RootPane.null_layeredPane.null_contentPane.DefaultApplicationActionableComponent.ACTabbedMetricsView.ACMetricsView.MetricsTableViewer.Panel.CardScrollPane.Panel.CardScrollPaneComponent_0.Panel.MetricsTableGui_MetricsTableScrollPane.m.SortableTable

    Missing Object













    Alias: Aliases.ActiveConsole.Dialog.RootPane.null_layeredPane.ResizableFrame_1.ContainerContainer.FrameContainer
    Mapping item: NameMapping.Sys.ActiveConsole.Dialog.RootPane.null_layeredPane.ResizableFrame_1.ContainerContainer.FrameContainer



    I've tried the following to resolve it:



    1. Extended find:

    Tried to place "SortableTable" to different parent objects with extended find checkbox enabled. No success

    2. Re-recording the steps. 

    It would work the first time but after that it would show the same error.

    3. Wildcard.

    NameMapping.Sys.ActiveConsole.Dialog.RootPane.null_layeredPane.ResizableFrame_1.ContainerContainer.FrameContainer.metricsview.RootPane.null_layeredPane.null_contentPane.DefaultApplicationActionableComponent.ACTabbedMetricsView.ACMetricsView.MetricsTableViewer.Panel.CardScrollPane.Panel.CardScrollPaneComponent_0 <This last part changes. I tried changing it to "CardScrollPaneComponent_*" in the properties window with no success.



    Any input would be appreciated. 



    Thanks.
  • Washington,


    The Missing Object part of the test log's message points to the object that was not found.

    The error indicates that the mapping settings of this object or, perhaps, its parent objects were changed.

    Look at the alias. It contains objects like ResizableFrame_1.ContainerContainer. This means that your target object (SortableTable) belongs to some nested containers. This is the kind of controls whose properties are changed quite often.


    You wrote that --

    2. Re-recording the steps. 

    It would work the first time but after that it would show the same error.


    This makes me think that identification properties of containers change from one application session to another.


    To solve the problem, you have to explore your application and choose new name mapping settings.

    Unfortunately, I cannot assist with this here because the steps depend on your application.

    TestComplete documentation has a topic that explains possible causes and solutions. Maybe it will help --

    Handling the 'Object Does Not Exist' Error.



    Btw, a link to this topic should be at the end of the test log error message you mentioned. The Handling the 'Object Not Found' Errors section has a list of similar topics.


  • Hi, Im testing windows application by using testcomplete 9 


     


    When i record & playback ( keyword script) testcomplete is not able to recognize the checkbox (which is in grid ( i.e. checkboxes for list of components in a tabular view)) 


     Its displaying error as follows



    An error occurred while accessing the "ClickButton" method or property of the "CheckBox" object.

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



    Object Whose Method or Property Was Accessed














    Alias:

    Aliases.InsightClient.HwndSource_AdminShellView.AdminShellView.AdminQueueBuilderView.QueueBuilderDockManager.DisplayedFieldsPane.CPDisplayFields.DisplayFieldsView.SelectedFieldsGrid.RecordListControl.DataRecordPresenter.DataRecordCellArea.ContentItemGrid.CellvaluepresenterTrue.CheckBox

    Name mapping item:

    NameMapping.Sys.InsightClient.HwndSource_AdminShellView.AdminShellView.AdminQueueBuilderView.QueueBuilderDockManager.DisplayedFieldsPane.CPDisplayFields.DisplayFieldsView.SelectedFieldsGrid.RecordListControl.DataRecordPresenter.DataRecordCellArea.ContentItemGrid.CellvaluepresenterTrue.CheckBox


    Object That Was Not Found














    Alias:

    Aliases.InsightClient.HwndSource_AdminShellView.AdminShellView.AdminQueueBuilderView.QueueBuilderDockManager.DisplayedFieldsPane.CPDisplayFields.DisplayFieldsView.SelectedFieldsGrid.RecordListControl.DataRecordPresenter.DataRecordCellArea.ContentItemGrid.CellvaluepresenterTrue

    Name mapping item:

    NameMapping.Sys.InsightClient.HwndSource_AdminShellView.AdminShellView.AdminQueueBuilderView.QueueBuilderDockManager.DisplayedFieldsPane.CPDisplayFields.DisplayFieldsView.SelectedFieldsGrid.RecordListControl.DataRecordPresenter.DataRecordCellArea.ContentItemGrid.CellvaluepresenterTrue


    This issue is only for the checkbox in grid view but TC is identifying normal checkboxes properly.



    I tried by adding WPF controls in properties & tried by using different methods but issue was not resolved.



    Can you please advice me how to resolve this issue.




      

    Thanks & Regards

    Sushma

  • Hi, I'm testing a desktop application that is using VB6, just right after I finished recording the actions, I tried to run TC by clicking the Run Test button. Then I found the problem below:




    An error occurred while accessing the "ClickButton" method or property of the "APP_Close_Button" object.

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



    Object Whose Method or Property Was Accessed














    Alias:

    Aliases.a4wContainerXP.wndATL070068E8.AtlAxWin80.Item.APP_Close_Button

    Name mapping item:

    NameMapping.Sys.a4wContainerXP.wndATL070068E8.AtlAxWin80.Item.APP_Close_Button


    Object That Was Not Found














    Alias:

    Aliases.a4wContainerXP.wndATL070068E8

    Name mapping item:

    NameMapping.Sys.a4wContainerXP.wndATL070068E8



    Can you help me solve the problem?



    Thanks.