Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Jubula » Testing Drag and Drop
Testing Drag and Drop [message #695204] Mon, 11 July 2011 09:18 Go to next message
Eclipse UserFriend
Originally posted by: Thomas Forster

Hi,
my first impression: Great tool!

Here is my question: I want to test a dnd scenario in my application.
Actually I have two treeviewers where I drag an item in the left one and
drop it into the right one.
I tried all the ub_tre_dragAndDrop_ (by text and by indexpath) test
cases and the drag seems to work, the source node is found. But the drop
fails and I think the problem is that my target treeviewer is empty -
the test result shows that "drop on node" fails. How do I have to
specify the drop part of the TestCase if the target viewer is initially
empty?

Regards

Thomas
Re: Testing Drag and Drop [message #695215 is a reply to message #695204] Mon, 11 July 2011 09:47 Go to previous messageGo to next message
Zeb Ford-Reitz is currently offline Zeb Ford-ReitzFriend
Messages: 33
Registered: November 2010
Member
Hi Thomas,

Since you're only interested in dropping on the component itself (and not on a specific node inside of the component), you should be able to use the unbound module "ub_grc_drop".

- Zeb
Re: Testing Drag and Drop [message #695263 is a reply to message #695215] Mon, 11 July 2011 11:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Thomas Forster

Am 11.07.2011 11:47, schrieb Zeb Ford-Reitz:
> Hi Thomas,
>
> Since you're only interested in dropping on the component itself (and
> not on a specific node inside of the component), you should be able to
> use the unbound module "ub_grc_drop".
>
> - Zeb

Hi Zeb,
thank you
- a combination of "ub_tre_dragNode_byTextpath" and "ub_grc_drop" did it

Thomas
Re: Testing Drag and Drop [message #1003985 is a reply to message #695263] Tue, 22 January 2013 11:14 Go to previous messageGo to next message
Mark Rösler is currently offline Mark RöslerFriend
Messages: 8
Registered: January 2013
Junior Member
Hi,
I have a similar test case with two trees and had the same problem with the empty one. Thanks for the solution.
My second problem is that I don't know how to drop above or below a node (i.e. to sort a list). Is that possible?
(I have a RCP application)

Regards
Mark
Re: Testing Drag and Drop [message #1005138 is a reply to message #1003985] Thu, 24 January 2013 14:47 Go to previous message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1613
Registered: July 2009
Senior Member
Hi Mark,

Good question Smile I'm assuming that dropping it on the item doesn't automatically place it before or after in your AUT (long shot, but worth a shot!). I know that we don't have any specific support to drop above or below an item, just the standard drag and drop - you could extend the existing actions (but I'm not 100% sure what kind of sensible high-level, platform / toolkit-independent logic one could build in to make the drop happen at the right place...)

Best regards,
Alex
Previous Topic:Central data set as a parameters for standard Actions
Next Topic:Excel file as data source
Goto Forum:
  


Current Time: Sat Oct 05 13:44:39 GMT 2024

Powered by FUDForum. Page generated in 0.04001 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top