Wednesday, June 17, 2015

JMeter : How to configure your browser proxy connection for recording HTTP request

In order to record HTTP request using JMeter recording controller we need to configure browser proxy connections. We can use any of the browser for recording. Here we will discuss on how we can configure Firefox, Internet Explorer and Chrome browser.

At first we have to open the browser window where the web application will run and change its Proxy server settings.

Firefox Browsers:

  • Open Firefox Browser
  • Go to Tools->Options

image

  • Options page is displayed, Note that I am using Firefox version 38.0.5
  • Click on Advanced Tab
  • Click on Network sub tab
  • Click Settings button of the Connection area.

image

  • Connection Settings window is displayed
  • Select Manual Proxy configuration
  • Enter HTTP Proxy as “localhost”
  • Keep port as “8080”
  • Make sure that “Use this proxy server for all protocols” option is checked
  • Click OK button of Connection Settings window

image

  • Close the Browser window

Internet Explorers:

  • Open Internet Explorer
  • Go to Tools>Internet Options

image

  • Internet options window is displayed
  • Click on Connections tab
  • Click on LAN Settings button

image

  • LAN Settings window is displayed
  • Uncheck “Automatically detect settings”
  • Check the “Use the proxy server for your LAN” options
  • Type address as “localhost” and port as “8080”
  • Click OK button of the LAN Settings window

image

  • Click OK button of Internet Options window

image

  • Close the Browser window

Chrome Browser:

  • Open Chrome Browser
  • Click on Customize and control Google chrome button located at top right corner. A drop down menu is displayed.

image

  • Click on Settings option

image

  • Settings page is displayed.
  • Scroll down to the bottom of the page and click on Show Advanced Settings link to expand the page.

image

  • Click on Change Proxy Settings…

image

  • Internet Properties window is displayed and click on Connections tab.
  • Click on LAN Settings button.

image

    • LAN Settings window is displayed
    • Uncheck “Automatically detect settings”
    • Check the “Use the proxy server for your LAN” options
    • Type address as “localhost” and port as “8080”
    • Click OK button of the LAN Settings window

    image

    • Click OK button of Internet Options window
    • Close the browser window.

    Happy Load testing with JMeter!!!…..

    1 comment:

    Cypress: How to handle browser-based authentication pop up dialog in Cypress

    Five years ago I have written a blog on how to handle browser-based authentication for selenium webdriver.   Now it is for cypress. Cypress...