Originally posted by nishantranjan on June 08, 2026
I am currently using the 15 day trial version of TestComplete to automate a test flow for my existing application, and I have successfully set up the automation — it works as expected when run directly through TestComplete or running using command prompt
However, I am encountering an issue when triggering the same test via the Windows Task Scheduler.
Here is what my test is designed to do:
Launch a URL that downloads a ClickOnce application to the Downloads folder.
Launch the downloaded ClickOnce application. (Doesn’t Install)
Log in to the application.
Perform a set of predefined activities.
Exit the application.
The problem: When the test is executed through Windows Task Scheduler, the URL launches successfully and the application downloads as expected. However, the ClickOnce application never launches after the download completes and my Test fails. I have tried by setting “Run only when user is logged on” in Task scheduler but it doesn’t resolve the issue.
Could you please advise:
Are there any known limitations with TestComplete and ClickOnce applications when executed via Windows Task Scheduler?
Is there a recommended workaround or configuration to resolve this issue?
Originally posted by nishantranjan on June 09, 2026
No Error message. It doesn’t launch the application and next step is login. it doesn’t find any window/textbox to fill username so it returns error that username textbox not found.
When running the same script directly from Test Complete then every thing is working fine.
Originally posted by nishantranjan on June 09, 2026
Just think like this. We have exe. we double click it to run and then perform what ever we want to do.
In my case, Instead of exe i have clickonce.application which on doubleclick launches the application. Scheduler starts the script, downloads the appliction but This doubleclick action to launch my application is not working from task scheduler.
Every thing works perfectly when running script directly from TestComplete or using command prompt , but when i use the command to run my script from task scheduler then it doesn’t launch application.
When running TestComplete, you need to have an interactive Windows user session with a UI.
Question - is your Task Schedule triggering the TestComplete srcipts? If yes, does TestComplete then launch the browser and downloads the ClickOnce application? Which application then launches ClickOnce?
Originally posted by nishantranjan on June 10, 2026
is your Task Schedule triggering the TestComplete srcipts? YES
If yes, does TestComplete then launch the browser and downloads the ClickOnce application? YES
Which application then launches ClickOnce? TestComplete (TestedApps.Rundll.Run)
Great. While the automation is running, is there an active interactive Windows user session available? For example, is a user logged in with access to the desktop UI?
If the machine is locked or running without an interactive desktop session, TestComplete will be unable to interact with the application’s user interface, causing the test to fail.
TestComplete requires an active interactive user session to access and automate the GUI of the application under test (AUT). Without an interactive session, the test engine cannot interact with UI elements, and the automated tests will not run successfully.
Originally posted by nishantranjan on June 10, 2026
Yes, user is logged in. While user is active-logged in watching the desktop, Task scheduler runs the Testcomplete script and url launch and download happens.
That’s a configuration file, specific to TestComplete. You should be referring to Managing Tested Applications. You need to ensure that the TestedApps is configured correctly to launch the ClickOnce application.