Forum Discussion

Soier's avatar
Soier
New Contributor
2 years ago

TestExecute operation when the desktop is locked

Good afternoon This text was translated into English by Google, so I apologize if there are any problems with understanding the test.

I am interested in solving the following problem.

Currently, when running TestExecute, we are facing the issue of execution being suspended if the desktop is locked due to inactivity. It is our organization's policy not to remove desktop lock.

Is there an option in the TestComplete or TestExecute settings to configure the execution of tests when the desktop is locked?

3 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    To expand on rraghvani , consider the automation you're writing as another user of the machine. If a human user needs an unlocked session in order to interact with the application, then so does the TestComplete automation.  An active, unlocked desktop session NEEDS to be present in order for UI based automations to run.

    • AlexKaras's avatar
      AlexKaras
      Champion Level 3

      Hi,

       

      To add to Robert:

      An active, unlocked desktop session NEEDS to be present in order for UI based automations to run.

       

      And this is not a requirement of TestComplete, but essential behavior of Windows OS. Windows just does not render UI on locked sessions and this is the reason of why TestComplete/TestExecute fail to interact with tested application's UI.

      If your test does not interact with UI (e.g. if it executes a sequence of COM calls or API calls), such test will be executed perfectly fine on the locked session.