Testing automation using NUnit, Specflow, and Selenium for Buggy Cars Rating (https://buggy.justtestit.org/).
- Visual Studio 2019 version 16.10
- .Net Core 3.1
- Git
- Clone the repository to your local machine
- Open Visual Studio and open the solution
- Install "SpecFlow for Visual Studio 2019" extension
- Build the project 🤞
In Visual Studio menubar, go to Test and then click Test Explorer. And then click Run All Tests In View button. Easy!
What is a LivingDoc? It is a shareable HTML Gherkin feature execution report.
To generate, make sure you installed the LivingDoc CLI first, as a global dotnet tool using command prompt.
dotnet tool install --global SpecFlow.Plus.LivingDoc.CLI
Then execute below command to generate the document with test results.
livingdoc test-assembly [YOUR_PROJECT_DIRECTORY]\BuggyCarsRating\BuggyCarsRating.Tests\bin\Debug\netcoreapp3.1\BuggyCarsRating.Tests.dll -t [YOUR_PROJECT_DIRECTORY]\BuggyCarsRating\BuggyCarsRating.Tests\bin\Debug\netcoreapp3.1\TestExecution.json
Here are the features and functionalities I'm able to cover in this test automation.
1. Registration and Login
- Register with valid data
- Register an existing user
- Login with valid credentials
- Login with invalid credentials
- Logout
2. Overall Rating Page
- Display list of all registered models
- Check pagination
- Check sorting feature
- Check broken images
3. Navigation
- Check for broken links
- Profile Information Update
- Make Details Page
- Models list
- Pagination
- Sorting
- Model Details Page
- Voting and comment form
- Comments list
- Security
- Performance Testing