Forum Discussion
HKosova
Alumni
14 years agoHi Pasha,
OptionsWorkshop.Common.UI.DeskDataGrid isn't a standard grid, but a custom grid implemented by the application developers; that's why, table checkpoints don't work for it. However, this grid may be based on standard WPF DataGrid, which is supported by TestComplete, so you can try instructing TestComplete to treat your custom grid as a standard supported grid. To do this:
* Go to Tools > Current Project Properties > Object Mapping.
* Select the Microsoft Controls > WPFToolkitDataGrid item.
* Add OptionsWorkshop.Common.UI.DeskDataGrid to the list of class names, and select the Enabled check box.
* Save your project.
After that, examine the WPFObject("dataGrid1") object in the Object Browser or Object Spy - now, does it have extended properties such as wRowCount, wColumnCount, wValue(row, column)? If it does, do they return correct values?
Also, does it work now if you try to create a table checkpoint for the grid?
Let me know the results.
OptionsWorkshop.Common.UI.DeskDataGrid isn't a standard grid, but a custom grid implemented by the application developers; that's why, table checkpoints don't work for it. However, this grid may be based on standard WPF DataGrid, which is supported by TestComplete, so you can try instructing TestComplete to treat your custom grid as a standard supported grid. To do this:
* Go to Tools > Current Project Properties > Object Mapping.
* Select the Microsoft Controls > WPFToolkitDataGrid item.
* Add OptionsWorkshop.Common.UI.DeskDataGrid to the list of class names, and select the Enabled check box.
* Save your project.
After that, examine the WPFObject("dataGrid1") object in the Object Browser or Object Spy - now, does it have extended properties such as wRowCount, wColumnCount, wValue(row, column)? If it does, do they return correct values?
Also, does it work now if you try to create a table checkpoint for the grid?
Let me know the results.