- Introduction
- Test Case Scenario
- How to Run This Project
- Technology Used
- Load and Stress Test Excel Report
- HTML Report Generate
In the Performance testing test project - I have taken 2 APIs -
- 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 Collectio of APIs (JMeter Collection) of Login API, Create Booking API, and Search API HTTP requests
Accept: */*Request URL: https://restful-booker.herokuapp.com/auth
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:
admin@roadtocareer.netPassword:1234
- Admin email:
- Deposit some money from the SYSTEM account to the Agent.
- System account:
SYSTEMRange: 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/rashadkhan97/DMoney-REST-API-with-Newman-Report.git - Open Apache Jmeter
- From Jmeter Click on Open then open the JMX file
- Run the file
-
clone this project
https://github.com/rashadkhan97/DMoney-REST-API-with-Newman-Report.git -
**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 checkout the link, you will be directed to Google sheet and can see the results there.
Link: **Load Test and Stress Test Excel Sheet Link**
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%.


