Jmeter Proxy Step by Step
Jmeter Proxy Step by Step
This tutorial attempts to explain the exact steps for JMeter's proxy. For those new to JMeter, one easy way to create a test plan is to use the Proxy. What the proxy does is it records the requests sent to the server.
4. Select the Thread Group 5. Right click Add -> Config Element -> HTTP Request Defaults
6. In new HTTP Request Defaults element: Server name enter jmeter.apache.org 7. Path leave blank
1/7
8. Right click on the Thread Group and add a recording controller: Add > Logic Controller > Recording Controller
9. Next, select WorkBench 10. Right click on WorkBench and add the Http proxy: Add -> Non-Test Elements -> HTTP Proxy Server
11. On HTTP Proxy Server, click the Add button in URL Patterns to Include. This will create a blank entry. 12. Enter .*\.html 13. Click 3 times, the Add button in URL Patterns to Exclude. This will create 3 blank entries. 14. Enter .*\.png pattern, .*\.gif pattern and .*\.ico pattern
2/7
15. Right click on HTTP Proxy Server and add a listener: Add -> Listener -> View Results Tree
16. Return to HTTP Proxy Server, and click the Start button at the bottom
3/7
17. On the new popup, check Manual proxy configuration. The address and port fields should be enabled now. 18. Address enter localhost or the IP address of your system 19. Port enter 8080. 20. Check Use this proxy server for all protocols
4/7
21. Click ok button 22. Click ok button again. This should return you to the browser
In this sample, there aren't any default request parameters. If a particular request parameter
5/7
is required by all pages, the request defaults is where one would add the entries. 25. Select Thread Group 26. Right click Add -> Listener -> Summary Report to add an summary listener.
27. Select Thread Group 28. Number of Threads enter 5 29. Ramp up Period do not change 30. Loop Count enter 100
6/7
While the test is running, in the upper right-hand corner, there should be a green square. When the test is done, the box should be grey.
7/7