JMeter for Windows 7


Environment Used

- Windows 7
- JMeter 2.7
- JDK 1.6.0 or later
- Command Prompt


Installation Procedures

I have task about performance testing for our local project. I am using JMeter for this kind of task and this application (JMeter) is open source application by Apache.
I think JMeter is good for JavaEE developer, I haven't tried using JMeter for other platform than Java yet.

JMeter need Java to running application, so we would have Java on our OS before we run JMeter application. Below are steps for JDK instalation:

1. Install JDK for Windows 7, JDK could be donwloaded at this site (http://www.oracle.com/technetwork/java/javase/downloads/index.html). I am using JDK 1.6.0 but this tutorial also good for latest JDK e.g. JDK 1.7.0

2. After JDK installation finish, we should setup JAVA_HOME at environment variables. Right click on Computer then select 'properties'

3. Choose 'Advanced System settings'

4. Click on Environment Variables... button. Then the window will came up


5. On System Variables add new like pic below


6. Edit on path variable at System Variables then added code below on Variables Value



7. Test Java by open Command Promt, run command below

on mine its showed "1.6.0_03" as my version, depend on JDK instalation file


Now we are ready for using JMeter. For instalation and running JMeter test, do steps as follows:
1. Download JMeter on this site (http://jmeter.apache.org/). I downloaded apache-jmeter-2.7.zip

2. Extract downloaded zip file. I extracted into 'C:\Program Files (x86)'

3. Open folder C:\Program Files (x86)\apache-jmeter-2.7 then goto bin folder

4. Run jmeter.bat by double clicked it

5. Add HTTP Proxy Server element on WorkBench, by right click WorkBench -> Add -> Non-Test Elements -> HTTP Proxy Server

6. Configure HTTP Proxy Server element, set value for Port (it is used for browser configuration) and Optional URL match string (it is used for URL that will be recorded) fields



7. On TestPlan add Thread Group

8. Configure IE (Internet Explorer), we used this browser for testing. Follow configuration as follows
- Click Tool menu
- Click Internet Option menu
- Click Connections tab menu
- Click LAN settings button
- Check Use a proxy server for your LAN (unchecked others setting)
- Fill Address field with “localhost” or your computer name. e.g my Computer (mtpc469)
- Fill Port field with port number of HTTP Proxy Server element, we used 8976

9. Back to JMeter -> HTTP Proxy Server screen, click start button.

10. Back to IE, goto your local project site (mine is http://mtpc469:8080/mmsv50). Do your behavior on your web project. All steps would record by JMeter.
RecordedBehavior.png


For more about information on how to use and advantage of JMeter as Performance Tools, please read JMeter documentation on official site (User Manual) or appropriate JMeter tutorials.


Comments

Post a Comment

Popular posts from this blog

Crypto Tracker App dengan Ionic 3: Setup aplikasi

Pricise Pangolin meet Gimp 2.8