Support of Standart Dialogs (Select Color,...)

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

Support of Standart Dialogs (Select Color,...)

Postby a.bitsche » Wed Sep 06, 2006 3:14 am

Standart Windows Dialogs like 'Select Color' and 'Search Folder' are not supported.

Is the support of this Dialogs planned / in work?
Is a workaround available?
a.bitsche
 
Posts: 31
Joined: Tue Aug 22, 2006 2:53 am
Location: Austria

Postby Phil Quitslund » Wed Sep 06, 2006 5:41 am

Native dialogs are not supported and present a challenge. We've been considering providing helper classes to manipulate them but haven't released any yet. In the meantime, you might be able to manipulate them manually by programming keystrokes (that is: invoke the dialog, wait a bit for it to appear, and navigate it with keystrokes). Ultimately this is unsatisfying for sure, but it may work as a stopgap.

Feel free to submit a feature request to: wintest-support@instantiations.com
--
Phil Quitslund
Software Engineer
Google, Inc.
Phil Quitslund
Moderator
 
Posts: 491
Joined: Fri Apr 28, 2006 6:26 am

Postby a.bitsche » Thu Sep 07, 2006 3:21 am

As soon as a native Dialog is opened, the keystrokes doesn't work.

This code doesn't affect the dialog
Code: Select all
Thread.sleep(2000); // Wait for the dialog
ui.keyClick(SWT.CR);
nore does this
Code: Select all
abbot.swt.Robot r = new abbot.swt.Robot();
r.keyPress(SWT.CR);
Thread.sleep(5);
r.keyRelease(SWT.CR);

It seems to me as if the programm is paused till the nativ dialog is closed.
Because the keystroke is executed after the dialog is closed.
a.bitsche
 
Posts: 31
Joined: Tue Aug 22, 2006 2:53 am
Location: Austria

Postby Phil Quitslund » Thu Sep 07, 2006 9:37 am

You're absolutely right! Sorry to send you down a dead-end (but thanks for reporting it). It appears that native dialogs block the test thread. We'll have to do a bit of digging to see if/how we might support this.

In the meantime, are there any workarounds for your use case? That is, can you accomplish the same actions programmatically? I know this isn't totally satisfying but it might get you unblocked.

Thanks for submitting a feature request BTW. We'll look into it and be in touch.
--
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