Re: [SWTBot-users] Cannot automate login because its dialog blocks the start of JUnit
Brought to you by:
kpadegaonkar
|
From: S. W. <wi...@gm...> - 2009-07-17 09:45:38
|
Hi! The problem still exists and with our new API (the login data now come from a preference page) our current workaround (by setting an 'Autologin') won't work anymore. It would be nice if you could provide some informations on either how to control the login dialog with SWTBot or how to set my preferences programmatically (I tried this by overwriting the setUp() method in my Testclass, but this isn't executed until the application itself has started (see my mail from october))... Best regards, Stefan S. Winseth wrote: > > Hi, > > I have a very similar issue with my application, with the difference that > my Login Screen isn't 3rd party, but it's also blocking the tests. It's > defined within the Application class and starts a jface.Dialog. After this > dialog returns true, the workbench gets loaded and after that the tests > should run. > But with the setBlockOnOpen(true) statement the start() method within the > Application blocks until the login returns a value. > > So is there any possibility to get this kind of login controlled by > SWTBot? > > It seems to me, the tests can only run with the Application class fully > loaded, and not while the class is loading, so maybe there's some > workaround I can try... > > Best regards, > Stefan > > > --- On Mon, 7/14/08, Hans Schwaebli <han...@ya...> wrote: > From: Hans Schwaebli <han...@ya...> > Subject: [SWTBot-users] Cannot automate login because its dialog blocks > the start of JUnit > To: swt...@li... > Date: Monday, July 14, 2008, 5:13 AM > > The application we need to test has an login dialog. I cannot automate > login because the JUnit thread does not run until the login is done (enter > user/password and click OK button). > > I don`t know why this login dialog blocks the start of the JUnit thread. I > am using your SWTBot plugin "Run as SWTBot Test". > -- View this message in context: http://www.nabble.com/Cannot-automate-login-because-its-dialog-blocks-the-start-of-JUnit-tp18440098p24531506.html Sent from the SWTBot Users List mailing list archive at Nabble.com. |