Selenium NUnit Tutorial


NUnit is a popular open-source unit testing framework for C#. It is ported from the JUnit framework. It is used for the development and execution of tests with the .NET language. It also facilitates batch execution of tests through console runner (nunit-console.exe). The console runner helps in loading, exploring, and executing tests with the help of NUnit Test Engine.

NUnit Environment Setup

Most of the .NET developers use Visual Studio for writing code as it eases the process of test case development, debugging, testing, and maintenance. NUnit Visual Studio Adapter is used to execute NUnit tests as it works with all the current editions. Read the blog to learn more about the NUnit Setup.


NUnit With Selenium

Development is not all you can do with C#, you can also leverage C# for test automation with top frameworks like NUnit, along with language bindings for Selenium. Here you learn how to run your first test automation script with the NUnit testing framework.


Selenium WebDriver Commands in NUnit

Selenium Framework interacts with the web browser through Selenium WebDriver commands that let you automate actions like open, close, maximise the browser window, etc. Read the blog to learn various Selenium WebDriver Commands for automating interactions.


NUnit Parameterized Unit Tests

NUnit has been supporting parameterized tests since the release of NUnit 2.5. Using special attributes in NUnit, you can develop foolproof tests by verifying them on different browsers, browser versions, and platforms, which can be passed as parameters to the test. Read the blog to learn more!


NUnit Asserts

While developing tests using different test frameworks, developers usually ask one question: ‘Should I use an assert or an exception in my test code’? Let’s answer this question with deeper insights on NUnit asserts.


NUnit Annotations

Annotations in NUnit are added between [ ]. NUnit framework makes use of annotations since it helps in building a more robust framework. Learn more about NUnit Annotations and their execution sequence for Selenium.


Generating Test Reports In NUnit

Test reports are an integral part of any testing activity! They help track how the activities related to automation testing have evolved over a period of time. Read more to learn integrating the NUnit reporting tool seamlessly with test implementation.


Parallel Execution In NUnit

Parallel execution with NUnit can be achieved by using it with popular BDD (Behavior-Driven Development) frameworks like SpecFlow. This tutorial takes a closer look at how you can achieve NUnit Parallel Execution in SpecFlow.


We use cookies to give you the best experience. Learn more in our Privacy & Terms of service.

Got it