[英]JMeter bugs when trying to stress test localhost server
I am trying to do a stress test to a localhost server. 我正在尝试对本地主机服务器进行压力测试。 i have configured the HTTP Request Defaults correctly, image attached.
我已经正确配置了HTTP请求默认值,并附带了图像。 The View Results tree panel shows that JMeter is trying to send the request to ${host}.
“查看结果”树面板显示JMeter正在尝试将请求发送到$ {host}。 I am using v 3, the current latest release.
我使用的是最新发布的v 3。 Please help.
请帮忙。
HTTP Request Defaults are really defaults . HTTP Request Defaults实际上是默认值 。
Server Name or IP
input for you "Home Page" request blank - the value will be picked up from the HTTP Request Defaults Server Name or IP
输入”留空,则将从HTTP请求默认值中获取该值 Server Name of IP
with something else - in your case with ${host}
- default value will be discarded. Server Name of IP
-在您的情况下使用${host}
-默认值将被丢弃。 So all you need to do is go to your "Home Page" HTTP Request Sampler and delete ${host}
from the Server Name or IP
input. 因此,您所需要做的就是转到“主页” HTTP请求采样器,然后从“
Server Name or IP
输入中删除${host}
。
Detailed information: Why It's SO Important To Use JMeter's HTTP Request Defaults 详细信息: 为什么使用JMeter的HTTP请求默认值如此重要
Try replacing "${host} " with actual hostname. 尝试将“ $ {host}”替换为实际的主机名。
If you are using ${host} then you have to provide the values to it using CSV Config File or some other means. 如果您使用的是$ {host},则必须使用CSV Config File或其他方式为其提供值。
Go through the link http://jmeter.apache.org/usermanual/component_reference.html#CSV_Data_Set_Config 通过链接http://jmeter.apache.org/usermanual/component_reference.html#CSV_Data_Set_Config
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.