Skip to content

This repository provides a complete setup for automated testing of the GoREST API using Postman and Newman. Each test case validates various API endpoints with positive and negative scenarios. Newman is used to automate test execution from the command line and generate detailed reports, making this setup ideal for integration into CI/CD pipelines.

Notifications You must be signed in to change notification settings

PapriSaha/GoREST-Newman-REST-API-Automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoREST REST API Automation Testing with Postman and Newman

This project demonstrates automated API testing with Postman and generates reports using Newman for the GoREST API server. It includes a suite of tests designed to validate various API endpoints, covering CRUD operations and ensuring robust, accurate performance across user, post, comment, and todos functionalities.

Project Scenario

  1. Users API
  • Creating a new user with valid and invalid data.
  • Retrieving user lists and validating pagination.
  • Updating and partially updating users.
  • Handling requests with invalid or blank JSON payloads.
  1. Posts API
  • Creating posts for users and validating content fields.
  • Retrieving posts with search filters like title and body.
  • Updating and patching posts.
  • Checking post retrieval with various pagination and search parameters.
  1. Comments API
  • Posting comments with various field checks.
  • Retrieving comments by post ID and filtering with parameters.
  • Updating and patching comments.
  1. Todos API
  • Creating todos for users with valid and invalid parameters.
  • Retrieving todos and validating fields like title, due_on, and status.
  • Updating and partially updating todos.
  1. Delete Operations
  • Deleting users, posts, and comments, and validating with both valid and invalid IDs.

How to run this project

  • clone this repository
  • give this command
    • npm i
    • npm run report

Pre-condition

  • Node.js must be installed
  • Newman
  • Newman HTML Report Library

Technology used

  • Postman
  • Newman

API Documentation

Newman Report Summary

Newman-Summary-Report

Total-Requests-1

Total-Requests-2

Total-Requests-3

Total-Requests-4

Total-Requests-5

Failed-Tests

Skipped-Tests

License

This project is open-source and available under the MIT License.

Contributing

Feel free to submit issues, fork the repository, and send pull requests. Please ensure your contributions align with the project goals of comprehensive API validation.

About

This repository provides a complete setup for automated testing of the GoREST API using Postman and Newman. Each test case validates various API endpoints with positive and negative scenarios. Newman is used to automate test execution from the command line and generate detailed reports, making this setup ideal for integration into CI/CD pipelines.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published