Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsSWTBotText.typeText(final String text) is not working when you lock computer
https://www.eclipse.org/forums/index.php/mv/msg/154073/485197/#msg_485197
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.]]>2009-09-10T19:06:20-00:00Re: SWTBotText.typeText(final String text) is not working when you lock computer
https://www.eclipse.org/forums/index.php/mv/msg/154073/485210/#msg_485210
> 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.