Script runs when used option UseActiveSession in to command line but when removed it doesn't run
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Labels:
-
Command Line
-
Test Run
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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."
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
