Jmeter Proxy | Testing of HTTP Proxy Server using Jmeter - jmeter - jmeter tutorial




How to test HTTP Proxy Server using Jmeter?

  • Record Testing help tester to record & run their activity against test target.It is a type of automated testing but for multiple users.
  • learn apache jmeter tutorials - proxy server testing

    learn apache jmeter tutorials - proxy server testing Example

  • This chapter guides you how to use Proxy Server to record your test.
  • The Proxy Server allows JMeter to watch and record user activity while they are browsing web application with normal browser.

Here is the roadmap of this practical example

 roadmap of http proxy sever using jmeter

Step 1) Setting HTTP Proxy server

The Step-by-step guide to setup proxy are:

  • Start JMeter
  • Select Test Plan on the tree
  • Add Thread Group
 proxy server connection settings panel
  • Right click on the Test Plan and add a new thread group: Add >Threads (Users) > Thread Group
 add threadgroup in http proxy server in jmeter
  • Add HTTP Request
  • Select the Thread Group; right click Add > Config Element > HTTP Request Defaults
 adding config element in http proxy server
  • In new HTTP Request Defaults element: In Server name or IP, enter "google.com". You should keep the others fields blank
 http request default panel in proxy server
  • Add Recording Controller
  • Right click on the "Thread Group" and add a recording controller:
  • Add > Logic Controller >Recording Controller
 add recording controller in http proxy server

Add Proxy Server to WorkBench

  • Right click on the Workbench and add the http proxy: Add > Non-Test Elements > HTTP Proxy Server
 adding non test elements in http proxy server
  • Set Target Controller where your recorded scripts will be added
 http proxy server panel
  • Start Proxy Server
  • Return to HTTP Proxy Server, and click the Start button at the bottom. Now your JMeter proxy server start
 process of http proxy server

 connect users in http proxy server

 configuration of http proxy server
  • Start your Browser (I used Firefox), choose Tool > Option > Advanced > Network > Setting > Enter HTTP proxy as figure below
 tools option in http proxy server

Step 2) Record your activity

  • Now Launch www.google.com in your web browser (JMeter still open)
  • Do activities search the keyword "wikitechy".
  • Back to JMeter, in HTTP Proxy Server, click Stop when finished
 record activity in http proxy server
  • After finishing recording, you will see JMeter automatically created a new HTTP request as figure below
 new http request in http proxy server
  • JMeter has already recorded a user request to Home Page of Google website. http://www.google.com
  • The other HTTP requests display in above figure, you should remove them. Because, sometime JMeter also records some advertising links while you are searching keyword on Google. We should ignore them in our Test Plan

Click File > Save your Test Plan as

 save test plan in http proxy server
  • A Dialog box display ? enter a name of your test plan at File Name field ? Click Save
  • Now your Test Plan is saved under name RecordingTestPlan.jmx

 enter name in recording test panel

Step 3) Run your Test Plan

  • Select Thread Group > Add > Listener> Summary Report
 add summary report in http proxy server
  • The Summary Report will show some basic statics
 summary report statics in http proxy server
  • Select Thread Group, enter information as figure below
 threadgroup information in http proxy server

You can refer the article 5 JMeter Performance Testing.doc to know the detail about Thread Group configuring

  • Before you start the test, select "Summary Report". When you ready to run test, select Run ? Start (Ctrl+R). JMeter will playback your activity in 100 time
  • As the test runs, the statistics will change until the test is done.
 summary report data in http proxy server

Step 4) Save your test result

  • Click Save Table Data to save test result to file
 summary report table data in http proxy server
  • Enter the name of test result and click Save. Test Result in JMeter is saved in *.csv format as default
 summary files saving panel in http proxy server

This jmeter tutorial site provides you to the following keypoints on meter interview questions , apache jmeter download , apache jmeter , jmeter load testing , jmeter plugins , jmeter download , download jmeter , jmeter tutorials , load testing jmeter , jmeter summary report , jmeter apache , jmeter api testing , what is jmeter , jmeter load testing example , learn jmeter , how jmeter works , jmeter web service testing , jmeter example , jmeter load testing tutorial , install jmeter , load testing with jmeter , download jmeter for windows , performance testing using jmeter , jmeter functions , mobile app performance testing using jmeter , jmeter gui , install jmeter ubuntu , jmeter stress test , how to use jmeter

Related Searches to Jmeter Proxy | Testing of HTTP Proxy Server using Jmeter