This project includes API tests for Swagger Petstore, written using Playwright. In addition, tests in the Postman environment are included with the project.
/swagger-petstore
├── .github
│ └── workflows
│ └── playwright-tests.yml
├── data
│ └── login.data.ts
├── env
│ └── .env
│ └── global.ts
├── postman
│ ├── Swagger-Petstore-Pet.postman_collection.json
│ ├── Swagger-Petstore-Store.postman_collection.json
│ ├── Swagger-Petstore-User.postman_collection.json
│ └── environment
│ └── Swagger-Petstore.postman_environment.json
├── tests
│ └── api
│ └── pet-GET-fine-by-status.spec.ts
├── .eslintrc.json
├── .gitignore
├── .prettierignore
├── .prettierrc.json
├── package-lock.json
├── package.json
├── playwright.config.ts
└── README.md
- Clone repository:
git clone https://github.com/adamcegielka/swagger-petstore.git
- Install dependencies:
npm install
- Run tests:
npm run test
- Import collections into the Postman:
Swagger-Petstore-Pet.postman_collection.json
Swagger-Petstore-Store.postman_collection.json
Swagger-Petstore-User.postman_collection.json
- Import environment into the Postman:
Swagger-Petstore.postman_environment.json
- Run the collection in Postman.
- Rest API Testing (Automation) with Playwright & TypeScript
- Playwright: API Testing
- Playwright with Javascript | Rest API Testing | HTTP Requests |Get,Post,Put & Delete
- Postman od podstaw - testowanie REST API - Udemi
- Postman - testowanie REST API - Udemi
- Postman (REST API) - AkademiaQA
- How to write automated tests with Postman
- How to automate API Tests with Postman
- Learn JavaScript for Postman API testing - Full Course for Beginners
Author: Adam Cegiełka
Happy API testing!