Issue in launching ClickOnce application from Window Task scheduler
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?
Any guidance would be greatly appreciated.