SWTBot cannot handle login dialog [message #636626] |
Tue, 02 November 2010 05:30  |
Eclipse User |
|
|
|
Hi Ketan,
Could you please tell me how I have to do to bypass the login dialog when using SWTBot to test my RCP App? At the start point, the login is shown up and require username, password and a combo-box to choice the database server path. So, my test is get stuck at the starting point and couldn't go further. I also cannot change the code of the application or pass the parameters into JVM at the runtime, so the workarround that you suggested on http://wiki.eclipse.org/SWTBot/FAQ#Why_do_tests_run_on_a_non -UI_thread.3F doesn't work much for me.
Looking forward to hear from you!
Thanks,
Toni
|
|
|
|
|
|
Re: SWTBot cannot handle login dialog [message #641381 is a reply to message #640877] |
Thu, 25 November 2010 04:19  |
Eclipse User |
|
|
|
Actually, I've learned that there is no way to pass a native dialog within SWTBot. I've checked all workaround solutions on the internet, but they seem require changing application source code (means you need change native dialogs into something SWT can understand) and, of course, it's impossible for my case.
Instead, I used Autoit (http://www.autoitscript.com/autoit3/index.shtml) to help SWTBot bypass this limitation. So, my automation testing is something like a relay race with SWTBot and Autoit. Whenever SWTBot gets stuck in a native dialog, Autoit will come and take place. When Autoit solves the dialog completely, it will give back to SWTBot to continue the test and so on.
Cheers,
Toni
[Updated on: Thu, 25 November 2010 04:35] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.04682 seconds