Skip to content

This project showcases API testing using Playwright, focusing on testing RESTful endpoints, validating HTTP requests and responses, and automating workflows. It includes examples of integration testing, status code checks, and response payload validation, with easy-to-read test reports.

License

Notifications You must be signed in to change notification settings

darvinpatel/playwright-demo-api

Repository files navigation

Practice api test automation with Playwright Logo on Restful-booker

Note

  • Restful-booker is a public REST API that you can use to learn more about API Testing or try out API testing tools against. Restful-booker is a Create Read Update Delete Web API that comes with authentication features and loaded with a bunch of bugs for you to explore.

PLaywright features

API testing using:

This tests are purely for Playwright features practice.

Getting Started

Prerequisites

You need to have Node.js installed on your machine.

Useful Commands

Run all tests in Playwright

npm run test

Run all tests and show test report

npm run report

Run smoke tests

npm run smoke-tests

Run api tests for get operation

npm run test-get

Run api tests for post operation

npm run test-post

Run api tests for put operation

npm run test-put

Run api tests for patch operation

npm run test-patch

Run api tests for delete operation

npm run test-delete

About

This project showcases API testing using Playwright, focusing on testing RESTful endpoints, validating HTTP requests and responses, and automating workflows. It includes examples of integration testing, status code checks, and response payload validation, with easy-to-read test reports.

Topics

Resources

License

Stars

Watchers

Forks