Giter Site home page Giter Site logo

ehasan101 / bookstoreapi-api_testing Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 12 KB

In this repository there are API test automation using Postman & Newman for Book Store API web-service. This testing to ensure the APIs are working functioning as expected.

api-automation-testing api-testing functional-testing newman postman test-reports

bookstoreapi-api_testing's Introduction

API_Testing-Project


API Testing for Book Store API with Postman

This project is on API testing with Postman for the Book Store API web-service. It's evaluating the APIs are working functionality and usability as expected.

How to run this project!

  1. Install Postman.
  2. Install Node.js.
  3. Download Project file.
  4. Now Import collection & environment file into Postman:
    file > import > choose the method > press 'import'
  5. Run Desired API request.

Run on cmd

  1. Open cmd on project folder or move to project folder cd Downloads/project_file
  2. Run the follwing command Install newman npm install -g newman
  3. Now newman run "Book Store API.postman_collection.json" -e BookStoreAPI.postman_environment.json
  4. If want to export test results
    first install them
    npm install -g newman-reporter-html
    and npm install -g newman-reporter-htmlextra
  5. Now run follwing command for report
    newman run "Book Store API.postman_collection.json" -e BookStoreAPI.postman_environment.json -r cli,htmlextra

HTTP Status Codes

HTTP status code are 3 digit number which a server response to a browser’s request. Those are divided into 5 categories.

1xx - Informational Purpose
2xx - Success
3xx - Redirection
4xx - Client Errors
5xx - Server Errors

http_status_code

Working Scenarios & What I have done in this Testing!

  • Accounts
    • Create User [POST method]
    • Generate Token [POST method]
    • Authorized [POST method]
  • BookStoreManagement
    • Book Assign to user [POST method]
    • Update Book [PUT method]
    • Get Current Book [GET method]
  • Get User-Book [GET method]
  • Delete Book [DEL method]
  • Delete User [DEL method]
    [Positive and Negative case both are created]

Test Report with Newman :

A Newman report has been generated for the API test

  1. HTML Report Link

  2. Snapshots:

  • Summary Report Summary_1 Summary-2
  • Total Requests Total
  • Failed Requests Failed

⚠️ if you face any type of image broken/missing issue, please refresh this web page again.

#Happy_Testing


bookstoreapi-api_testing's People

Contributors

ehasan101 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.