Skip to main content


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 19:06 Go to next message
Eclipse UserFriend
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 19:35 Go to previous message
Pascal G is currently offline Pascal GFriend
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 Mar 19 08:04:15 GMT 2024

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

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

Back to the top