This repository contains a small Robot Framework project demonstrating both UI and API testing using Docker.
tests/
├── api/
│ └── reqres_users.robot # API test using RequestsLibrary
├── ui/
│ └── saucedemo_login.robot # UI test using Playwright (Browser library)
├── resources/
│ └── variables.robot # Shared variables for tests
- UI Test: Automates login and adding items to cart on Sauce Demo using Playwright.
- API Test: Retrieves a list of users from Reqres using RequestsLibrary.
- Docker Ready: Tests can be run in a Docker container without installing dependencies locally.
- Headless Browser: UI tests run in headless mode for CI/CD compatibility.
Make sure you have Docker installed, then run:
# Individual tests
docker run --rm -v $(pwd)/tests:/tests robot-browser api/reqres_users.robot
docker run --rm -v $(pwd)/tests:/tests robot-browser ui/saucedemo_login.robot
# All tests
docker run --rm -v $(pwd)/tests:/tests robot-browser /tests