Testing Drag and Drop feature

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

Testing Drag and Drop feature

Postby karthik.intels12 » Wed Jun 09, 2010 9:02 pm

I want to test the drag and drop feature in windows tester.. Actually In our tool We have two grid tables. and feature is thet we can drag and drop the elements or a row or multiple rows from one to another. But if i tried to record that, it is just creating code for clicking alone. It cannot recognize that drag and drop option. So kindly assist me to do drAG AND DROP in windows tester...
Thanks and Regards,
Posts: 35
Joined: Wed Mar 31, 2010 4:37 am

Re: Testing Drag and Drop feature

Postby Phil Quitslund » Fri Jun 11, 2010 5:44 am

To hand-roll drag and drop operations, I would start by recording some basic click interactions and then modify the generated code to perform drags. For example, a recording like this:

Code: Select all
ui.click(/* source locator */);
ui.click(/* target locator */);

would be modified to perform a drag like this:

Code: Select all
ui.click(/* source locator */);
ui.dragTo(/* target locator */);

Hope this helps!
Phil Quitslund
Software Engineer
Google, Inc.
Phil Quitslund
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