Replay test fails randomly

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

Replay test fails randomly

Postby AFKK » Mon Dec 14, 2009 2:15 am

I am recording and replaying a Eclipse plug-in test by WindowTester. However, when I try to replay it, the test fails too frequently (about 6 in 10 tests will fail). Most of errors are trivial, such as "can't find widget" cased by "ui.click(new MenuItemLocator("File/New/Project..."));". Is there anyway to amend this situation? Is this a timing problem? Does slow down the playback delay will help ?

Thanks.
AFKK
 
Posts: 4
Joined: Mon Dec 14, 2009 1:39 am

Re: Replay test fails randomly

Postby Phil Quitslund » Mon Dec 14, 2009 11:20 am

It may be a timing problem. Do the failures happen at all predictably? Are the same 6 failing? Do note that WT requires complete control of the mouse and keyboard during test execution. User interactions will likely cause test failures.

Please post more details and we'll be happy to help you work through them.
--
Phil Quitslund
Software Engineer
Google, Inc.
Phil Quitslund
Moderator
 
Posts: 491
Joined: Fri Apr 28, 2006 6:26 am

Re: Replay test fails randomly

Postby AFKK » Tue Dec 15, 2009 1:30 am

Thanks a lot. Turning the replay delay seems to be helpful on this situation.
AFKK
 
Posts: 4
Joined: Mon Dec 14, 2009 1:39 am

Re: Replay test fails randomly

Postby Phil Quitslund » Tue Dec 15, 2009 3:46 pm

Good deal. Please follow up if you get any insight into what was causing the issue.
--
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