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

https://github.com/monikakonieczna/playwright-ts-api-testing

API Tests Automation Practice with Playwright.
https://github.com/monikakonieczna/playwright-ts-api-testing

api-testing playwright-api playwright-typescript test-automation-practice

Last synced: 3 months ago
JSON representation

API Tests Automation Practice with Playwright.

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
```