I'm new to JMeter and I want to load test a local web application recording test case with JMeter proxy.
I've first followed instruction here http://jmeter.apache.org/usermanual/jmeter_proxy_step_by_step.pdf and all worked fine.
Than:
http://localhost:8080/my-application
curl -X GET http://localhost:8081/my-application/index.html
I obtain:
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: https:///my-application/index.html/my-application/index.html
What's going wrong? I missed some basic configuration? I'm using JMeter Proxy in the wrong manner?
In JMeter, by adding a Non-Test element to your test plan, enables you to capture the network traffic. Right click on Test Plan > Add > Non-Test Elements > HTTP(S) Test Script Recorder. This will add the recording capability to JMeter. To begin recording, understand the business flow and have your input data ready.
First check that you have the correct proxy parameters like Proxy Server IP/address,port no,username and password. Then, in the first HTTP Request, click on advanced tab and there you find Proxy server section. Fill the required information and run the jmeter.
Firefox by default does not allow localhost or 127.0.0.1 to be proxied.
You have to modify a setting in about:config
change network.proxy.allow_hijacking_localhost to true
Firefox default setting will bypass "localhost, 127.0.0.1" from proxy so your JMeter still not able to record it. You have to empty the "No Proxy for" field, by removing the "localhost, 127.0.0.1". Hope this will help.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With