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.
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.