seleniumwindows-server-2003scheduled-tasksscreenshot

Is there a way to take screenshots during a scheduled task if the user isn't logged in?


I have a scheduled task that runs a set of Selenium tests every night at 3:30am. These tests also take a screenshot if they fail and email that screenshot to the development team. The problem I'm having, however, is that the screenshots only work when I'm logged in to the virtual machine (Windows Server 2003) that runs the tests. If no one is logged in, the screenshots are black.

Is there a simple way to fix this?

Thanks!

-Mark


Solution

  • One thing that did work was using VisualCron instead of Scheduled Task. This solution isn't ideal, however, because a server license for VisualCron is $150+.