SWTBotText.typeText(final String text) is not working when you lock computer [message #485197] |
Thu, 10 September 2009 15:06  |
Eclipse User |
|
|
|
Originally posted by: gachoki.us.ibm.com
Hi,
Seems like SWTBotText.typeText(final String text) is not working when you
lock computer or close out log-in session. I have a bunch of test-cases
that are running successfully when my computer is open but start failing
when I lock it to walk way. If I change my test-cases to use setText(),
then they are passing even when I lock my computer. But problem with
setText() is that it does not trigger keyboard events registered on the
text widgets, so I can't effectively test my UI without using typeText().
thanks.
|
|
|
Re: SWTBotText.typeText(final String text) is not working when you lock computer [message #485210 is a reply to message #485197] |
Thu, 10 September 2009 15:35  |
Eclipse User |
|
|
|
GeorgeA wrote:
> Hi,
>
> Seems like SWTBotText.typeText(final String text) is not working when
> you lock computer or close out log-in session. I have a bunch of
> test-cases that are running successfully when my computer is open but
> start failing when I lock it to walk way. If I change my test-cases to
> use setText(), then they are passing even when I lock my computer. But
> problem with setText() is that it does not trigger keyboard events
> registered on the text widgets, so I can't effectively test my UI
> without using typeText().
>
> thanks.
I have seen something similar to this posted in the newsgroup, but I
have not been able to find it. I am not 100% sure, but it had something
to do with how Windows handles System events (if you are on Linux/Mac
then I have no clue). The workaround was to log-in to the workstation
using a virtual desktop (VNC is an example) then just keep the window in
the background.
Hope this helps.
--
Pascal Gélinas | Software Developer
*Nu Echo Inc.*
http://www.nuecho.com/ | http://blog.nuecho.com/
*Because performance matters.*
|
|
|
Powered by
FUDForum. Page generated in 0.04103 seconds