1

Our applications are built using http/2 protocol.

Jmeter 5.5 HTTP test script recorder, by default captures as HTTP1.1 requests.

Tried to record a script with Blazemeter recorder plugin in chrome browser, but no luck.

Is there any work around for recording with Jmeter 5.5?

2 Answers 2

1

Make Sure JMeter's Got HTTP/2: You need the right things in JMeter for HTTP/2 to work, so download and put the HTTP/2 plugin in JMeter, okay?

Put HTTP/2 in Your Test Plan: Go to "Test Plan" -> "HTTP Request Defaults." In the "Advanced" tab, check the "HTTP/2" option. This will make all subsequent HTTP Request samplers use the HTTP/2 protocol.

Browsers Configuration: Make sure the browser you're using does HTTP/2, And make it use JMeter as its proxy, somehow.

Do the HTTPS Thing in JMeter: Because HTTP/2 is often over HTTPS, make JMeter do HTTPS too, You'll find it in "HTTP(S) Test Script Recorder," and the "HTTPS" tab, hit "Import from JMeter" and do what it says with the certificate thing in your browser.

Manual Recording Maybe?: If it's not doing what you want, just make the HTTP/2 requests yourself, like, Look at the network stuff in the browser tools and put what you need in JMeter.

If it's Not Working, Look at Logs and Stuff: Check JMeter's log things, might tell you what's going wrong.

How to check log :

In jmeter UI Interface: When you're running JMeter with the GUI, you can see logs at the bottom part of the window, in the "Log Viewer" panel. go to "Options" -> "Log Viewer" to turn it on.

JMeter.log File: JMeter also keeps a log file named "jmeter.log." You'll find this file in the directory where JMeter is installed, or in the "bin" folder. Just open that file with a text editor or something, and you can see all the logs and stuff there.

1
  • Hi Ashutosh, - Put HTTP/2 in Your Test Plan: Go to "Test Plan" -> "HTTP Request Defaults." In the "Advanced" tab, check the "HTTP/2" option. This will make all subsequent HTTP Request samplers use the HTTP/2 protocol. I don't see this option. could you please share snapshot for reference.
    – Peddaswamy
    Aug 22 at 9:53
0

As of JMeter 5.6.2 HTTP2 protocol is neither supported by JMeter Samplers nor by HTTP(S) Test Script Recorder.

And I doubt it will be supported due to asynchronous multiplexed nature of the HTTP2 protocol.

You can inspect the traffic using your browser developer tools and replicate it using HTTP2 Plugin for JMeter. The plugin can be installed using JMeter Plugins Manager.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.