I am automating an application where it display a map of nodes. its looks like a scatter diagram, connectting some dot by lines.The map can be zoom in and zoom out.
I have a senario where I need to clicked on a dot in the map to populates some data in ultragrid. While automating I am facing a problem..
Hi Nabajyoti,
You can know what type of control this map is by using the .Net Windows Forms Spy (in QTP IDE click "Tools > .Net Windows Forms Spy"). The control will show up as SwfObject but click OK to see the Type. I think this Control is an UltraWinChart. You can record clicking on the control dots which will be recorded as:
ChartDataClicked([Data Row], [Data Column])
You can then customize the parameter to replay click actions on different nodes.
I hope this will help.
Regards,
Ammar
Hi Ammar ,
Thanks a lot for your kind response. I have done as per your advice but is shows the type like this.
<xyz>.<Application Name>.Layout.MapUserControl
note : xyz is replacement of the organization name and Application name is replacement of Name of the Application
I think this is a layout structure.
It does not show anything like UltraWinChart. And when I record it shows like this.
SwfWindow("xyz").SwfWindow("xyz").SwfObject("mapControl").Click 360,213
I dont know how to handle this issue. Please advice me.
Thanks
Nabajyoti