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 <[email protected]> wrote: > From: Hans Schwaebli <[email protected]> > Subject: [SWTBot-users] Cannot automate login because its dialog blocks > the start of JUnit > To: [email protected] > 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. ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ SWTBot-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/swtbot-users http://swtbot.org/ - a functional testing tool for SWT/Eclipse
