We are in the initial stages of testing Telerik controls using UFT/QTP. We used Telerik UI for WPF Sample Application (ScreenShot attached)
Using the sample application, we tried identifying certain controls. But we found that some of the properties that we used to identify VB 6.0 controls are not working properly when it comes to the identification of WPF controls. Following are some examples to explain the situation better (We used both UFT 12.0 and 11.53 )
1. Treeview control
We use 'Select' method followed by the item to be selected from the treeview to select an item in a VB 6.0 control.
But for WPF control, we need to pass the node number instead of the item name that has to be selected.
WpfWindow("WPF Controls Examples").WpfTreeView("explorerTree").Select 0 'To select the first item in the treeview
On passing the item name, UFT is throwing error.
2. ListView control
Several of the properties that we use to manipulate a List box VB 6.0 control are not working with WPF controls.
For example, properties lke GetItem, GetSelection, Select, SelectRange etc are throwing an error from UFT/QTP
Since 'Select' doesn't select the item in the list box, we need to go with a crude way to do the job.
WpfWindow("WPF Controls Examples").WpfList("WpfList").Object.SelectedIndex = 1
Using the sample application, we tried identifying certain controls. But we found that some of the properties that we used to identify VB 6.0 controls are not working properly when it comes to the identification of WPF controls. Following are some examples to explain the situation better (We used both UFT 12.0 and 11.53 )
1. Treeview control
We use 'Select' method followed by the item to be selected from the treeview to select an item in a VB 6.0 control.
But for WPF control, we need to pass the node number instead of the item name that has to be selected.
WpfWindow("WPF Controls Examples").WpfTreeView("explorerTree").Select 0 'To select the first item in the treeview
On passing the item name, UFT is throwing error.
2. ListView control
Several of the properties that we use to manipulate a List box VB 6.0 control are not working with WPF controls.
For example, properties lke GetItem, GetSelection, Select, SelectRange etc are throwing an error from UFT/QTP
Since 'Select' doesn't select the item in the list box, we need to go with a crude way to do the job.
WpfWindow("WPF Controls Examples").WpfList("WpfList").Object.SelectedIndex = 1