Web automation example with Java, Maven, Gherkin, and the Page Object Model design pattern

This project presents a practical example of web automation with Java, integrating several key tools to ensure a complete and professional testing workflow. Maven is used as a dependency manager, Gherkin to describe scenarios clearly and legibly, and JUnit for test execution and validation. All of this is structured following the Page Object Model pattern, allowing for clean, reusable, and easily scalable code.

The tests are developed using the Swag Labs application, simulating a real user experience: from logging in with credentials, browsing the store, selecting and deselecting products, to verifying that navigation between pages is performed correctly. This demonstrates how automation can replicate common interactions and efficiently validate functionality.

Tools used in this project:

  • Language: Java
  • Test framework: JUnit
  • Web driver: Selenium
  • Design pattern: POM
  • File manager: Maven
  • Test Cases: Gherkin

📂 Project Documentation