Forum Discussion

AAN's avatar
AAN
Contributor
13 years ago

WPF (.net) Application Automation

Hi there,



I have successfully automated or had success in automating much of the WPF (.Net) application.  However, I am not able to Automate the major part of the application which is Correspondence.



Everytime I try and do a play back I get the following in the logs:



The Object Does not Exist: See Additional Information for Details



An error occurred while calling the "DblClick" method or property of the "GridRow1"

object.

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


Tested Object





































Alias: Aliases.ProjectManager_Client.HwndSource_BlackboxProjectManager.BlackboxProjectManager.Grid.FloatingContainerBorder.Grid.FloatingContainerBody.border.Grid.PART_ContainerContent.DockPanel.DockPanel.dockMan.dockManagerLayoutGroup.LayoutGroup.DocumentPanel.ContentControl.NavigationView.grid1.ucContent.RiskSummaryExpandableUCView.Grid.expExpander.Grid.Border.GroupBox.Grid.grdRiskSummary.SavableGridLayout.GridControlMain.ScrollableTableView.HierarchyPanel.GridRow1
Mapping item: NameMapping.Sys.ProjectManager_Client.HwndSource_BlackboxProjectManager.BlackboxProjectManager.Grid.FloatingContainerBorder.Grid.FloatingContainerBody.border.Grid.PART_ContainerContent.DockPanel.DockPanel.dockMan.dockManagerLayoutGroup.LayoutGroup.DocumentPanel.ContentControl.NavigationView.grid1.ucContent.RiskSummaryExpandableUCView.Grid.expExpander.Grid.Border.GroupBox.Grid.grdRiskSummary.SavableGridLayout.GridControlMain.ScrollableTableView.HierarchyPanel.GridRow1




Missing Object





































Alias: Aliases.ProjectManager_Client.HwndSource_BlackboxProjectManager.BlackboxProjectManager.Grid.FloatingContainerBorder.Grid.FloatingContainerBody.border.Grid.PART_ContainerContent.DockPanel.DockPanel.dockMan.dockManagerLayoutGroup.LayoutGroup.DocumentPanel.ContentControl.NavigationView.grid1.ucContent.RiskSummaryExpandableUCView.Grid.expExpander.Grid.Border.GroupBox.Grid.grdRiskSummary.SavableGridLayout.GridControlMain.ScrollableTableView.HierarchyPanel.GridRow1
Mapping item: NameMapping.Sys.ProjectManager_Client.HwndSource_BlackboxProjectManager.BlackboxProjectManager.Grid.FloatingContainerBorder.Grid.FloatingContainerBody.border.Grid.PART_ContainerContent.DockPanel.DockPanel.dockMan.dockManagerLayoutGroup.LayoutGroup.DocumentPanel.ContentControl.NavigationView.grid1.ucContent.RiskSummaryExpandableUCView.Grid.expExpander.Grid.Border.GroupBox.Grid.grdRiskSummary.SavableGridLayout.GridControlMain.ScrollableTableView.HierarchyPanel.GridRow1




Possible causes of the

error




I also get directly below that the following:



The Test Execution Was Interupted:



Possible reasons:

- An error or warning occurred during the test run. See

the preceding log entries to locate and identify the error.

- The test run

was stopped manually.

- The test run was terminated as a result of the

Runner.Halt method call.





I would really appreciate any help in getting past the error The Object Does not Exist.  Our client wants the features of the WPF (.NET Application) automated and I want to ensure that I do a Great Job of getting this done for our client.



With Kind Regards,

AAN.


  • Hello Aneez,





    The error means that TestComplete could not find the control mentioned in the "Missing Object" section of the error text. Now you should troubleshoot this situation, and find out what changed in your application, and why your Name Mapping scheme does not match the actual application's state. You need to find out why that GridRow1 object was not found based on the existing mapping criteria (changed properties? changed hierarchy position?).





    The best place to start is the Handling the 'Object Does Not Exist' Error help topic - read it carefully, and use the suggestions given there to find the cause of the problem, and fix it.





    I hope this helps!