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

https://github.com/elaichenkov/playwright-api-testing-example

This repository is created to demonstrate how easily can be using Playwright Test runner and odottaa for creating API tests. Check out the generated HTML report 👇
https://github.com/elaichenkov/playwright-api-testing-example

api-testing assertions example how-to odottaa playwright typescript

Last synced: about 1 month ago
JSON representation

This repository is created to demonstrate how easily can be using Playwright Test runner and odottaa for creating API tests. Check out the generated HTML report 👇

Awesome Lists containing this project

README

        


An example of how to set up and run API tests with Playwright and odottaa


sloth

---
[![test](https://github.com/elaichenkov/playwright-api-testing-example/actions/workflows/playwright.yml/badge.svg)](https://github.com/elaichenkov/playwright-api-testing-example/actions/workflows/playwright.yml)

Read my article about [API testing with Playwright & odottaa](https://elaichenkov.medium.com/api-testing-with-playwright-odottaa-77451917342f).

Check out the [HTML report](https://elaichenkov.github.io/playwright-api-testing-example) that was published on GitHub pages.

## Usage

Clone the repository and run the following command:

```sh
npm install
```

## Run tests

```sh
npm test
```

Then, to open report run the following command:

```sh
npm run report
```

It will open default browser and open the HTML report

![html report](assets/html-report.png)

## Run server (optionally)

```sh
npm start
```

## Author

Yevhen Laichenkov

## License

[MIT](LICENSE)