Problem with ensuring that a perspective is active?

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 ensuring that a perspective is active?

Postby jluebker » Wed Aug 26, 2009 8:13 am

Hello,

I created a convenience method that made use WT APIs to ensure that an Eclipse perspective was open. I noticed that if I called it several times specifying different perspective names that instead of the perspective changing a new window was opened for each call with the specified perspective being active. I am using version 3.9.0 of WT for Eclipse 3.3. Is this possibly a bug?

Code: Select all
public static void openPerspective(IUIContext ui, String name) throws Exception {
      ui.ensureThat(perspective(name).isActive());
   }


Thanks,
Joe
jluebker
 
Posts: 15
Joined: Thu Jul 02, 2009 11:17 am

Re: Problem with ensuring that a perspective is active?

Postby Phil Quitslund » Wed Aug 26, 2009 7:19 pm

Hmmmm.... This does sound like a potential bug. Could you send a report to support?

wintest-support@instantiations.com

If you have a testcase that we can use to repro the issue, that'd be great too.

Thanks!

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

Re: Problem with ensuring that a perspective is active?

Postby jluebker » Thu Aug 27, 2009 12:50 pm

I filed a report to wintestsupport and included a test case.

Thanks,
Joe
jluebker
 
Posts: 15
Joined: Thu Jul 02, 2009 11:17 am

Re: Problem with ensuring that a perspective is active?

Postby gnebling » Thu Aug 27, 2009 2:41 pm

Thanks. We'll followup from there.
gnebling
Moderator
 
Posts: 243
Joined: Tue Aug 22, 2006 7:49 am


Return to Window Tester

Who is online

Users browsing this forum: No registered users and 1 guest