Testing Telerik UI for WPF controls using QTP/UFT
Alberto last edited by
We are in the initial stages of testing Telerik controls using UFT/QTP. We used Telerik UI for WPF Sample Application 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 ) 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. ListView control Several 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
As Far As I Know and I use QTP 11 only. HP still don't provide proper support with WPF Controls. In some Cases I've seen people contacting HP and then getting some specific patch, I have not done it so can't comment on that. What I read and used and understood... If it is WPF and there is a QTP as a tool for automation, be ready to say NO or be ready for limited automation and some sporadic behaviors of controls with QTP or vice a versa.