This repository contains example scripts for API test automation using:
- INGenious Playwright Studio
- Examples of GET, POST, and Protected API requests.
- Clear demonstration of test automation practices with assertions and chaining requests.
- Fully automated CI pipeline using GitHub Actions.
All examples in this repository are designed to work with the Practice Software Testing API, a publicly available API for learning and practicing software testing. You can explore the API documentation and endpoints here:
👉 Practice Software Testing API 👈
- GET Request: Fetch a list of brands with
GET /brands
. - Login API: Authenticate using
POST /login
with an email/password payload. - Protected API Request: Authenticate, then use a token to fetch data with
GET /invoices
.
- INGenious Playwright Studio
- Clone this repository:
git clone https://github.com/testsmith-io/api-test-automation-ingenious-playwright-studio.git
- Navigate to the project directory:
cd api-test-automation-ingenious-playwright-studio
- Open INGenious Playwright Studio and run the tests:
-
Windows
Double click on the
Run.bat
in the framework location -
Mac or Ubuntu
- Open Terminal in the installation location and then type
chmod +x Run.command
- Then double click on the
Run.command
- If you see It's Downloaded From Internet warning then enter the following command in terminal:
xattr -d -r com.apple.quarantine "/path/to/the framework"
The repository includes a GitHub Actions workflow to automatically execute the tests.