Progess View Information Helper

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

Progess View Information Helper

Postby dphe » Wed Aug 19, 2009 5:54 pm

Hi,

Need to check whether the Build Process is still running. This information when tried to be recorded gives me the following:

new SWTWidgetLocator(ProgressInfoItem.class, new ViewLocator("org.eclipse.ui.views.ProgressView")).isVisible();

But the "ProgressInfoItem" displayed does not resolve to a type. So I have to change the same to ProgressAnimationItem. But its of no use. This doesn't get recognized.

How do I get to monitor activities under Progress View??

Thanks,

Deepesh
dphe
 
Posts: 5
Joined: Sun Aug 16, 2009 4:19 pm

Re: Progess View Information Helper

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

Do you know what the associated eclipse Job is? And what exactly would you like to assert?

Are you shooting for something like?:

Code: Select all
doSomething();
assertJobIsRun();
--
Phil Quitslund
Software Engineer
Google, Inc.
Phil Quitslund
Moderator
 
Posts: 491
Joined: Fri Apr 28, 2006 6:26 am

Re: Progess View Information Helper

Postby dphe » Sat Sep 05, 2009 10:49 pm

We are trying to check how long does the BuildWorkspace takes to complete. This is because, we are using eclipse and WT on Windows OS and the projects that are created are all remote. So it takes time to complete the Buildworkspace, in case of initial project creation and when we save a file.

We are trying to find how long it takes for the BuildWorkspace to complete and this is usually seen as a Progress bar in the Progress view.


Thanks,

Deepesh
dphe
 
Posts: 5
Joined: Sun Aug 16, 2009 4:19 pm

Re: Progess View Information Helper

Postby Phil Quitslund » Sun Sep 06, 2009 1:05 pm

Have you tried a simple wait for jobs complete?

Code: Select all
ui.wait(new JobsCompleteCondition());


This condition will cause the WT runtime to wait for the eclipse job manager to consume all pending jobs including workspace builds. Note that you might want to up the wait timeout if this is likely to take a long time...
--
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