This project contains Selenium-based UI automation tests for the Advantage Online Shopping website using .NET and NUnit.
The test framework is built with:
- .NET 10
- NUnit 4
- Selenium WebDriver
- WebDriverManager
- NLog for logging
- Allure for test reporting
AdvantageShopTestAutomation/- main test projectTests/- test classesPages/- page object model classesConfig/- browser and configuration helpersUtils/- reusable utilities such as test data generation and screenshots.runsettings/- test run configuration files
Before running the tests, make sure you have the following installed:
- .NET SDK 10.0 or later
- Google Chrome or Mozilla Firefox installed
- Internet access to reach the target site
-
Clone the repository:
git clone https://github.com/santoshmohan/AdvantageShopTestAutomation.git cd AdvantageShopTestAutomation -
Restore NuGet packages:
dotnet restore
-
Build the solution:
dotnet build
Run the test suite with the development run settings:
cd AdvantageShopTestAutomation
DOTNET_CLI_HOME="$TMPDIR" dotnet test --settings .runsettings/Development.runsettings --logger "console;verbosity=detailed"You can also use the production run settings:
DOTNET_CLI_HOME="$TMPDIR" dotnet test --settings .runsettings/Production.runsettings --logger "console;verbosity=detailed"View the latest test execution results with detailed metrics, timeline, and test breakdowns:
The reports are automatically generated and published after each test run via GitHub Actions.
What you'll see in the report:
- ✅ Test execution summary and statistics
- 📈 Pass/Fail/Skip breakdown
- ⏱️ Test duration and timeline
- 🐛 Failure details with screenshots and logs
- 📋 Test categories and severity levels
- 📊 Historical trends over time
Tests run automatically on:
- Daily schedule at 9:00 AM UTC
- Manual trigger via GitHub Actions workflow
- Every push to the main branch
- Browser selection and timeout values can be controlled through the run settings files.
- Logs are written using NLog and can be found in the configured log output location.