我是JMeter的新手,我想用JMeter代理加载测试本地Web应用程序记录测试用例。设置JMeter代理以记录本地Web应用程序上的活动
我第一次按照这里的指令http://jmeter.apache.org/usermanual/jmeter_proxy_step_by_step.pdf,一切正常。
比:
- 我开始了我的web应用程序,说
http://localhost:8080/my-application
- 设置JMeter的端口的Web代理8081
- 增加了一个HTTP请求默认的线程组
- Addea记录控制器
- 调用
curl -X GET http://localhost:8081/my-application/index.html
我获得:
- 请求被记录但有错误的参数,例如。 HTTPS而非http
- 我不卷曲获得被请求的页面,但例外:
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: https:///my-application/index.html/my-application/index.html
- 我已经在HTTP请求默认指定的参数似乎ingnored?我将配置元素放置在HTTP代理服务器下,并尝试了很多设置。
怎么回事?我错过了一些基本配置?我以错误的方式使用JMeter Proxy?应遵循在JMeter的记录