Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to do ASP.NET MVC Integration testing using selenium

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

like image 205
sam Avatar asked Oct 02 '12 09:10

sam


People also ask

Is ASP NET supported by Selenium WebDriver?

We can use Selenium for . NET applications. We should have Visual Studio 2019 installed in the system along with Selenium webdriver and any browser like Firefox, Chrome, and so on. Then we must utilize the NUnit framework.

Does Selenium work with .NET Core?

Summary. Using . NET Core you can write cross-platform UI tests using C# and Selenium. You can swap out the ChromeDriver with any other supported browser to verify cross-browser compatibility.

What is MVC testing?

Advertisements. In computer programming, unit testing is a software testing method by which individual units of source code are tested to determine whether they are fit for use.

What is MVC in asp net with example?

The MVC convention is to put controllers in the Controllers folder that Visual Studio created when the project was set up. Let's take a look at a simple example of Controller by creating a new ASP.Net MVC project. Step 1 − Open the Visual Studio and click on File → New → Project menu option.


1 Answers

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.

like image 152
dove Avatar answered Nov 05 '22 06:11

dove