使用Jmeter加载网站使用IFRAME的网站测试

发布于 2025-02-10 06:55:54 字数 461 浏览 0 评论 0原文

我已经使用Jmeter创建了一个在UAT环境中运行的过程的测试计划。用户旅程的一部分涉及使用iFrame的页面使用付款提供商提交付款。

iframe的付款提供商具有以下阶段:

  1. 输入付款详细信息(卡号,到期和CVV),
  2. 然后将用户提交给另一个IFRAME页面,该页面显示付款详细信息摘要
  3. 用户,然后单击付款按钮,并提交付款和订单ID是生成的,

如何使用Jmeter实现这些IFRAME请求?作为我解决方案探索的一部分,我使用 blazemeter ,但令人惊讶的是,它没有捕获任何一个与付款过程有关的iframe页面。

甚至可以使用Jmeter进行此操作,还是我应该探索其他可能的工具或解决方案?

I have created a test plan using Jmeter for a process that runs in my UAT environment. A part of the user journey involves hitting a page with an iframe to submit payment using a payment provider.

The payment provider from the iframe has following stages:

  1. Enter payment details (Card number, expiry and CVV) and submit
  2. User is then taken to another iframe page which shows the payment details summary
  3. User then clicks on payment button and payment is submitted and an order ID is generated

How do I implement these iframe requests using JMeter? As part of my solution exploration I have recorded the E2E flow using Blazemeter but surprisingly it does not capture any of the iframe pages relating to the payment process.

Is it even possible to do this using JMeter or should I explore some other possible tool or solution?

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

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

发布评论

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

评论(1

两相知 2025-02-17 06:55:54

jmeter项目主页

jmeter不是浏览器,它在协议级别工作。就Web服务和远程服务而言,Jmeter看起来像浏览器(或更确切地说是多个浏览器);但是,Jmeter并未执行浏览器支持的所有操作。特别是,Jmeter不会执行HTML页面中的JavaScript。它也不会渲染HTML页面作为浏览器所做的(可以将响应视为HTML等,但是任何示例中都不包含时间,并且一次仅显示一个线程中的一个样本)。

您可能有成千上万的 iframes ,但如果他们不生成 http请求 - 什么都不会记录。

如果您确实相信“ BlazeMeter”(无论您是什么意思)都不会捕获应捕获的请求,那么您可以联系 blazemeter支持

在此期间(s)测试脚本记录器,在这种情况下,您将拥有更多或多或少的完全控制,我们将能够提供帮助。

As per JMeter project main page:

JMeter is not a browser, it works at protocol level. As far as web-services and remote services are concerned, JMeter looks like a browser (or rather, multiple browsers); however JMeter does not perform all the actions supported by browsers. In particular, JMeter does not execute the Javascript found in HTML pages. Nor does it render the HTML pages as a browser does (it's possible to view the response as HTML etc., but the timings are not included in any samples, and only one sample in one thread is ever displayed at a time).

You may have thousands of iframes but if they don't generate a HTTP request - nothing will be recorded.

If you do believe that "blazemeter" (whatever you mean by that) is not capturing the requests which it should be capturing - you can reach out to BlazeMeter Support.

In the meantime you can try recording the "E2E flow" (whatever you mean by that) using JMeter's HTTP(S) Test Script Recorder, in this case you will have more or less full control and we'll be able to help.

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