https://github.com/ra-hul/demo-transaction-api-jmeter
This project demonstrates how to use JMeter for testing a transaction API. The steps tested include creating an agent and customer, depositing and withdrawing balance,checking balances, and making payments.
https://github.com/ra-hul/demo-transaction-api-jmeter
api-testing html-report jmeter
Last synced: 5 months ago
JSON representation
This project demonstrates how to use JMeter for testing a transaction API. The steps tested include creating an agent and customer, depositing and withdrawing balance,checking balances, and making payments.
- Host: GitHub
- URL: https://github.com/ra-hul/demo-transaction-api-jmeter
- Owner: ra-hul
- Created: 2024-06-11T10:53:15.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-11T21:39:41.000Z (about 2 years ago)
- Last Synced: 2025-03-30T21:41:33.699Z (over 1 year ago)
- Topics: api-testing, html-report, jmeter
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Transaction API With Jmeter
# About
This project demonstrates how to use JMeter for testing a transaction API. The steps tested include creating an agent and customer,
depositing and withdrawing balance,checking balances, and making payments.
## Table of Contents
- [Test Scenarios](#test-scenarios)
- [Basic Info](#basic-info)
- [Steps for execute given scenarios](#steps-for-execute-given-scenarios)
- [Screenshot of html report](#screenshot-of-html-report)
## Basic Info
1. **baseUrl: dmoney.roadtocareer.net**
2. **content-type: application/json**
3. **constant timer:2000 milliseconds (which is used for create a delay between per request)**
4. **Command for CLI to generate reports: jmeter -n -t Filename.jmx -l Filename.jtl -e -o Reports**
## Test Scenarios
The following test scenarios are implemented using JMeter:
1. **Admin creates an agent and a customer.**
2. **Deposit 2000 TK to agent from the system account (fromAc: SYSTEM).**
3. **Deposit 1000 TK to customer from agent account.**
4. **Check balance from customer account.**
5. **Withdraw 500 TK from customer account.**
6. **Payment of 200 TK from customer account (create any merchant acc or search for a merchant for payment).**
## Steps for execute given scenarios
The following steps are covered during design and execute the given scenarios
1. **Added a Thread Group under the test plan**
2. **Added HTTP Header Manager,User defined Variables,Constant Timer Under the thread group**
3. **Added HTTP Requests with POST Method,Those are: For Admin Login,For admin creates an agent,customer and merchant,To deposit to agent from system, deposit to customer from agent account,
withdraw from customer account and payment to customer account**
4. **Added HTTP Request with GET Method to check customer balance**
## Screenshot of html report
