adamcegielka / swagger-petstore

Improving skills in REST API testing.

Home Page:https://petstore.swagger.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Playwright.dev Playwright.dev Postman

Swagger Petstore API Testing Project

This project includes API tests for Swagger Petstore, written using Playwright. In addition, tests in the Postman environment are included with the project.

Project structure

/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

Playwright tests:

  1. Clone repository: git clone https://github.com/adamcegielka/swagger-petstore.git
  2. Install dependencies: npm install
  3. Run tests: npm run test

Postman tests:

  1. Import collections into the Postman:
    • Swagger-Petstore-Pet.postman_collection.json
    • Swagger-Petstore-Store.postman_collection.json
    • Swagger-Petstore-User.postman_collection.json
  2. Import environment into the Postman:
    • Swagger-Petstore.postman_environment.json
  3. Run the collection in Postman.

Tutorials

Author

Author: Adam Cegiełka
Happy API testing!

About

Improving skills in REST API testing.

https://petstore.swagger.io/


Languages

Language:TypeScript 87.3%Language:Shell 12.7%