Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Cannot automate login
Cannot automate login [message #372335] Wed, 29 July 2009 09:09 Go to next message
Eclipse UserFriend
Originally posted by: winseth.yahoo.de

Hi,
I posted this a few weeks ago in the old newsgroup (
http://www.nabble.com/Cannot-automate-login-because-its-dial og-blocks-the-start-of-JUnit-to18440098.html#a24531506
), but since there was no response, this may be a better place :)

Our AUT has a Login Dialog that gets executed before the
createAndRunWorkbench() method and returns an IApplication status as an
entry point for the application.

The SWTBot tests start after the workbench init, so I neither have a
possibility to test the login dialog nor overwrite the setup() method in
JUnit to programmatically enter the login data. So, as long as I don't
have a automatic login as workaround, this blocks all of my tests.

Any help on this issue would be great,
Stefan
Re: Cannot automate login [message #372885 is a reply to message #372335] Wed, 29 July 2009 11:45 Go to previous message
Kay-Uwe Graw is currently offline Kay-Uwe GrawFriend
Messages: 24
Registered: July 2009
Junior Member
You will not be able to test the login dialog but you can use system
properties to transport the login data. Befor opening the login dialog try
to get the login data via System.getProperty and if they exist don't open
the dialog and use the login data instead. You can set the login
information for your test in the test run configuration or in the command
line arguments of your application if you start the test from ant.
Previous Topic:SWTBotToolbarButton click does not depress the button on the menubar
Next Topic:example for modifying a preference setting
Goto Forum:
  


Current Time: Thu Sep 26 19:03:45 GMT 2024

Powered by FUDForum. Page generated in 0.03750 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top