Skip to content

Repository files navigation

Tests on the ServeRest API

API testing using Postman, node and newman (ServeRest documentation)

Technologies used

  • Postman
  • node v21.7.3
  • newman 6.1.2
  • newman-reporter-htmlextra

Environment settings

  1. Install node
# installs NVM (Node Version Manager)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
 
# download and install Node.js
nvm install 21.7.3
  1. Install newman
npm install -g newman
  1. Install newman-reporter-htmlextra
npm install -g newman-reporter-htmlextra

Run the tests

Through the Postman

  • Import the environment and collection
  • Run tests manually or automatedly

Through the newman

  • Results in CLI
newman run serveRest.postman_collection.json -e serveRest_env.postman_environment.json -r cli
  • Results in CLI and HTML page
newman run serveRest.postman_collection.json -e serveRest_env.postman_environment.json -r cli,htmlextra

Report

  • To access the HTML page, simply access the "newman" folder generated in the root directory

About

Automated API testing project for ServeRest using Postman, Node.js and Newman.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors