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

JMeter: Performance Testing Overview

JMeter is an open source load testing tool that can perform various types of testing including load, performance, and functional testing on web applications. It simulates heavy user load by creating many virtual users and measuring how the application responds. Key advantages are that it is free, platform independent, has robust reporting capabilities, and supports many protocols. Potential disadvantages are that it consumes more memory under heavy load and has limited support for processing JavaScript. JMeter tests are created by developing test plans with thread groups, samplers, and listeners. Assertions can be used to validate responses meet expectations for aspects like content, size, duration and XML/HTML syntax.

Uploaded by

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

JMeter: Performance Testing Overview

JMeter is an open source load testing tool that can perform various types of testing including load, performance, and functional testing on web applications. It simulates heavy user load by creating many virtual users and measuring how the application responds. Key advantages are that it is free, platform independent, has robust reporting capabilities, and supports many protocols. Potential disadvantages are that it consumes more memory under heavy load and has limited support for processing JavaScript. JMeter tests are created by developing test plans with thread groups, samplers, and listeners. Assertions can be used to validate responses meet expectations for aspects like content, size, duration and XML/HTML syntax.

Uploaded by

Simona Pitam
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

JMETER

Simona Pitam
What is Jmeter
❏ Stefano Mazzocchi of the Apache Software Foundation first designed it.
❏ Nowadays, JMeter has become one of the most popular testing tools in the world, beside Selenium and
Load Runner.
❏ JMeter is an software that can be used to execute performance testing, load testing and functional
testing of your web applications.

❏ JMeter can also simulate a heavy load on a server by creating tons of virtual concurrent users to web
server.

Simona Pitam
Advantages of using Jmeter
❏ It is an open source tool as I mentioned [Link] developer can use its source code, can modify and
customize it as per their requirement. They can also contribute their code to make a better JMeter.
❏ Ease of Use: The user can install and use JMeter easily. Just download it from internet, install and run.
As a pure Java desktop application, it comes ready to use with default settings.
❏ Platform independent: JMeter is developed in Java, which is the most popular programming language
in the world. Therefore, it can run in any OS be it Window, Linux or Mac.
❏ Robust Reporting: JMeter can generate the effective reporting. The test result can be visualized by
using Graph, Chart, and Tree View. JMeter supports different formats for reporting like text, XML,
HTML and JSON.
❏ Ultimate Testing: With JMeter, user can do any kind of testing they want. Load Test, Stress Test,
Functional Test, Distributed Test, all in one tool.
❏ Multi Protocol Support: JMeter supports several protocols like HTTP, FTP, SOAP, JDBC, JMS, and
LDAP. It can also be used for testing the performance of your database.

Simona Pitam
Disadvantages of using Jmeter
❏ Memory Consumption: JMeter can simulate heavy load and visualize the test report. This may

consume lots of memory and can lead out of memory under heavy load.

❏ Web application only: JMeter is good tool for testing web application but it is not a suitable tool for

testing desktop application.

❏ Lack of support for JavaScript: JMeter is not a browser, so it cannot run JavaScript in the web

application. It has limited support for processing JavaScript or Ajax, this may affect the accuracy of

simulation.

Simona Pitam
Install Jmeter
❏ Check the java version is installed on your system - java - version

❏ Download Jmeter from internet

❏ Unzip & Keep jmeter Folder on some place

❏ Start Jmeter

❏ On Windows- Go to the Jmeter Folder & Run [Link]

❏ On Linux - From the terminal & Run the following from where jmeter folder is - #sh [Link]

Simona Pitam
How to Create First Jmeter Test
❏ Start Jmeter

❏ Create a Test Plan

❏ Create a Thread Group Users

❏ Add a sampler (http:)

❏ Add Listeners

❏ Run the Test

Simona Pitam
Assertions in Jmeter
❏ Response Assertions

❏ Response Text To Check

❏ Size Assertion

❏ HTML Assertion

Simona Pitam
Response Assertion

❏ The response assertion lets you add pattern strings to be compared against various fields of the server response.

For example, you send a user request to the website [Link] and get the server response.

You can use Response Assertion to verify if the server response contains expected pattern string (e.g. "OK").

Simona Pitam
Duration Assertion

❏ The Duration Assertion tests that each server response was received within a given amount of time. Any

response that takes longer than the given number of milliseconds (specified by the user) is marked as a failed

response.

❏ For example, a user request is sent to [Link] by JMeter and get a response within expected time 5

ms then Test Case pass, else, test case failed. Simona Pitam
Size Assertion

❏ The Size Assertion tests that each server response contains the expected number of byte in it. You can specify

that the size be equal to, greater than, less than, or not equal to a given number of bytes.

❏ JMeter sends a user request to [Link] and gets response packet with size less than expectedbyte

5000 bytes a test case pass. If else, test case failed.

Simona Pitam
XML Assertion

❏ The XML Assertion tests that the response data consists of a formally correct XML document.
HTML Assertion

HTML Assertion
❏ The HTML Assertion allows the user to
check the HTML syntax of the response
data. It means the response data must be
met the HTML syntax.

You might also like