Anda di halaman 1dari 5

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 - thats 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 IVESIAS WEBSITE Follow us at LINKEDIN and TWITTER

2.

Add HTTP Request Defaults to the Thread Group

Visit IVESIAS WEBSITE Follow us at LINKEDIN and TWITTER

3. a. b. c. 4.

Configure the thread group with your application settings Hostname Port and protocol Add the HTTP Proxy Server to the Workbench

Configure the Workbench with the necessary settings like a. b. c. port for the proxy server URL patterns to include URL patterns to exclude

Visit IVESIAS WEBSITE Follow us at LINKEDIN and TWITTER

5. 6.

Start the HTTP Proxy Server 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 IVESIAS WEBSITE Follow us at LINKEDIN and TWITTER

11. 12. 13. 14. 15.

Identify the session related issues in the application Capture the Session IDs using regular expressions Pass the session IDs in the subsequent requests Clear View Summary Report 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/

Visit IVESIAS WEBSITE Follow us at LINKEDIN and TWITTER