This repository includes a set of practical automation tasks implemented with:
- Java 17 The primary programming language for writing test scripts.
- Maven For build and dependency management
- JUnit 5 The testing framework for structuring and running unit tests.
- Selenium WebDriver Used for web browser automation and executing test scenarios, specifically in Google Chrome.
- Page Object Model: Implemented with
@FindByannotations for efficient web element localization.
The tests automate paste creation on https://paste.ee and implement string analysis logic with test coverage.
Scenario:
Create a new paste with the following parameters:
Code: "Hello from WebDriver"
Paste Expiration: "10 Minutes"
Title: "helloweb"
Validate that the paste is created and the title is correct
- Paste content:
git config --global user.name "New Sheriff in Town" git reset $(git commit-tree HEAD^{tree} -m "Legacy code") git push origin master --force
Syntax: Bash
Expiration: "10 Minutes"
Title: "how to gain dominance among developers"
Validate title, syntax display, and paste content
Implement methods to find:
Longest sequence of non-repeating adjacent characters
Longest sequence of repeated Latin letters
Longest sequence of repeated digits
Covered with unit tests
Test design follows AAA (Arrange–Act–Assert) and FIRST principles
Using terminal:
Navigate to the root of the project and run:
mvn clean test