drag & drop of view in layout folder

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

drag & drop of view in layout folder

Postby hyshyshys » Mon Mar 23, 2009 8:28 am

Hi,

I have the following issue. When I drag and drop a view from one layout folder to another, the generated code for the test is wrong.

Here is the generated test code.
Code: Select all
   /**
    * Main test method.
    */
   public void testTest7() throws Exception {
      IUIContext ui = getUI();
      ui.click(new CTabItemLocator("Project Explorer"));
      ui.close(); // Problem on this line
                // missing lines here
      ui.click(new CTabItemLocator("Navigator"));
      ui.close(); // Problem on this line
                // missing lines here
      ui.close(new SWTWidgetLocator(Shell.class, "LiveLab"));
      ui.wait(new ShellDisposedCondition("LiveLab"));
   }


Here is the code of my perpestive.

Code: Select all
   public void createInitialLayout(IPageLayout layout) {
      String editorArea = layout.getEditorArea();
      addFastViews(layout);
      addViewShortcuts(layout);
      addPerspectiveShortcuts(layout);
      IFolderLayout folderLayout = layout.createFolder("folder", IPageLayout.LEFT, 0.3f, editorArea);
      folderLayout.addView(IPageLayout.ID_RES_NAV);
      folderLayout.addView("org.eclipse.ui.navigator.ProjectExplorer");
      IFolderLayout folderLayout_1 = layout.createFolder("folder0", IPageLayout.BOTTOM, 0.5f, editorArea);
      folderLayout_1.addView(CompilationView.ID);
   }



Here are the steps I made during recording...

1- Click the Project Explorer
2- Drag the Project Explorer view from the first layout folder to the second layout folder
3- Click the Navigator view
4- Drag the Navigator view from the first layout folder to the second layout folder.

Thanks.

Vincent
hyshyshys
 
Posts: 37
Joined: Thu Jul 03, 2008 12:27 pm

Re: drag & drop of view in layout folder

Postby hyshyshys » Mon Mar 23, 2009 8:44 am

Sorry, I saw in the FAQ that you don't support drag and drop.

Do you plan to support drag and drop?

Vincent
hyshyshys
 
Posts: 37
Joined: Thu Jul 03, 2008 12:27 pm

Re: drag & drop of view in layout folder

Postby Phil Quitslund » Mon Mar 23, 2009 11:59 am

Drag and drop recording support is finicky for sure and that's something we're investigating. In the meantime, feel free to email support (wintest-support@instantiations.com) if you'd like help putting together a work-around.

-phil
--
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