This repository contains automated UI tests for the login functionality of the-internet.herokuapp.com, implemented in Java 17 using Selenium WebDriver and JUnit 5.
Each test is structured, validated, and followed by a screenshot for visual reporting.
The test suite covers the following scenarios:
- ✅ Successful login
- ❌ Invalid password
- 🕳 Empty login & password fields
- 🔁 Logout after successful login
Each test captures a screenshot into /screenshots/ using the test name.
- Java 17
- Maven
- Selenium WebDriver
- JUnit 5
- ChromeDriver
- GitHub
| # | Test Case | Status |
|---|---|---|
| 1 | Successful login | ✅ |
| 2 | Invalid password | ✅ |
| 3 | Empty username & password | ✅ |
| 4 | Logout after successful login | ✅ |
qa-the-internet-java-autotest/
├── pom.xml
├── README.md
├── screenshots/
│ ├── 01_successful_login.png
│ ├── 02_invalid_password.png
│ ├── 03_empty_fields.png
│ └── 04_logout_flow.png
└── src/
└── test/
└── java/
└── com/
└── theinternet/
└── login/
└── LoginTest.java
🔗 View test code → LoginTest.java
- Install Java 17+, Maven, and Chrome
- Clone this repository
- Run tests with:
mvn test- Screenshots will be saved automatically to
/screenshots/



