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-tp18440098p19755491.html
Sent from the SWTBot Users List mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
SWTBot-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/swtbot-users
http://swtbot.org/ - a functional testing tool for SWT/Eclipse

Reply via email to