Jmeter测试步骤记录器在停止记录后未保存步骤。

huangapple go评论63阅读模式
英文:

Jmeter Test steps recorder is not saving the steps after stop the record

问题

我知道这个问题可能是重复的,但我在其他问题中没有找到解决方案。
我有Jmeter 5.5,并添加了一个新的测试计划,其中包括Https测试脚本记录器和一个线程组,在线程组下面我添加了一个录制控制器。

在测试脚本记录器中,我将端口号设置为8080,并将证书添加到Firefox浏览器。
Jmeter测试步骤记录器在停止记录后未保存步骤。

在Firefox浏览器中,我设置了代理设置如下
Jmeter测试步骤记录器在停止记录后未保存步骤。

但当我在Jmeter中点击开始,然后在浏览器中执行步骤,然后在Jmeter中点击停止时,在录制控制器下面没有列出任何内容。
所以我的问题是:我的设置有问题吗?是否有遗漏的步骤?

英文:

I know that maybe this question is duplicated, but I haven't find the solution in other questions.
I have Jmeter 5.5, and I added new test plan with a Https test script recorder and a thread group and under it I added a recording controller.

In the test script recorder I set the port number equal to 8080, and I added the certificate to the Firefox browser.
Jmeter测试步骤记录器在停止记录后未保存步骤。

In the Firefox browser I added proxy setting as below
Jmeter测试步骤记录器在停止记录后未保存步骤。

But when I click start in jmeter then start doing the steps in the browser and after that click stop in Jmeter nothing is listed under recording controller.
So my question is: Is there any problem with my setting, is there any missed steps?.

答案1

得分: 1

默认情况下,Firefox 不会为 localhost 使用代理,您需要执行以下步骤:

  1. 在 URL 中打开 about:config
  2. 查找 network.proxy.allow_hijacking_localhost 属性。
  3. 将其设置为 true

更多信息:如何使Firefox在本地主机连接时使用代理服务器

此外,我建议使用 Recording Template,它在记录测试计划设置、过滤嵌入和外部资源等方面提供了一个“好”的配置。

还请注意,还有一种录制 JMeter 测试的替代方法:JMeter Chrome 扩展程序,在这种情况下,您不必担心代理和SSL证书。

英文:

Firefox by default doesn't use proxy for localhost, you will need to

  1. open about:config in the URL
  2. look for network.proxy.allow_hijacking_localhost property
  3. set it to true

Jmeter测试步骤记录器在停止记录后未保存步骤。

More information: How to make Firefox use a proxy server for localhost connections

In addition I would recommend using Recording Template, it comes up with a "good" configuration when it comes to recording test plan setup, filtering embedded and external resources and so on.

Also be aware that there is an alternative way of recording a JMeter test: JMeter Chrome Extension, in this case you won't have to worry about proxies and SSL certificates.

huangapple
  • 本文由 发表于 2023年6月26日 16:56:24
  • 转载请务必保留本文链接:https://go.coder-hub.com/76555102.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定