Ask a Question

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

Anand5Phadke
Occasional Contributor

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 3
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."

[[ kITt: keep IT testing ]]
rraghvani
Valued Contributor

See SessionCreator and Running Tests via Remote Desktop.

You need one session running on the remote desktop; call tscon to disconnect the session (which remains active); you can then call your batch file which then launches SeesionCreator and runs the automation.

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.

cancel
Showing results for 
Search instead for 
Did you mean: