JMeter HTTP Proxy server is not recording
Asked Answered
U

7

19

We are trying to do performance testing using JMeter.

I used the sample guide provided in jmeter using HTTP PROXY SERVER but my record controller was not recording any requests.

After doing a lot of research and here is what the complete scenario is.

I am accessing external sites using company proxy server. So, after a bit of research, I understand I need to start my jmeter by supplying all information via command line. e.g.

jmeter -H 129.198.1.1 -P 8000 -u someusername -a someuserpassword -N localhost

Now i understand that, i don't need to confuse these settings. By default JMETER uses its own internal proxy server.

We need to configure our browser so that it uses jmeter proxy settings and i did that way.

I added a thread group, a recording controller, http proxy server with url include patterns and exclude patterns but still, it's not able to record any scripts.

What am i doing wrong? Can someone help me with it?

I used document JMeter proxy step by step which comes bundled with JMETER documentation. Here is my configuration

enter image description here

enter image description here

enter image description here

Uncinariasis answered 11/6, 2013 at 8:23 Comment(5)
Try to show what you configured. What is shown in the browser ? Are you trying to record HTTPSHumidity
Hi, i have updated to depict my configuration.Uncinariasis
@PMDUBIK-INGENIERIE Please do you think you could help me with this question goo.gl/URsAFM? Please I really need some helpOvertly
Related video tutorials: JMeter Getting Started, JMeter Browser Recording Tutorial, How to record script for jmeter with Badboy toolSparker
Chrome extension: Record and Edit a JMeter Script Without Using JMeter: BlazeMeter's Chrome Extension using alternative solution: BadBoy.Sparker
H
20

Remove everything in :

  • URLs patterns to include

  • URLs patterns to exclude

click on Add suggested excludes

It should work.

Currently your include patterns are wrong :

The include and exclude patterns are treated as regular expressions (using Jakarta ORO). They will be matched against the host name, port (actual or implied) path and query (if any) of each browser request. If the URL you are browsing is "http://jmeter.apache.org/jmeter/index.html?username=xxxx" , then the regular expression will be tested against the string: "jmeter.apache.org:80/jmeter/index.html?username=xxxx" . Thus, if you want to include all .html files, your regular expression might look like: "..html(\?.)?" - or ".*.html" if you know that there is no query string or you only want html pages without query strings.

See this reference documentation for how to record:

If you're looking to learn jmeter correctly, this book will help you.

Humidity answered 16/6, 2013 at 12:5 Comment(3)
Hi PMD, it is working. I did as you suggested and it started working. Can you tell me what was wrong with my configuration that it wasn't working. I am really curious to know the issue.Uncinariasis
@PMD Thanks a lot,Ur solution proved of great help to me.Ishmul
In my case it was of doing the above and completely closing and restarting jmeter.Capwell
C
6

I had a similar problem when configuring firefox for proxy and recording on localhost. In Firefox -> Tools -> options -> Advanced -> Network -> Settings there was an entry for localhost in No Proxy for.

I removed that and it works enter image description here

Cumae answered 25/2, 2015 at 4:37 Comment(0)
P
3

I have faced similar problem, please see below. As JMETER proxy is running on localhost, please uncheck the below checkbox.

IE_BY_PASS_PROXY_FOR_LOCAL_ADDRESS

Pyknic answered 12/1, 2014 at 6:33 Comment(0)
V
1

Install Jmeter Chrome extension which records HTTPS protocol without any issue.

Ventail answered 20/9, 2013 at 6:52 Comment(1)
Thank you so much! at the end, this is what worked for me.Britton
X
1

You have done wrong writing the syntax/format for "URL Patterns to Include" and "URL Patterns to Exclude" in "HTTP Proxy Server" under Workbench. The syntax/format should be as below:

.*\.jsp
.*\.jsf
.*\.html

But, you have written forward slash(/). Such as .*/.jsp. After correcting the syntax it should be recorded.

Xylophone answered 26/12, 2013 at 9:56 Comment(0)
A
0

The Jmeter proxy server must be started before Firefox can connect to it. JMeter has its own proxy server so the Recording Controller 'start' button has to be pushed before FF will allow access to a website.

Alienate answered 29/3, 2016 at 23:15 Comment(0)
C
0

As far as I can understand the issue. The issue is not what it seems, JMeter and Browser are able to interact with each other. But the thing is that How to make sure that JMeter is able to use the proxy.

Now for this, there are many way outs. I'll start with the easiest one. Install Blazemeter Extension in your browser and start recording in it. It will provide you a .jmx file once you're done

The second one is configuring JMeter to access the proxy. the command is changed a bit now.

jmeter -E https -H my.proxy.server -P 8000 -u username -a password -N localhost

Please note that you need to change the below values: my.proxy.server 8000 username password

In case you don't use a username and password to connect to the proxy, simply omit the -u username -a password part.

Reference: https://jmeter.apache.org/usermanual/get-started.html#proxy_server

This will work to record the script.

Now, to run the script. This may not execute the things as expected.

In that case, you have a Advanced Tab in HTTP Request Sampler, go there and provide your proxy server details there.

Contactor answered 12/8, 2020 at 13:21 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.