英文:
Jmeter Test steps recorder is not saving the steps after stop the record
问题
我知道这个问题可能是重复的,但我在其他问题中没有找到解决方案。
我有Jmeter 5.5,并添加了一个新的测试计划,其中包括Https测试脚本记录器和一个线程组,在线程组下面我添加了一个录制控制器。
在测试脚本记录器中,我将端口号设置为8080,并将证书添加到Firefox浏览器。
但当我在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.
In the Firefox browser I added proxy setting as below
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
使用代理,您需要执行以下步骤:
- 在 URL 中打开
about:config
。 - 查找
network.proxy.allow_hijacking_localhost
属性。 - 将其设置为
true
。
更多信息:如何使Firefox在本地主机连接时使用代理服务器
此外,我建议使用 Recording Template,它在记录测试计划设置、过滤嵌入和外部资源等方面提供了一个“好”的配置。
还请注意,还有一种录制 JMeter 测试的替代方法:JMeter Chrome 扩展程序,在这种情况下,您不必担心代理和SSL证书。
英文:
Firefox by default doesn't use proxy for localhost
, you will need to
- open
about:config
in the URL - look for
network.proxy.allow_hijacking_localhost
property - set it to
true
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论