Performance Testing using Jmeter Contents Configuring the System ................................................................................................................................. 2 Configuring Jmeter ........................................................................................................................................ 4 Configuring Firefox........................................................................................................................................ 8 Recording in Jmeter ...................................................................................................................................... 9 Play Back In Jmeter ..................................................................................................................................... 10

The following are the steps to kick start Jmeter in Windows 7.

Pre-Requisites 

Any browser (but latest Firefox is preferred as I’ll be using the same).

1

Configuring the System

1. Download and install latest JRE (Java run time environment) and JDK (Java Development Kit) from Google. 2. Now download latest apache-Jmeter (I’m currently using 2.10) from https://jmeter.apache.org/download_jmeter.cgi 3. Unzip the file into a folder. 4. Open folder where JDK is installed.

5. Copy the path (E.g. C:\Program Files\Java\jdk1.6.0_37) 6. Click on Start a. Right Click on My Computer >Properties b. Click on Advanced System Settings >System Properties window will open c.

Click on Advanced tab in System Properties window

d. In Advanced tab >Click on Environment Variables button e. In Environment Variable window i. Under User variables >Click on New ii. In Variable Name enter “JAVA_HOME” iii. In Variable Value paste the path which was copied iv. Click on Ok v. Eg

2

vi. Under System variables >Scroll down to check whether you have any variables already existing by name “PATH” or “Path” vii. If Path is already there then >Click on Edit> At Variable value part and at the end of the string put “;” and paste the path which was copied earlier and put “\bin” at the end . (So that it point to the bin folder in the jdk path. The Path would look something like

xxxxxxxx; C:\Program Files\Java\jdk1.6.0_37\bin )

viii. If the Path variable is not there ,then click on New Button.( Under System variables) ix. Variable Name enter “PATH” x. Variable Value , paste the path copied earlier and add”\bin” at the end (It would look something like C:\Program Files\Java\jdk1.6.0_37\bin )

xi. Click on OK xii. Click on OK

3

Configuring Jmeter

7. Open the folder where Jmeter has been unzipped 8. Double click on the Jmeter\bin\Jmeterw.cmd 9. Jmeter should open.

10. Right click TestPlan a. Add>Threads(Users)>Click on Thread group

The Thread group gets added into your Test plan. b. Right click on Thread Group>Add>Logic Controller>Click on Recording Controller

4

c. Again Right click on Thread Group>Add>config

Controller>Click on HTTP Request

Defaults

11. Now Right Click on Work Bench>Add>Non – Test Elements>Click on Https Test Script Recorder.

12. Now Again Right Click on Work Bench>Add>View Results Tree. (This step might not be necessary )

5

Your Test Tree should look something like this

13. Now Click on HTTP Request Defaults > In Server Name or IP field enter www.google.com

14. Click on Https Test Script Recorder a. Notice the port number is already set to 8080 b. In Target Controller >Select “Test Plan>Thread Group”

6

7

Configuring Firefox 15. Open Firefox a. Tools > Options > In Network Tab >Click on Settings b. Select “Manual Proxy config” Radio button c. Enter “localhost” in Http Proxy d. Enter “8080” in port (Can be any number but should be same as the port already set in Jmeter)

e. Click on Ok f.

Now Close the Browser.

8

Recording in Jmeter

16. Open Jmeter window >In Workbench>Select HTTPS Test Recorder, In this window towards your right side bottom of the page click on “START “button. 17. It should ask you to SAVE, save in any path of your choice. 18. Open Firefox > Go to www.Google.com a. In search field type any data. b. Click on Images c. Close the window 19. Open Jmeter ,Click on Stop button (Jmeter window >In Workbench>Select HTTPS Test Recorder, In this window towards your right side bottom of the page )

You should see the recorded steps like this.

9

Play Back In Jmeter 20. Now in Thread Group >Add>Listeners>Click on Summary Report 21. Also Thread Group >Add>Listeners>Click on View Results in Tree

22. Open Firefox 23. In Jmeter tool bar , Click on Play 24. Once the script is run, you will see the summary report.

25. Viewing the Result

10

11

Useful Information Screenshot 1

Screen Shot 2

12

screenshot 3 (Check Java Version Already Installed)

 

References http://jmeter.apache.org/usermanual/component_reference.html#HTTP%28S%29_Test_Script_ Recorder http://jmeter.apache.org/usermanual/jmeter_proxy_step_by_step.pdf

13

Performance Testing using Jmeter.pdf

There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Performance ...

1MB Sizes 5 Downloads 219 Views

Recommend Documents

Performance Testing of Object-Based Block Storage Using ... - Media15
extending beyond business files to en- compass photographs, audio, video, and logs. Along with the associated transition to big data, it has been projected that.

performance testing interview questions pdf
questions pdf. Download now. Click here if your download doesn't start automatically. Page 1 of 1. performance testing interview questions pdf. performance ...

performance testing tutorial pdf
Click here if your download doesn't start automatically. Page 1 of 1. performance testing tutorial pdf. performance testing tutorial pdf. Open. Extract. Open with.

performance testing tutorial pdf
Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. performance testing tutorial pdf. performance testing tutorial pdf.

performance testing life cycle pdf
File: Performance testing life cycle pdf. Download now. Click here if your download doesn't start automatically. Page 1 of 1. performance testing life cycle pdf.

Tutorial Database Testing using SQL.pdf
Page 2 of 22. Page 2 of 22. Database Testing Tutorial using SQL –. 3.4 Stress Testing. 3.5 Test back end via front end. 3.6 Benchmark testing. 3.7 Common bugs.

TCP Performance Simulations Using Ns2
Ns2 can be built and run both under Unix and Windows. Instructions on how to .... 3.3.3. Files and lists. In tcl, a file can be opened for reading with the command: ... node is not a router but an end system, traffic agents (TCP, UDP etc.) and traffi

Exploratory PerFormance Evaluation using dynamic ...
plete 'active' sub-models that serve, e.g., as embedded strategies that control the .... faces, their signature, and that these interfaces behave as described above ...

Toward Accurate Performance Evaluation using Hardware Counters
PMCs for performance measurement and analysis. ... interfaces include Intel's VTune software for Intel proces- sors [5], IBM's .... Therefore, we set the event-list.

Toward Accurate Performance Evaluation using Hardware Counters
analysis and validation tool. Various drivers ... Performance counters or Performance Monitoring Counters. (PMCs) are ... Library (PCL) [8] and Performance Application Program- ..... best algorithm for quake which produced an estimation error.