Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Performance Testing using Jmeter
1. Performance testing using jMeter
jMeter is an open source software for performance testing. It is written in Java and works as
a desktop application. The installation is pretty easy and straightforward. Download the
package and unzip it - that’s it. To run the application on Windows, double click the
“bin/jmeter.bat” file and to run it on MacOS, double click the “ApacheJmeter.jar” file. jMeter
supports HTTP, HTTPS, FTP, SOAP, POP3, JDBC, thus enabling its use to test most of the
applications. It has record and playback capability which enables easy test case creation
The following steps illustrates the usage of jMeter used for Performance Testing
1. Add a thread group to the test plan
Visit IVESIA’S WEBSITE Follow us at LINKEDIN and TWITTER
2. 2. Add HTTP Request Defaults to the Thread Group
Visit IVESIA’S WEBSITE Follow us at LINKEDIN and TWITTER
3. 3. Configure the thread group with your application settings
a. Hostname
b. Port and
c. protocol
4. Add the HTTP Proxy Server to the Workbench
Configure the Workbench with the necessary settings like
a. port for the proxy server
b. URL patterns to include
c. URL patterns to exclude
Visit IVESIA’S WEBSITE Follow us at LINKEDIN and TWITTER
4. 5. Start the HTTP Proxy Server
6. Configure the browser to listen on HTTP Proxy Server port number
7. Open the browser (that you have configured with HTTP Proxy Server port)
8. Open the application URL and explore your application events (observe whether Jmeter
is capturing the events)
9. Stop the HTTP Proxy Server
10. Add “View Summary Report” listener to the “Thread Group”
Visit IVESIA’S WEBSITE Follow us at LINKEDIN and TWITTER
5. 11. Identify the session related issues in the application
12. Capture the Session IDs using regular expressions
13. Pass the session IDs in the subsequent requests
14. Clear “View Summary Report”
15. Rerun the tests and observe the results.
Summary Report will be populated with the test results for the modified number of
users set in the thread group window
jMeter Download Reference Url:
http://jakarta.apache.org/site/downloads/downloads_jmeter.cgi
Manual Reference Url : http://jakarta.apache.org/jmeter/usermanual/
s
Visit IVESIA’S WEBSITE Follow us at LINKEDIN and TWITTER