An open API service indexing awesome lists of open source software.

https://github.com/darvinpatel/playwright-demo-api

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.
https://github.com/darvinpatel/playwright-demo-api

playwright-api playwright-demo playwright-tests playwright-typescript typescript

Last synced: about 2 months ago
JSON representation

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.

Awesome Lists containing this project

README

        


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:

- Playwright https://playwright.dev/
- TypeScript https://www.typescriptlang.org/

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

```shell
npm run test
```
### Run all tests and show test report
```shell
npm run report
```
### Run smoke tests
```shell
npm run smoke-tests
```
### Run api tests for get operation
```shell
npm run test-get
```
### Run api tests for post operation
```shell
npm run test-post
```
### Run api tests for put operation
```shell
npm run test-put
```
### Run api tests for patch operation
```shell
npm run test-patch
```
### Run api tests for delete operation
```shell
npm run test-delete
```