Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Secure Storage & StorageLoginDialog
Secure Storage & StorageLoginDialog [message #491337] Wed, 14 October 2009 08:20 Go to next message
as Missing name is currently offline as Missing nameFriend
Messages: 33
Registered: July 2009
Member
Has anyone experience with the use of the
StorageLoginDialog(org.eclipse.equinox.internal.security.ui. storage) in
tests ?

As soon as i request some secured data form SecurePreferences i get this
dialog and should provide a password. The dialog blocks completely the
test progress and currently i cant get the shell of the dialog to
automate the password entry.

thanks for any help
Re: Secure Storage & StorageLoginDialog [message #492196 is a reply to message #491337] Mon, 19 October 2009 12:18 Go to previous message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
On 14/10/09 1:50 PM, Aleksey Shumilin wrote:
> Has anyone experience with the use of the
> StorageLoginDialog(org.eclipse.equinox.internal.security.ui. storage) in
> tests ?
>
> As soon as i request some secured data form SecurePreferences i get this
> dialog and should provide a password. The dialog blocks completely the
> test progress and currently i cant get the shell of the dialog to
> automate the password entry.
>
> thanks for any help

Are you able to type in stuff into normal wizard dialogs but not
StorageLoginDialog ? StorageLoginDialog has nothing special that could
cause the tests to block.

However it seems like the culprit is
DefaultPasswordProvider#getPassword() that opens the dialog in a
Display#syncExec that causes the dialog to block.

If you can provide a snippet of code that I can use to reproduce this
issue I may be able to provide more info.

In the meanwhile you may use KeyboardFactory.getAWTKeyboard().typeText()
to navigate the dialog; be careful -- it's like typing with your eyes
blindfolded.

--
Ketan
http://studios.thoughtworks.com/twist | http://twitter.com/ketanpkr
Previous Topic:Clicking menu item in view toolbar button's drop down
Next Topic:About chartcomposite
Goto Forum:
  


Current Time: Sun Dec 21 01:15:09 GMT 2014

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

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