7

I need to know is it possible to perform integration testing using selenium for ASP.NET MVC applications. If yes then What are the requirements and how to do it. Will it be an external application to test from UI or should I be using views. Really confused. Please guide

dove
  • 20,469
  • 14
  • 82
  • 108
sam
  • 4,594
  • 12
  • 61
  • 111

2 Answers2

7

If you are planning to write the Selenium tests using C#, which I'd recommend over using any kind of test recorder, then this will be a separate project.

You will run this and it will test a deployed version of your application, ideally in a dedicated test environment. There is extensive documentation available.

Personally I and others prefer WatiN for testing web applications using C# written tests.

Community
  • 1
  • 1
dove
  • 20,469
  • 14
  • 82
  • 108
0

Selenium can be used for testing any web applications include ASP.NET MVC. In general, you add test project to solution and write tests in it. Selenium open browser and execute commands that is described in your test. You can write test in c# or can use recorder and save record as c# test.

Kirill Bestemyanov
  • 11,946
  • 2
  • 24
  • 38