Coder Social home page Coder Social logo

zafir100100 / api-automation-on-dmoney-api-using-axios Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 64 KB

This is a Git repository for automating API testing on Dmoney API using Axios. The repository contains JavaScript files that send HTTP requests to the Dmoney API endpoints and test their responses. Axios is used to handle the requests and responses. The tests cover various scenarios and provide detailed assertions on the expected responses.

JavaScript 100.00%
api-rest axios javascript javascript-library mochawesome-report

api-automation-on-dmoney-api-using-axios's Introduction

API-Automation-on-Dmoney-API-using-Axios

Axios is a popular JavaScript library that is commonly used for making HTTP requests from a web browser or Node.js. Axios makes it easy to send asynchronous HTTP requests to REST endpoints and perform CRUD (Create, Read, Update, Delete) operations on resources.

Axios is often used for API automation because it provides a simple and elegant API for making HTTP requests and handling responses. It supports various features like request and response interceptors, automatic transformation of JSON data, cancellation of requests, and much more.

Technology Used:

  • Axios
  • Java Script
  • Visual Studio Code
  • Mochawesome

How to run this project:

  • Clone this project
  • hit the following command: npm test file .\test\*.test.js
  • for Mochawesome Report: --reporter mochawesome --reporter-options reportDir=Reports,reportFilename=report.html

Project Scenerio:

  • Call login API
  • Create a new customer and an agent
  • Search by the customer phone number
  • Deposit 5000 tk to the Agent from system
  • Deposit 2000 tk by agent to customer
  • Check balance of customer
  • Check statement by trnxId
  • Withdraw 1000 tk by customer and assert expected balance
  • Send 500 tk to another customer and assert expected balance
  • Check customer statement

Test case Report based on Scenerio:

Mochawesome Report:

Screenshot (46)

Video Output:

2023-03-28.00-12-33.mp4

api-automation-on-dmoney-api-using-axios's People

Contributors

zafir100100 avatar

Watchers

 avatar  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.