Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » SWTBotText.typeText(final String text) is not working when you lock computer
SWTBotText.typeText(final String text) is not working when you lock computer [message #485197] Thu, 10 September 2009 15:06 Go to next message
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 Go to previous message
Pascal G is currently offline Pascal G
Messages: 157
Registered: July 2009
Senior Member
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.*
Previous Topic:Using global variables
Next Topic:Problem with bot.viewByTitle()
Goto Forum:
  


Current Time: Tue Jul 29 17:03:15 EDT 2014

Powered by FUDForum. Page generated in 0.14146 seconds