Forum Discussion
Dmitry_Nikolaev
Staff
16 years agoHi Christophe,
Neither Table Checkpoint, nor other checkpoint types provided by TestComplete can be used with QTreeWidget. However, you can get the text of each tree item by using the following code and check whether it is valid:
' Check the text of the first item
If (<QTreeWidgetObject>.wItems.Item(0).Text = <the_needed_value>) Then
' ...
End If
' Check the text of its first child item
If (<QTreeWidgetObject>.wItems.Item(0).Items.Item(0).Text = <the_needed_value>) Then
' ...
End If
Exactly what do you need to verify? Was anything extracted? Does the tree have the correct structure? Do the items have correct values?