Skip to content

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

Notifications You must be signed in to change notification settings

stephenkilbourn/api_testing_demo

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published