- Introduction
- Test Case Scenario
- How to Run This Project
- Technology Used
- Load and Stress Test Excel Report
- HTML Report Generate
For this project,
- Restful-Booker: A Books API for load testing and Stress testing
- Dmoney A Website Transaction API for API Chainning (JMeter Collection). Also, I have taken CSV data files to run multiple APIs using Three Threads (Deposit, SendMoney, and Payment) in Jmeter, For Transaction APIs.
-- Create a Collection of APIs (JMeter Collection) of Login API, Create Booking API, and Search API HTTP requests.
Accept: */*
Request URL:
Request URL: https://restful-booker.herokuapp.com/auth
Pre-request Script:
{
"body": {
"username": "admin",
"password": "password123"
}
}
Request URL: https://restful-booker.herokuapp.com/booking
○ Body:
{
"firstname": "Generate Random FirstName",
"lastname": "Generate Random LastName",
"totalprice": Generate random amount,
"depositpaid": true,
"bookingdates": {
"checkin": "2024-01-01",
"checkout": "2024-01-02"
}
}
and Scenario: 120,000 users over a 12-hour period log in, create a booking, and search for the booking.
- Admin creates an Agent, 2 random Customers, and a Merchant.
- Admin email:
[email protected]
Password:1234
- Admin email:
- Deposit some money from the SYSTEM account to the Agent.
- System account:
SYSTEM
Range: 10 TK to 10,000 TK
- System account:
- Agent deposits money to one of the Customers.
- Hint: fromAc:
Agent
, toAc:Customer
- Hint: fromAc:
- Then, send money from one Customer to another Customer.
- Hint: fromAc:
Customer
, toAc:Customer
- Hint: fromAc:
- Make a payment from the second Customer to the Merchant.
- Hint: fromAc:
Customer
, toAc:Merchant
- Hint: fromAc:
○ 5 agents perform deposits for 10 customers. ○ 5 customers send money to another 10 customers. ○ 5 customers make payments to 2 merchants.
-
clone this project
https://github.com/Prantika71/Performance_Testing_Using_JMeter
-
Open Apache Jmeter
-
From Jmeter Click on Open then open the JMX file
-
Run the file
- **For Booking APIs JMeter Collection:
jmeter -n -t .\Booking.jmx -l .\Booking.jtl -e -o Reports
- *For Booking APIs JMeter Collection:
jmeter -n -t .\Dmoney.jmx -l .\Dmoney.jtl -e -o Reports
- Jmeter: If you haven't already, download and install Jmeter -
- Search For Binaries: Then --> apache-jmeter-5.6.3.zip
- Postman: If you haven't already, download and install Postman.
For the Load test and Stress test Excel report check the link - view excel report file
Since this is a public server, while I was doing stress testing, the server behaved unexpectedly, and I couldn't execute stress tests properly. Whenever I increase the number of users above 4000, it suddenly shows an error rate of 0%, and after 10000 users, it shows an error rate above 1%. So for me finding a bottleneck becomes very difficult and I need to consider the bottleneck point at 4000 users with an error rate of 0.03%.