Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/himu143/api-automation-on-dmoney-by-axios


https://github.com/himu143/api-automation-on-dmoney-by-axios

axios javascript javascript-library mocha-chai mocha-reporter testcases visual-studio-code

Last synced: 15 days ago
JSON representation

Awesome Lists containing this project

README

        

# API-Automation-On-Dmoney-By-Axios
## Project scenario:
1. Call login API
2. Create a new customer and an agent
3. Search by the customer phone number
4. Deposit 5000 tk to the Agent from system
5. Deposit 2000 tk by agent to customer
6. Check balance of customer
7. Check statement by trnxId
8. Withdraw 1000 tk by customer and assert expected balance
9. Send 500 tk to another customer and assert expected balance
10. Check customer statement

## Technology and Tools used:
- Java Script
- Visual Studio Code
- Mochawesome
- Axios
- JS Faker Library

## How to run this project:
- Clone this project
- Open with VS code
- Hit the following command:
- npx mocha --timeout=30000 .\test\*.test.js
- For generate Mochawesome Report :
- npm test file .\test\*.test.js

## Test Cases:
- https://docs.google.com/spreadsheets/d/1z_YRpaBWZZ0RfGorGzfLSb2ToxBJe3mEZ47jQ7PEjgA/edit?usp=sharing

## Mochawesome Report:
![image](https://user-images.githubusercontent.com/78273243/229709919-0bffc13a-f9ab-4029-af44-4aed1631ab84.png)

## Video Output:

https://user-images.githubusercontent.com/78273243/229710196-a46a3c62-f52c-4b27-a438-5672096c5060.mp4