
Please test all the functionality manually once to confirm that everything all set. We can perform add /edit /delete operations here.Right click on the MVC project and click view (preferred browser). Go to web project ( MVCApplication) properties and set the IISExpress as the server and port. So be sure to edit the test project code to match with the running URL of the web project. But one thing to look here is Selenium web driver receives a URL of the website as input.
You can also configure to run it in the IIS or dev server that comes with VS.
For the test projects to be run, the web project should be running the IISExpress. There are two projects in the solution - one is the MVC project and other one is the Test project. I have used Internet Explorer in my application here because it's pre installed. Whichever browser you should be already installed in your system. Download web drivers (Internet Explorer, Firefox, Chrome). After download completes, attach them to the TestApplication.Test project. Use Nuget manager to download Selenium drivers and support classes. Open the solution in VS2012 or preferably IDE supporting MVC4.0. The attachment contains a solution which should be opened in Visual Studio supported with C#4.0. The selenium driver also takes screenshots of the operation and stores designated location. The application uses simple MVC concepts like Model binding to Views, Posting data to controllers and basic element discovery using selenium and performing operations through the driver.
The same operations are then unit tested through Selenium Webdriver.
This tip describes basic CRUD operations applied to a List of employees.