Forum Discussion

Anand5Phadke's avatar
Anand5Phadke
Occasional Contributor
2 years ago

Script runs when used option UseActiveSession in to command line but when removed it doesn't run

We want to run the tests using scheduler in unattended mode means with options Run whether user is logged on or not

When we use option UseActiveSession then command line runs but when removed it doesn't run and no logs are generated

Tried with very simple tests like creating a text file, Opening the notepad, writing one word, Opening browser and searching name etc.

Tried on the Windows 1 OS with all the setting mentioned in the requirement

3 Replies

  • Kitt's avatar
    Kitt
    Regular Contributor

    I would re-review the TestComplete docs [here]. According to the guid, what you are doing cannot be accomplished:

    "Enable the Run only when user is logged on option for scheduled tests. These tests cannot be run with the Run whether user is logged on or not option selected, because in this case, they run in a non-interactive session and cannot interact with the GUI."

  • Anand5Phadke's avatar
    Anand5Phadke
    Occasional Contributor

    We were able to run the scripts on the server OS using the settings as suggested but not on the laptop with windows 11. But our problem is solved.

    Thanks every one for the valuable help.