Skip to content

Automated testing framework for a RESTful booking API using Postman collections with Newman. This repository contains scripts, configurations, and reports for reliable API functionality testing.

Notifications You must be signed in to change notification settings

Anik16298/Booking-API-using-postman-with-newman-report

Repository files navigation

API Testing Project: Booking_API

This repository showcases API testing for booking functionalities using Postman and Newman. The focus is on creating, retrieving, updating, and deleting bookings through specific API endpoints.

Testing Tools

Postman: Used for sending API requests, managing test collections, and inspecting responses.

Newman: Utilized to run tests from the command line and generate reports in different formats (e.g., HTML, JSON).

Testing Coverage

CRUD Operations: The project encompasses tests for the following functionalities ->

Create Booking (POST)

Get Booking (GET)

Token (POST)

Update Booking (PUT)

Checking After Update(GET)

Delete Booking(DELETE)

Checking After Delete Booking (GET)

Files/Folders Info

Batch-26.postman_environment.json: This file holds my postman test project environment data.

Batch_26.postman_collection.json: This file holds Postman collections of my different testing scenarios.

Newman_Command.txt: This file contains Newman reports generate commands.

Newman_Report: This folder contains Newman-generated test reports.

My API Testing Coverage

Create_Booking:

Create Booking is typically used to send a POST request to a server to create a new booking or reservation. This POST request includes the necessary data (such as Guest details, Price, Dates, Needs etc.) in the request body, allowing the server to process and create a new booking entry in its database.

Create Body

Create_prerequest script

Create_postrequest script

Get_Booking:

In Postman, a GET method is used to retrieve data from a server or API endpoint. It fetches information from the server without modifying anything, allowing users to view or read data such as user profiles, product listings, or any other resource available on the server.

Get

User_Auth(Token):

In Postman, an Auth method is used to authenticate and authorize access to protected resources on a server or API endpoint. It allows users to include authentication tokens, API keys, or credentials in the request headers to verify their identity and gain access to restricted data or operations.

Auth

Update_Booking:

Update method is used to send a PUT or PATCH request to a server to modify existing data or resources. It allows users to update specific fields or properties of a resource without replacing the entire resource, ensuring efficient and targeted updates to the server's data.

Updatebooking

Verify_Update:

verify update request API" is used to confirm the successful update of a resource. It involves sending a PUT or PATCH request to modify the resource and then sending a subsequent GET request to ensure that the changes have been applied correctly on the server. This verification step helps ensure the accuracy and completion of the update process.

Verifyupdate

Delete_Booking:

Delete method is used to send a request to a server or API endpoint to remove a specific resource. It allows users to delete data entries, records, or other resources from the server's database or storage, effectively removing them from the system.

Delete

Verify_Delete:

Verify delete method" is typically used to confirm the successful deletion of a resource. It involves sending a DELETE request to remove the resource and then sending a subsequent GET request to ensure that the resource has been properly deleted from the server. This verification step helps ensure the accuracy and completion of the deletion process.

Verifydelete

Postman_Environment

Environment is used to store and manage variables that can be used across requests in a collection. It allows users to define values such as URLs, API keys, and authentication tokens once and use them dynamically in multiple requests, making it easier to manage and maintain API tests and configurations.

Environment

Newman_RunCommand

Newman Run Command is used to execute API collections from the command line using the Newman tool. It allows users to automate the execution of tests, run them in CMD pipelines, and generate detailed reports, enhancing the efficiency and scalability of API testing processes.

Newman_RunComand

Newman_Report

Newman report" feature is used to generate detailed test reports for API collections run using the Newman command-line tool. It provides a summary of test results, including pass/fail statuses, response times, and error details, allowing users to analyze and share test results with team members or stakeholders.

Newman_Report

Newman_Report2

About

Automated testing framework for a RESTful booking API using Postman collections with Newman. This repository contains scripts, configurations, and reports for reliable API functionality testing.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages