使用 Windows Scheduler 运行控制台应用程序
我创建了一个控制台应用程序,它运行 selenium 测试并打开浏览器,当运行应用程序 exe 文件时,它在“调试”和“调试”中都运行良好。释放模式。
当我尝试使用 Windows Scheduler 安排此控制台应用程序时,它会打开命令窗口,但不会打开浏览器。
我正在使用 Window Server 2008 来测试该应用程序。
我是否需要添加一些特殊权限才能将其作为任务运行
I have created a console application which run selenium test and open up browser, when running the application exe file it works fine both in Debug & Release mode.
When I try to schedule this console application using Windows Scheduler it starts open up command window but does not open browser.
I am using Window Server 2008 to test this application.
Do I need to add some special permissions to run it as task
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否尝试过使用特定帐户(即您的帐户)运行计划任务? LocalSystem 与“常规”用户帐户有很大不同。
Have you tried running the scheduled task with a specific account (ie, your account)? LocalSystem is quite different than a "regular" user account.