This is a migrated thread and some comments may be shown as answers.

How to run Scheduled Test cases from TAsk Scheduler even the PC is Log off

1 Answer 115 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Karla
Top achievements
Rank 1
Karla asked on 05 Jan 2012, 11:53 PM

Hi,

I'm using task Scheduler from windows to run specific test list, but the thing here is that the test list cannot run if user is not logged on the PC.

I have marked the option in the task scheduler "Run whether user is logged on or not"  (see the image attached)

I tried used this with password and without it, and all the time, the test is up and run, but the results sent me to my email was fail, like the test does not run.  I just suppose that task run b/c I have the results on the email.

When I login into the pc and click to run the task, results on my email appear as Pass.

there is something in the configuration on Task Scheduler that I need to do, or the results as Fail are b/c the PC needs to see the browser to execute the steps??

Thanks,




1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 06 Jan 2012, 03:26 PM
Hello Karla,

I'm sorry you running into this problem. This is happening because the test is not running in an interactive desktop session. Tests that need to handle dialogs, move the mouse, or send keystrokes must be executed on an unlocked machine with full interactive desktop permission.

As seen in this Microsoft documentation and explained in this forum thread, the only way to make a task run interactively via Windows Task Scheduler is to select the "Run only when user is logged on" radio button.  

Please check out this KB article for one possible solution to this problem.

Regards,
Plamen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Karla
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or