Skip to content

This repository contains automated tests for Transaction API, covers major endpoints like create, update, retrieve & delete user.The tests include actions like depositing to agent, cash-In/cash-out to customers,making payments to merchants & Checking balance.These tests are developed using Postman & Newman ensuring validation of API's functionality

Notifications You must be signed in to change notification settings

sadmanpieal/Transaction-API-Testing

Repository files navigation

Transaction API Testing

This repository contains automated tests for the Transaction API. The tests are crafted using Postman and executed with Newman, ensuring comprehensive coverage and reliability of the API endpoints.

Table of Contents

Overview

The Transaction API provides a set of endpoints for managing financial transactions, including creating, updating, retrieving, and deleting transactions. This project automates the testing of these endpoints to ensure the API's functionality, reliability, and consistency.

API Endpoints Covered

The following API endpoints are covered in the automation:

Transactions

  • GET /transactions: Retrieve a list of all transactions.
  • GET /transactions/:id: Retrieve the details of a specific transaction.
  • POST /transactions: Create a new transaction.
  • PUT /transactions/:id: Update an existing transaction.
  • DELETE /transactions/:id: Delete a transaction.

For detailed API documentation, refer to the Postman documentation here.

Tools Used

  • Postman: Used for creating, organizing, and running the API test cases.
  • Newman: A command-line tool used to run Postman collections in various environments and integrate them into CI/CD pipelines.

Setup Instructions

Prerequisites

  • Node.js installed on your machine.
  • Newman installed globally:
    npm install -g newman
  • Postman installed for running and modifying the collections.

Cloning the Repository

Clone this repository to your local machine:

git clone https://github.com/sadmanpieal/Transaction-API-Testing.git
cd Transaction-API-Testing

Running the Tests

To run the tests using Newman, use the following command:

newman run Transaction-API.postman_collection.json

This command will execute the entire suite of tests against the Transaction API.

Running with HTML Report

If you wish to generate an HTML report after running the tests, use:

newman run Transaction-API.postman_collection.json -r html --reporter-html-export newman-report.html

The report will be saved as newman-report.html.

Screenshot 2024-08-02 195447

##Test Report https://docs.google.com/spreadsheets/d/1E29MZSOyZaeVR97Q3cnHiEBf8x-GJHDQ/edit?gid=1581453724#gid=1581453724

##Bug Report https://docs.google.com/spreadsheets/d/1Jb6S90nTIfhPxPG23Om_8bcPWzQ7DUso/edit?gid=1600159292#gid=1600159292

Project Structure

The repository is structured as follows:

Transaction-API-Testing/
│
├── Transaction-API.postman_collection.json   # Postman collection file containing all API requests and tests.
├── newman/                                   # Folder containing Newman reports and other artifacts (if applicable).
└── README.md                                 # Project documentation (this file).

Contributing

If you would like to contribute to this project, please fork the repository and submit a pull request. All contributions are welcome!

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

This repository contains automated tests for Transaction API, covers major endpoints like create, update, retrieve & delete user.The tests include actions like depositing to agent, cash-In/cash-out to customers,making payments to merchants & Checking balance.These tests are developed using Postman & Newman ensuring validation of API's functionality

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published