Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 842 Bytes

README.md

File metadata and controls

42 lines (28 loc) · 842 Bytes

Comparing API Testing with Postman (& Newman), Playwright, and Jest/Axios

This presentation was created for the Automation Guild 2024

I am using the free tier of the Weather Api from WeatherApi.com To demonstrate ways to test this api using the three different toolsets.

Setup

To run the tests yourself, obtain an account and API key from Weather API, then create your own .env file:

cp .env.sample .env.

Place your personal API key as the value in that new .env file.

Now install your dependencies:

npm install

Running Test

Each toolset has an npm script to make running straightforward:

Jest

npm run test:jest

Postman/Newman

npm run test:postman

Playwright

npm run test:pw