This project aims to demonstrate the process of creating and executing automated tests on the website "http://the-internet.herokuapp.com/". The tests are written in C# using the Selenium framework, SpecFlow for describing test scenarios in gherkin language, and the Page Object Model (POM) pattern for organizing the test structure.
- A logging system based on MongoDB.
- A reporting mechanism for test results.
- Capturing screenshots in case of test failures.
- Running tests in parallel across different browsers using Selenium Grid.
- Using a
docker-compose
file to set up and manage the Selenium Grid server and MongoDB containeer.
- Visual Studio or another C# compatible editor.
- Docker installed on your computer to run the Selenium Grid.
- MongoDB compass
- Clone this project to your computer.
- Open a terminal and navigate to the DockerFiles folder.
- Start the Selenium Grid server and MongoDB using the command
docker-compose up -d
in the directory where thedocker-compose.yml
file is located(to use full potential of parallel testing you should scale number of browser containeers to your environment). - Open the project in Visual Studio or your preferred editor.
- Run the automated tests using SpecFlow.
- Check logs in MongoDB(you have to configure connection to selected port in docker-compose and credentials).
- Check report based on last test run.