0% found this document useful (0 votes)
40 views9 pages

Load Testing

Load Testing

Uploaded by

Sneha Ghosh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views9 pages

Load Testing

Load Testing

Uploaded by

Sneha Ghosh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

BUG RESISTANCE

LOAD
Testing
Load Testing is a type of Performance Testing that
determines the performance of a system, software
product, or software application under real-life based
load conditions. Basically, load testing determines the
behavior of the application when multiple users use it at
the same time. It is the response of the system measured
under varying load conditions. The load testing is carried
out for normal and extreme load conditions.
BUG RESISTANCE

Objectives of Load Testing


• To maximize the operating capacity of a software application.

• To determine whether the latest infrastructure is capable to


run the software application or not.

• To determine the sustainability of application with respect to


extreme user load.

• To find out the total count of users that can access the
application at the same time.

• To determine scalability of the application.

• To allow more users to access the application.


BUG RESISTANCE

Load Testing Tools


Here is the list of some of the popular Load Testing tools
that are available in the market.The choice of a Load Testing
Tool depends entirely on your project needs like time,
budget, etc.

• StresStimulus
• LoadNinja
• WebLOAD
• Apache JMeter
• LoadRunner
• LoadView
• NeoLoad
• AppLoader
• RedLine13
• SilkPerformer
• Rational Performance Tester by IBM
• SmartMeter
• BlazeMeter
BUG RESISTANCE

Load Testing Tools JMeter


The Apache JMeterTM is pure Java open source software,
which was first developed by Stefano Mazzocchi of the
Apache Software Foundation, designed to load test
functional behavior and measure performance. You can use
JMeter to analyze and measure the performance of web
application or a variety of services. Performance Testing
means testing a web application against heavy load,
multiple and concurrent user traffic. JMeter originally is
used for testing Web Application or FTP application.

Stefano Mazzocchi
BUG RESISTANCE

Load Testing Tools Mathematical Thinking

Total no. of user: 4lakh


Peak hour : 08AM to 08PM

No. of user : 400000


Time: 12*60*60=43200

Thread: 9.2 user / second

92 user in 10 second
BUG RESISTANCE

What is Test Plan Test Group


Load Testing Tools
A Test Plan can be viewed as a container for running tests. It Thread Groups is a collection of Threads. Each thread represents one
defines what to test and how to go about it. A complete test user using the application under test. Basically, each Thread simulates
plan consists of one or more elements such as thread one real user request to the server. The controls for a thread group
groups, logic controllers, sample-generating controllers, allow you to Set the number of threads for each group.
listeners, timers, assertions, and configuration elements. A
test plan must have at least one thread group. Samplers
Samplers in JMeter are added as a child of Thread Groups. These are
used to send different types of requests to the server. Once, the
sampler request is processed by the server, its response is returned to
JMeter and the same can be viewed and analyzed in terms of different
performance parameters like response time, Hits per second,
throughput, etc.

Different Types of Samplers


Let’s now see the different types of Sampler provided by JMeter. Some
of the most widely used Sampler in JMeter is-
• HTTP Request – Used to send HTTP/HTTPS requests to server. This
is the most widely used sampler for testing Web-based applications.
• JDBC Request – Used to send SQL queries to a database server.
• SOAP/XML-RPC Request – Used to send SOAP requests to a SOAP
web service.
• Test Action – This is a special type of Sampler, which doesn’t send a
request to the server instead it is used to introduce pauses in a test.
• FTP Request – Used to send file put and get requests to an FTP
server.
BUG RESISTANCE

Calling a Get API


Load Testing Tools
•Add a Thread Group:
•TestPlan->Add-> Threads->Thread Group
•Add a HTTP Request:
•Thread Group->Add->Sampler->HTTP Request
•Rename the HTTP Request name
•Fill-up the following properties
•Protocol: http or https
•Server Name or IP: demoqa.com
•Port Number: 80 or 443
•Method: GET
•Path: /BookStore/v1/Books
BUG RESISTANCE

Add Listener
Load Testing Tools
View Result Tree
Thread Group->Add->Listener->View Result Tree

Check:
Request->Request Body, Request Header
Response Data->Response Body, Response Headers

Summary Report
Thread Group->Add->Listener->Summary Report
Check:
Average, Min, Max, Std. Dev, Error%,
Throughput(num of req/response time)
BUG RESISTANCE

JMeter Technical Term


Load Testing Tools • Response Time: Client is sending request to server and the
server processed the request and send back again to
client.

• Latency: Latency is the duration that a request is waiting to


be handled.

Mathematical Explanation:
Client request to server = it takes 1 sec
Server Process the Requests= it takes 2 sec

Latency = 1 sec + 2 sec-> = 3 sec is Latency

Response Time= 1 sec + 2 sec + back to Client -> 2 sec = total 5 sec (Round Trip
time)

Latency also called as Network Latency or Network Delay

• Throughput: The amount of request server is processing in


Per Second is called Throughput.

You might also like