SWTWidgetLocator constructor parameter

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

SWTWidgetLocator constructor parameter

Postby Steffen8708 » Fri Jan 23, 2009 2:38 am

Hello,

i have a question concerning the constructors of SWTWidgetLocator. Does the parameter "java.lang.Class cls" mean the exact class of the widget or can I specify a base class and then also derived widgets will be found by the locator?

Best regards,
Steffen
Steffen8708
 
Posts: 29
Joined: Tue Nov 04, 2008 7:11 am

Re: SWTWidgetLocator constructor parameter

Postby Phil Quitslund » Mon Jan 26, 2009 1:42 pm

The exact class.

If that is not ideal, consider rolling your own as described in this document here:

http://downloads.instantiations.com/WindowTesterDoc/integration/latest/docs/html/programmer/core/Creating%20a%20Custom%20Locator.html

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

Re: SWTWidgetLocator constructor parameter

Postby Steffen8708 » Tue Jan 27, 2009 5:10 am

Ok, then I think I have to implement it myself.

Thanks,
Steffen
Steffen8708
 
Posts: 29
Joined: Tue Nov 04, 2008 7:11 am

Re: SWTWidgetLocator constructor parameter

Postby Phil Quitslund » Mon Feb 02, 2009 9:45 am

If you need help, let us know. Moreover, if you think it would be useful to others, consider contributing it to the WT Commons project:

http://code.google.com/p/wt-commons/

Thanks!
--
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