Problem with drag and drop from already expanded tree

WindowTester allows you to easily create and run unit tests for every GUI they build. It can also be used to generate system level tests.

Moderators: gnebling, Eric Clayberg, Dan Rubel, keertip, Phil Quitslund

Problem with drag and drop from already expanded tree

Postby eeybye » Fri Nov 21, 2008 2:31 am

Hello

I have an issue with drag and drop from a tree view into a canvas.

The following code illustrates what I do:
Code: Select all
ui.click(new TreeItemLocator("root/node/node", ..);
ui.dragTo(new FigureCanvasXYLocator(x, y));


If the tree is collapsed, the click command will expand the tree and the drag and drop is successful.
The second time I run the code, then the tree is already expanded, and the click command will scroll the tree view horizontal to center the tree node. Note: the tree view is not wide enough to show the whole tree node.
Now the dragTo command fails, because it will move the cursor to the start position of the tree node - which is not visible because the view has been scrolled horizontal, so the cursor is moved outside
the tree view.

I could of cause solve it by scrolling the tree view, but I guess the dragTo command should be clever enough to handle this.

I'm running the test on Linux.
eeybye
 
Posts: 22
Joined: Fri Jun 22, 2007 12:34 am
Location: Denmark

Re: Problem with drag and drop from already expanded tree

Postby Phil Quitslund » Tue Nov 25, 2008 2:18 pm

You're right, the runtime should be smart enough to handle this. Please submit a bug report (wintest-support@instantiations.com). We'll work on a test reproducing the issue and then see to a fix.

Thanks!
--
Phil Quitslund
Software Engineer
Google, Inc.
Phil Quitslund
Moderator
 
Posts: 491
Joined: Fri Apr 28, 2006 6:26 am

Re: Problem with drag and drop from already expanded tree

Postby eeybye » Tue Nov 25, 2008 11:46 pm

I've now submitted a bug report.
eeybye
 
Posts: 22
Joined: Fri Jun 22, 2007 12:34 am
Location: Denmark

Re: Problem with drag and drop from already expanded tree

Postby Phil Quitslund » Thu Dec 04, 2008 7:22 pm

Thanks for doing this. We'll follow-up with you via our issue tracking system and post something here once it's resolved.
--
Phil Quitslund
Software Engineer
Google, Inc.
Phil Quitslund
Moderator
 
Posts: 491
Joined: Fri Apr 28, 2006 6:26 am


Return to Window Tester

Who is online

Users browsing this forum: No registered users and 1 guest