Simulated clicks not running if machine is in locked state

5 posts, 0 answers
  1. Alex
    Alex avatar
    8 posts
    Member since:
    May 2009

    Posted 12 Jul 2010 Link to this post

    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()
  2. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 12 Jul 2010 Link to this post

    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
  3. Saravanakumar
    Saravanakumar avatar
    1 posts
    Member since:
    Jul 2010

    Posted 04 Aug 2010 Link to this post

    Any latest versions have this feature? Mean simulating mouse click events when the system is locked?

  4. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 05 Aug 2010 Link to this post

    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
  5. Kiran
    Kiran avatar
    56 posts
    Member since:
    Dec 2008

    Posted 10 Aug 2010 Link to this post

    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
Back to Top