ui.dragTo isn't working if item is dragged from another view

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

ui.dragTo isn't working if item is dragged from another view

Postby jyotisaxena » Tue Jan 11, 2011 11:18 am

Hi,
I am facing an issue with the dragTo function. We have some views from which we can drag the tree items to the process canvas.

Dragging the palette item works fine for the process canvas but dragging treeitem from another view doesn't work.

PS: I am not getting any error, Cursor position is also getting changed after drag, but item is not dropped somehow.

Regards,
Jyoti
jyotisaxena
 
Posts: 12
Joined: Mon Nov 08, 2010 11:04 am

Re: ui.dragTo isn't working if item is dragged from another

Postby keertip » Wed Jan 12, 2011 9:13 am

Would it be possible to post a snippet of code and a test for the problem?
keertip
Moderator
 
Posts: 221
Joined: Thu Mar 15, 2007 10:26 am

Re: ui.dragTo isn't working if item is dragged from another

Postby jyotisaxena » Thu Jan 13, 2011 6:30 am

Hi,
I am using the following code to drag a tree item to process canvas.
ui.click(new TreeItemLocator("Process Service Consumers/Process_Consumer/HelloWorld",
new ViewLocator("com.activee.bpep.view.AevParticipantView")));
ui.dragTo(new AevBPMNProcessFigureLocator());

Participant view is a customized tree based view, when we select a tree item and drop it over the process canvas, it is supposed to draw a figure representing the flowing of the operations.
jyotisaxena
 
Posts: 12
Joined: Mon Nov 08, 2010 11:04 am

Re: ui.dragTo isn't working if item is dragged from another

Postby keertip » Wed Jan 19, 2011 10:09 am

Has this type of drag and drop worked for you before?
keertip
Moderator
 
Posts: 221
Joined: Thu Mar 15, 2007 10:26 am

Re: ui.dragTo isn't working if item is dragged from another

Postby jyotisaxena » Mon Jan 24, 2011 6:00 am

NO. I never tried that before.
jyotisaxena
 
Posts: 12
Joined: Mon Nov 08, 2010 11:04 am

Re: ui.dragTo isn't working if item is dragged from another

Postby keertip » Thu Jan 27, 2011 8:40 am

Is there any other way you could test the same functionality, without doing a drag and drop?
keertip
Moderator
 
Posts: 221
Joined: Thu Mar 15, 2007 10:26 am

Re: ui.dragTo isn't working if item is dragged from another

Postby jyotisaxena » Mon Jan 31, 2011 8:16 am

No, there is no other way round to test this functionality.There is no context click/Menu option available to do the same operation.
jyotisaxena
 
Posts: 12
Joined: Mon Nov 08, 2010 11:04 am

Re: ui.dragTo isn't working if item is dragged from another

Postby keertip » Wed Feb 02, 2011 8:26 am

If we could get a sample app or snippet of code to help reproduce this at our end, that would be most helpful.
keertip
Moderator
 
Posts: 221
Joined: Thu Mar 15, 2007 10:26 am


Return to Window Tester

Who is online

Users browsing this forum: No registered users and 1 guest

cron