记录的测试计划不起作用

发布于 2024-08-12 18:17:51 字数 167 浏览 2 评论 0原文

我使用jmeter记录请求,然后进行性能测试。

在我记录了代理服务器的所有请求并且它们包含帖子表单之后, 我运行这些测试用例,但我发现帖子表单不起作用:它无法自动在网站数据库中创建记录。

但在此之前我使用了 webload,一切都很好。

有什么问题吗?我能做什么来解决它?

I use jmeter to record the requests and then perform a performance test.

After I've recorded all the requests with proxy server and they contain post form,
I run these test-cases, but I found the post form not work: it can not create a record in website's database automatically.

But before that i used webload and everything was ok.

What's the problem? What can i do to solve it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

请你别敷衍 2024-08-19 18:17:51
  1. 您的 JMeter 测试是否包含 HTTP cookie 管理器?
  1. Does your JMeter test contain an HTTP cookie manager?
暮色兮凉城 2024-08-19 18:17:51

如果您的应用程序需要 cookie 和/或会话来允许访问内容,JMeter 的内置代理记录器可能会产生问题。

您可能想尝试Blazemeter。 Blazemeter 在 Google Chrome 中有一个扩展。您可以在浏览应用程序时使用此扩展记录测试脚本。完成后,从扩展中导出 .JMX 格式的测试脚本(为此,您必须登录 Blazemeter)。在 JMeter 中将其作为测试计划打开。对测试计划进行所需的任何更改并运行测试!

The built in proxy recorder of JMeter may create problems in case your application requires cookies and/or sessions to allow access to content.

You might want to try Blazemeter. Blazemeter has an extension in Google Chrome. You can record your test script using this extension as you browse through your application. Once you are done, export the test script in .JMX format from the extension (you will have to be logged in to Blazemeter for this). Open that as test plan in JMeter. Make any changes required in the test plan and run your test!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文