Selenium Web Automation — SauceDemo

Automation project for the SauceDemo web app, focused on covering the main functionalities of the platform.

Scope

  • User authentication
  • Product inventory
  • Shopping cart
  • Checkout process
  • Side menu and navigation

Technologies & Tools

  • Selenium WebDriver
  • JUnit 5
  • Java
  • Allure Reports
  • Page Object Model

Documentation & Test Tracking

In addition to automated reports (JUnit + Allure), I maintain manual documentation of the test cases covered to ensure traceability and functional coverage.

IDNombre del Caso de PruebaMódulo / FuncionalidadPrecondicionesPasosDatosResultado EsperadoAutomatizado
TC001Login exitoso con usuario válidoLoginNavegador en https://saucedemo.com/1. Ingresar usuario 2. Ingresar password 3. Clic en Loginstandard_user / secret_sauceRedirección a página de inventario✔️ Sí
TC002Login con credenciales inválidasLoginNavegador en https://saucedemo.com/1. Ingresar usuario incorrecto 2. Ingresar password incorrecta 3. Clic en Loginusuario_x / secret_sauceMostrar mensaje de error de autenticación✔️ Sí
TC003Login con usuario bloqueadoLoginNavegador en https://saucedemo.com/1. Ingresar usuario bloqueado 2. Ingresar password 3. Clic en Loginlocked_out_user / secret_sauceMostrar mensaje: usuario bloqueado✔️ Sí
TC004Login con usuario vacíoLoginNavegador en https://saucedemo.com/1. Dejar usuario vacío 2. Ingresar password 3. Clic en Loginstandard_user / ""Mostrar mensaje de campo obligatorio✔️ Sí
TC005Login con password vacíaLoginNavegador en https://saucedemo.com/1. Introducir usuario 2. Dejar contraseña vacía 3. Clic en Login/ secret_sauceMostrar mensaje de campo obligatorio✔️ Sí
TC006Validar nombre, descripción y precioInventarioUsuario autenticado1. Acceder al inventario 2. Revisar nombre, descripción y precio por item-Todos los datos deben mostrarse correctamente✔️ Sí
TC007.1Ordenamiento de productos A-ZInventarioUsuario autenticado1. Abrir menú de ordenamiento 2. Seleccionar A-Z-Lista ordenada alfabéticamente ascendente✔️ Sí
TC007.2Ordenamiento de productos Z-AInventarioUsuario autenticado1. Abrir menú de ordenamiento 2. Seleccionar Z-A-Lista ordenada alfabéticamente descendente✔️ Sí
TC008.1Ordenamiento de productos precio ascendenteInventarioUsuario autenticado1. Abrir menú de ordenamiento 2. Seleccionar precio ascendente-Lista ordenada por precio ascendente✔️ Sí
TC008.2Ordenamiento de productos precio descendenteInventarioUsuario autenticado1. Abrir menú de ordenamiento 2. Seleccionar precio descendente-Lista ordenada por precio descendente✔️ Sí

Fragment from the manually maintained test case documentation.

Challenges & Solutions

The main challenge was defining the test structure and organizing the Page Object Model to ensure maintainability.

I analyzed the use cases and structured the Page Objects to maximize reuse and clarity.

Key Features

  • Automatic screenshot capture on failures (Allure)
  • Page Object Model for clean and reusable code
  • Flexible configuration via external files
  • Manual and automatic documentation for full traceability

Allure Report Example

Allure Report Summary

Screenshot of an Allure report showing test execution results.

Result

Stable and maintainable test suite covering the most critical flows of the web application.

Lessons & Future Improvements

  • Deeper mastery of the Page Object Model
  • Cross-browser testing and continuous integration in the future

Links