How to Create a Test Suite in Selenium WebDriver and C#
After completing the test automation framework we’ve developed with Selenium, c# and Nunit, with the following quick tutorial you’ll learn to create a test suite in Selenium WebDriver.
Class 1 – Creating an Automated Test Using Selenium WebDriver 3 and C#
Class 2 – How to Create a Test Automation Framework Architecture with Selenium WebDriver 3
Class 3 – Utilizing Test Automation Framework with Advanced Capabilities
To begin, we will copy the test below in our test automation project:
public void ContactUsTestflow()
First, we’ll order Selenium to navigate to the Contact Us page we are testing. Secondly, assert that we are at the correct page by asking our browser for the title of the page and asking if the url consists of the wording ‘contactUs’. Afterwards, we’ll fill out the relevant fields, click Submit and verify the message has been sent successfully.
- This method is also valid for building an alignment of sanity testing for our website.
Feel free to leave your questions/ideas in the comment section below!