JMeter HTTP代理服务器未记录 [英] JMeter HTTP Proxy server is not recording
问题描述
我们正在尝试使用JMeter进行性能测试.
We are trying to do performance testing using JMeter.
我使用HTTP代理服务器使用了jmeter中提供的示例指南,但是我的记录控制器未记录任何请求.
I used the sample guide provided in jmeter using HTTP PROXY SERVER but my record controller was not recording any requests.
经过大量研究,这是完整的情况.
After doing a lot of research and here is what the complete scenario is.
我正在使用公司代理服务器访问外部站点.因此,经过一番研究,我了解我需要通过命令行提供所有信息来启动jmeter.例如
I am accessing external sites using company proxy server. So, after a bit of research, I understand I need to start my jmeter by supplying all information via command line. e.g.
jmeter -H 129.198.1.1 -P 8000 -u someusername -a someuserpassword -N localhost
现在我明白了,我不需要混淆这些设置.默认情况下,JMETER使用其自己的内部代理服务器.
Now i understand that, i don't need to confuse these settings. By default JMETER uses its own internal proxy server.
我们需要配置我们的浏览器,以便它使用jmeter代理设置,而我正是这样做的.
We need to configure our browser so that it uses jmeter proxy settings and i did that way.
我添加了一个线程组,一个记录控制器,带有url包含模式和排除模式的http代理服务器,但是仍然无法记录任何脚本.
I added a thread group, a recording controller, http proxy server with url include patterns and exclude patterns but still, it's not able to record any scripts.
我在做什么错?有人可以帮我吗?
What am i doing wrong? Can someone help me with it?
我逐步使用了与JMETER文档捆绑在一起的文档JMeter代理. 这是我的配置
I used document JMeter proxy step by step which comes bundled with JMETER documentation. Here is my configuration
推荐答案
删除所有内容:
-
要包含的URL模式
URLs patterns to include
要排除的URL模式
点击添加建议的排除项
应该可以.
当前,您的包含模式是错误的:
Currently your include patterns are wrong :
包含和排除模式被视为正则表达式(使用Jakarta ORO).它们将与每个浏览器请求的主机名,端口(实际或暗示)路径和查询(如果有)相匹配.如果您正在浏览的网址是 " http://jmeter.apache.org/jmeter/index.html?username = xxxx ", 然后将针对字符串测试正则表达式: "jmeter.apache.org:80/jmeter/index.html?username=xxxx". 因此,如果要包括所有.html文件,则正则表达式可能类似于: . .html(\ ?. )?" -或.*.html"(如果您知道没有查询字符串,或者只希望没有查询字符串的html页面).
The include and exclude patterns are treated as regular expressions (using Jakarta ORO). They will be matched against the host name, port (actual or implied) path and query (if any) of each browser request. If the URL you are browsing is "http://jmeter.apache.org/jmeter/index.html?username=xxxx" , then the regular expression will be tested against the string: "jmeter.apache.org:80/jmeter/index.html?username=xxxx" . Thus, if you want to include all .html files, your regular expression might look like: "..html(\?.)?" - or ".*.html" if you know that there is no query string or you only want html pages without query strings.
有关如何记录的信息,请参见此参考文档:
See this reference documentation for how to record:
如果您想正确学习jmeter,请参阅这本本书将为您提供帮助.
If you're looking to learn jmeter correctly, this book will help you.
这篇关于JMeter HTTP代理服务器未记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!