Skip to content

rashadkhan97/Peformance-Testing-Using-JMeter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Performance Testing Using JMeter - Testing Project

Content

Introduction

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.

Test Case Scenario

Test Cases Scenario - Restful-Booker

Create a Collectio of APIs (JMeter Collection) of Login API, Create Booking API, and Search API HTTP requests

1. Add the following properties to the Header Controller:

Accept: */*

2. Login

Pre-request Script:

body:
    {
        "username": "admin",
        "password": "password123"
    }

3.Create Booking

Pre-request Script:

body:
   {
    "firstname": "Generate Random FirstName",
    "lastname": "Generate Random LastName",
    "totalprice": Generate random amount,
    "depositpaid": true,
    "bookingdates": {
    "checkin": "2024-01-01",
    "checkout": "2024-01-02"
    }
}

4.Search Booking

and Scenario: 120,000 users over a 12-hour period log in, create a booking, and search for the booking.

Test Cases Scenario - DMoney Transaction APIs

The Dmoney API collection:

  1. Admin creates an Agent, 2 random Customers, and a Merchant.
    • Admin email: admin@roadtocareer.net Password: 1234
  2. Deposit some money from the SYSTEM account to the Agent.
    • System account: SYSTEM Range: 10 TK to 10,000 TK
  3. Agent deposits money to one of the Customers.
    • Hint: fromAc: Agent, toAc: Customer
  4. Then, send money from one Customer to another Customer.
    • Hint: fromAc: Customer, toAc: Customer
  5. Make a payment from the second Customer to the Merchant.
    • Hint: fromAc: Customer, toAc: Merchant

Scenario:

○ 5 agents perform deposits for 10 customers. ○ 5 customers send money to another 10 customers. ○ 5 customers make payments to 2 merchants.

How to run this project

Using JMeter:

  • 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

Using CLI Mode:

  • 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

Technology Used

Load and Stress Test Excel Report

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**

HTML Report Generate

Generated HTML report for Load Test

image

Generated HTML report for Stress Test

image

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

Generated HTML report for DMoney Jmeter Collection Test

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors