Group: Forum Members
Last Active: 3 Years Ago
Posts: 59,
Visits: 77
|
We have implemented a feature using Nevron Diagram where customer data is mapped using various compound groups and images. (Think of a OOD class diagram as an example…)
We are now in the middle of trying to get a UI test automation tool to work properly with this feature.
The issue is that this tool uses reflection to record various interactions and later playback the actions. However, the tool can not drill down deeper than the DrawingView control as it does not see the NShapes and Groups as .Net UI controls (obviously). The result is that all interactions are recorded as simple clicks and drags within the client rectangle of the DrawingView control. So instead of recording “DiagramObjectFoo.Click()” it is recording “DrawingView.Click(465,332)”. This is obviously dependent to my current pan and zoom and even the screen size and resolution of the machine it’s running on. This isn’t very robust.
I am trying to write a method that the UI tool can call to find out the position of the desired object in either DrawingView control client window or even screen coordinates (which I can convert to DrawingView control client window coordinates).
I have a group, inside a group, on a document, at a certain pan and zoom within a DrawingView, and I’ve just been giving myself a headache! ;o)
Is there just a really simple, magic way I can ask a shape or group “What is you location in screen or DrawingView control client window coordinates?”
Thanks in advance, Jason Irby Developer Targeted Convergence
|