Forum Discussion

wuweixian82's avatar
13 years ago

how to test WPF+DevExpress application

hi,



Our Application use WPF+DevExpress,after recorded some operations,then playback the script,but the test log display "The object does not exist. See Additional Information for details. "



Additional Information:

An error occurred while calling the "DblClickCell" method or property of the "grlPatientList" object.

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


The Script as follows :

Sub Test1

  Dim heren_Pride_Client_Main

  Dim grid

  Dim passwordBoxEdit

  Dim yy 'customTabControl

  Dim gridControl

  Dim customTabItem

  Dim dockPanel

  Dim cellItemsControl

  Dim textEdit

  Dim path

  Dim stackPanel

  TestedApps.Heren_Pride_Client_Main.Run

  Set heren_Pride_Client_Main = Aliases.Heren_Pride_Client_Main

  Set grid = heren_Pride_Client_Main.HwndSource_LoginWindow.LoginWindow.Grid.ItemsControl.LoginView.Grid

  Set passwordBoxEdit = grid.LayoutitemVersionBeta.txtPwd

  Call passwordBoxEdit.Click(15, 16)

  Call passwordBoxEdit.Keys("8")

 

  grid.Button.ClickButton

  Set yy=

heren_Pride_Client_Main.HwndSource_MainWindow.MainWindow.Root.FloatingContainerBorder.Grid.FloatingContainerBodyBorder.Grid.PART_ContainerContent.Grid.MainGrid.MainTabControl.Grid.iclDetailsPage.DetailsView.Grid.DockPanel.ctlDetailsPage.Grid.CustomTabControl.Grid.iclHomePage.InHospitalHomeView.Grid.Grid.ItemsControl.PatientListView.Grid.grlPatientList.

  call  gridControl.DblClickCell(24, "姓名")  'select the 25 row , 2 Column

End sub



And in the  Name Mapping Form, the "grlPatientList" object and it's parent object can be found.


what can I do? Anyone Cloud help me ?  Thanks!

1 Reply

  • Hi,



    Note down the missing object name in the Additional Info of the error, and then check its identification properties in your Name Mapping. The issue occurs, because these properties are obsolete, incorrect or non-unique, so the object cannot be identified properly. Please see the Handling the 'Object Does Not Exist' Error article for troubleshooting instructions.