This framework leverages C#, Selenium, NUnit, POM, Allure Report, and automatic screenshot capture for efficient and comprehensive testing.
Before running the tests and generating reports, make sure you have the following installed:
- .NET SDK (8.0 or higher)
- Selenium WebDriver
- Allure Commandline
- NUnit Console (optional, if you prefer to run tests through NUnit)
-
Clone the repository to your local machine
-
Building the Project
Make sure the required dependencies are installed. Run the following command to restore NuGet packages:
dotnet restore
dotnet build- Running Tests
You can run the tests with the following command:
dotnet test- Generating Allure Report
To generate an Allure Report, run the following steps:
Run the tests with the following command to specify the logger for Allure:
dotnet test --logger "nunit;LogFilePath=allure-results/results.xml"After running the tests, generate the Allure report:
allure generate --cleanTo serve the report locally:
allure serve allure-resultsThis will start a local server and open the Allure Report in your browser.
- Screenshots for failing tests will be saved in a 'screenshots' folder at the project root directory