Skip to content

Repository files navigation

Advantage Shop Test Automation

This project contains Selenium-based UI automation tests for the Advantage Online Shopping website using .NET and NUnit.

1. Project Setup

The test framework is built with:

  • .NET 10
  • NUnit 4
  • Selenium WebDriver
  • WebDriverManager
  • NLog for logging
  • Allure for test reporting

Project Structure

  • AdvantageShopTestAutomation/ - main test project
  • Tests/ - test classes
  • Pages/ - page object model classes
  • Config/ - browser and configuration helpers
  • Utils/ - reusable utilities such as test data generation and screenshots
  • .runsettings/ - test run configuration files

2. Project Requirements

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

3. How to Install

  1. Clone the repository:

    git clone https://github.com/santoshmohan/AdvantageShopTestAutomation.git
    cd AdvantageShopTestAutomation
  2. Restore NuGet packages:

    dotnet restore
  3. Build the solution:

    dotnet build

4. How to Execute the Project

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"

Run with a different environment

You can also use the production run settings:

DOTNET_CLI_HOME="$TMPDIR" dotnet test --settings .runsettings/Production.runsettings --logger "console;verbosity=detailed"

5. 📊 Test Results & Reports

Live Allure Reports

View the latest test execution results with detailed metrics, timeline, and test breakdowns:

🔗 View Live Allure Report

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

6. Continuous Integration

Tests run automatically on:

  • Daily schedule at 9:00 AM UTC
  • Manual trigger via GitHub Actions workflow
  • Every push to the main branch

Notes

  • 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.

About

Automated UI testing project for Advantage Online Shopping using Selenium WebDriver, NUnit, and .NET. This repository includes page object model (POM) tests, browser configuration, logging, and test data generation for end-to-end validation of login and registration flows.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages