Skip to content

Mini Robot Framework project demonstrating UI testing with Playwright and API testing with RequestsLibrary, fully Docker-ready.

Notifications You must be signed in to change notification settings

st2f/robot-framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Robot Framework Mini Project

This repository contains a small Robot Framework project demonstrating both UI and API testing using Docker.

Project Structure

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

Features

  • 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.

How to Run

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

Reporting

rf-report rf-log

About

Mini Robot Framework project demonstrating UI testing with Playwright and API testing with RequestsLibrary, fully Docker-ready.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published