QTP scripts fail to recognize objects in VB 6.0 Application
I am using QTP 8.2, version 220.127.116.11.
Our application is developed in Vb 6.0. It uses a specific control from Infragistics, called a Splitter Control.The splitter control can be split into several panes and each pane can hold precisely only one control. In our application, there are two panes.The left pane has a tree control and the right side pane has a PVDataexplorer control.When I click on any node
in the tree present in the left pane of the splitter control, the corresponding VB form loads in the right side pane of the splitter control.
When recording a test in QTP, QTP recognizes the tree control present in the left pane of the splitter control. At the same time, it FAILS to recognize the form on the right side pane. It doesnt even recognize the dataexplorer control which is a layer/level below the form. Instead it recognizes the underlying splitter control.An error saying Object is not
visible is shown to me. The line of script is as given below:
VbWindow("frmModelerMain_2").ActiveX("SSSplitter_2 ").ActiveX("Infragistics Data Explorer").ActiveX("SSSplitter").VbButton("Add").C lick
Here the VB button ADD actually belongs to the form FrmContextAttributes.Instead of accessing the form, it shows that the button belongs to the Infragistics Data Explorer.
Inorder to work around this problem, i tried the Virtual Object method. I marked the entire form in the right side pane as a virtual object.But again when recording scripts, although buttons present on the marked virtual object are recognized, list boxes, combo boxes and datagrids on the form are not recognized.
In the ADD-in manager screen that first loads, i have selected all the options for ActiveX and VB Addins.
Are there any ADD-INS to help in the identification of these controls, similar to Infragistics ADD-ins that are available for Rational Robot?
Is there anything else that i can try to access these Explorer and Splitter controls?
Please do let me know.
Re: QTP scripts fail to recognize objects in VB 6.0 Application
The add button has been added by the activeX object and hence is a child object of that and that is why qtp is adding it as child of the active object.