【发布时间】:2017-03-22 14:28:39
【问题描述】:
通常我通过在 IE 中设置代理来记录 Jmeter 脚本, 但我现在要测试的应用程序不支持它。
当我在 IE 中设置代理并开始在 jmeter 中录制时, 那么应用程序将停止工作并出现以下错误消息。
Exception Caught: The server committed a protocol violation. Section=ResponseStatusLine Assembly Name: System.Net.HttpWebRequest
Assembly File: System.dll
Assembly Version: 2.0.0.0
Assembly Path: C:\Windows\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll
.NET Version: v2.0.50727
还有其他方法可以记录动作吗?
我只能使用IE浏览器,我想录制这个脚本的服务器上没有其他可用的浏览器。
Jmeter 日志
WARN jmeter.protocol.http.proxy.HttpRequestHdr: Url ' *Action name ' contains unsafe characters, will escape it, message: Illegal character in query at index 97:
注意:出于安全原因,我已从上述日志语句中删除了 Url/Action 名称。
【问题讨论】:
-
启动IE,以管理员身份运行并尝试记录。
标签: performance proxy jmeter load-testing