MSTest is the default test automation framework which comes bundled with Visual Studio. It started as a command-line tool for executing tests and was referred to as the Visual Studio Unit Testing Framework; however, the name MSTest is more synonymous with the developers.

In the previous MSTest tutorial, I had a look at setting up the MSTest framework in Visual Studio. In this MSTest tutorial for Selenium automation, I’ll help you run your first MSTest script for automated web testing with Selenium C#.

Requirements For Running Your First MSTest Script

In this MSTest tutorial, I’ll use the Chrome browser to verify the functionalities in the code. So, you’ll need to install the Chrome WebDriver on the machine where you’ve installed the MSTest framework and Selenium WebDriver.

Different web browsers have their corresponding Selenium WebDrivers. These WebDrivers are crucial to interact with the web elements on a page for automated web testing with Selenium C#. You can download the Selenium WebDriver for browsers such as Opera, Firefox, Chrome, Internet Explorer, Microsoft Edge, etc. using the following links.

#tutorial #performance #c# #automation testing #c sharp #testing tutorial #mstest

MSTest Tutorial: Running First Selenium Automation Script
1.50 GEEK