JMeter HTTP 代理服务器未记录 [英] JMeter HTTP Proxy server is not recording

查看:26
本文介绍了JMeter HTTP 代理服务器未记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在尝试使用 JMeter 进行性能测试.

We are trying to do performance testing using JMeter.

我使用了 jmeter 中提供的示例指南,使用 HTTP 代理服务器,但我的记录控制器没有记录任何请求.

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

推荐答案

删除所有内容:

  • 要包含的网址格式

  • URLs patterns to include

要排除的网址格式

点击添加建议排除

它应该可以工作.

目前您的包含模式是错误的:

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆