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
It seems like this is a custom control that is developed by the application developer and not an Infragistics control. I don't think there is much you can do with this control. Does the control support keyboard navigation (Tab, Arrow, Enter keys) if so you might want to try navigating to nodes using the keyboard keys. You may also try firing the event that get fired when clicking on a node and populate the data.
Unfortunately it doesn't support any keyboard key event. And I can't use fire event also as I need to pass coordinate alongwith the click event, And if I do so with coordinate, I am afraid it will not run in other machine if coordinate changes. Is there any alternate way which I can try?