This is a migrated thread and some comments may be shown as answers.

Simulated clicks not running if machine is in locked state

4 Answers 124 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 12 Jul 2010, 11:54 AM
Any action that requires a simulated click (User.Click), e.g. click cell in grid, click scrollbar in grid, etc. does not seem to work if the test machine is in locked state (Windows Key + L)

This is affecting our build server as it is goes into locked state after 15 minutes of activity and is unable to complete the UI system tests.

Is there any way to allow the simulated clicks to work as intended when a machine is locked?

         var dataGrid = _silverlightApp.Find.ByAutomationId<DataGrid>("DataGrid");
         dataGrid.Rows[0].User.Click()

or

         var dataGrid = _silverlightApp.Find.ByAutomationId<DataGrid>("DataGrid");
         dataGrid.Rows[0].User.Click()

4 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 12 Jul 2010, 05:34 PM
Hi Alex,

UI automation of any kind requires that the machine appear to be unlocked. Some of our customers have reported success using a VNC product. They connect to their server over VNC, login, leave the session running but disable the screen saver and simply disconnect the VNC link. This fools Windows into believing it's running tests on the local console in an unlocked state.

All the best,
Cody
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Saravanakumar
Top achievements
Rank 1
answered on 05 Aug 2010, 01:43 AM
Any latest versions have this feature? Mean simulating mouse click events when the system is locked?

0
Konstantin Petkov
Telerik team
answered on 05 Aug 2010, 08:52 AM
Hello Saravanakumar,

We can't pass through this general limitation. Can you share why you need the system locked during mouse click actions execution?

Kind regards,
Konstantin Petkov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Kiran
Top achievements
Rank 2
answered on 10 Aug 2010, 08:49 PM
Hi Petkov,

One senario is given below.

If we run a set of test cases which will take lets say 30 minutes to execute.
In that system if a rule is enforced by the admin to lock the system after 15 minutes if no user interaction is happened.
In this case all the test case having click will fail after this.

Hi Alex,

You could try the solution below to avoid this
http://nishantrana.wordpress.com/2008/12/01/preventing-your-system-from-getting-auto-locked/

Thanks
Kiran
Tags
General Discussions
Asked by
Alex
Top achievements
Rank 1
Answers by
Cody
Telerik team
Saravanakumar
Top achievements
Rank 1
Konstantin Petkov
Telerik team
Kiran
Top achievements
Rank 2
Share this question
or