views:

136

answers:

1

I'm trying to run Watin from within a TeamCity build, using nUnit.

All tests run fine locally. I know you cannot run the full Watin tests (i.e. POST) from TeamCity if it is running as a Windows Service. You must start the build agent from a .bat file.

But, I don't want to have to login to the server for it to start.

I've tried getting a Scheduled Task (in Windows Server 2008) to fire the agent.bat file on StartUp (not Login), but with no luck.

Has anyone else got Watin/TeamCity running from a Scheduled Task?

Thanks,

Pete

A: 

Check out the solution to doing this using CC.NET.

http://stackoverflow.com/questions/640273/watin-tests-fail-on-cc-net/1241329#1241329

Brett and I worked on this for awhile. The problem is that Windows Services running as a user cannot interact with the desktop, but because WatiN runs a real instance of the browser it requires a desktop to interact with. The solution in the link provided can show you how to do this.

Adam