Search code examples
asp.net-mvcmsbuildnunitregression-testing

How to build dependent tests for regression testing


I have an ASP.Net MVC project and I thought I could use a tool like MS Test or NUnit to perform regression testing from the controller layer down to the database, however I hit an issue where tests are not designed to run in order (You can use ordered tests in MS Test, but the tests still run concurrently) and the other problem is how to allow the data created from one test accessible to another?

I have looked at Selenium and WatiN but I just wanted to write something that is not dependent on the UI layer which is most likely going to change an increase the amount of work to maintain the tests.

Any suggestions? Is it just the wrong tool for the job? Should I just use Selenium/WatiN?


Solution

  • Update The link below (and I assume the project) is dead. Best option maybe using Selenium and the Page Object Model. See here: http://code.tutsplus.com/articles/maintainable-automated-ui-tests--net-35089

    Old Answer The simplest solution I have found is Rob Conery's Qixote:

    https://github.com/robconery/Quixote

    It works by firing http requests and consuming responses. Simple to set up and use and provides integration testing. This tool also allows a series of tests to be executed in order to create test dependencies.