Skip to content

Latest commit

 

History

History
26 lines (14 loc) · 789 Bytes

README.md

File metadata and controls

26 lines (14 loc) · 789 Bytes

API Automation with Playwright and Typescript (Page Object Model)

This project demonstrates how to automate API testing using Playwright and Typescript with the Page Object Model (POM) structure. The API services used in this project are from Dummy JSON. This project covers basic GET, POST, and DELETE API requests and tests their responses.

Setup

  1. Clone the repository:

git clone https://github.com/your-repo/api-automation-playwright.git cd api-automation-playwright

  1. Install the project dependencies:

npm install

  1. Install Playwright browsers (if not installed):

npx playwright install

How to Run Tests

  1. To run the tests using Playwright:

npx playwright test

  • For special run : npx playwright test tests/getAllProducts.test.ts