0

I would like to use WatiN to test the functionality of a website I'm developing. Ideally, I would programmatically deploy the website (asp.net MVC3) before the tests start running, and then refresh the data before each test. Is this possible?

w.brian
  • 16,296
  • 14
  • 69
  • 118

1 Answers1

1

Read here about using MSBuild to deploy web projects. Getting your application into automated deploy on build success (read: Continuous Integration) is really nice.

MSBuild - How to use MSBuild to deploy an ASP.NET MVC application

Using NUnit, for refreshing the data before each test you can decorate a method with [Setup] (or [TestFixtureSetup]) to run code once before each test (or once before each group of tests). I use this for cases that require specific data setup and it works like a champ. I'm assuming other XUnit frameworks have similar mechanisms in place.

Setup - http://www.nunit.org/index.php?p=setup&r=2.2.10

Community
  • 1
  • 1
OCary
  • 3,231
  • 2
  • 16
  • 17