This is a demonstration of how a Selenium test suite can be written using C# and NUnit.
The tests in this project test this site, which is a website created by the Selenium devs to act as a testing ground for aspiring automated test writers.
The parts of the project you may want to checkout are as follows:
- SeleniumTestSuiteExample: This is the main folder, All of the following items are in here.
- EntryPoint.cs: The entry point of the application.
- PageModels: Here you'll find the models of each webpage that is tested.
- TestSuites: Here you'll find the actual tests.
You'll need the following to be installed in order to run this application:
- Firefox Web Browser
- Geckodriver (You'll need to add this to your system's PATH variable as explained here.)
- Visual Studio
You'll need to create an account on this website and pass in the following arguments to the application:
-email (email of acct you just created) -password (password of acct you just created)
You can find help on how to pass in application arguments here
Once the above steps are finished you can simply open SeleniumTestSuiteExample.sln in Visual Studio and click the run button.
Note: This test suite takes about 50 min. to run in it's entirety so you may want to comment out all but the tests that you're interested to see in action.