AJAX默认配置


                    

有人可以给我解释一下AJAX Defaults Config还是它在Jmeter中的作用?</ p>

我试图在Google中搜索答案,但找不到明确的定义。</ p>
     </ div>

展开原文

原文

Can someone please give me an explanation of AJAX Defaults Config or what is the role of it in Jmeter?

I tried to search for an answer in Google but I can't find a definite definition of it.

1个回答


JMeter 5.1开始。 1 AJAX Defaults Config </ code>这样的东西 > JMeter组件,因此很可能您正在使用某种形式的 JMeter插件,该形式未公开 可用。 如果是这种情况,您应该与插件开发人员/维护人员联系以进行澄清。 </ p>

对于香草JMeter,请按照 JMeter项目主页:</ p>


  

JMeter不是浏览器,它在协议级别工作。 就Web服务和远程服务而言,JMeter看起来像一个浏览器(或者说多个浏览器)。 但是,JMeter不会执行浏览器支持的所有操作。 特别是,JMeter不会执行HTML页面中的Javascript。</ strong>它也不会像浏览器一样呈现HTML页面(可以将响应查看为HTML等,但是不包括计时) 任何样本中,一次只能在一个线程中显示一个样本。</ p>
</ blockquote>

因此JMeter无法自动执行 AJAX 请求,因为 J </ code>字母代表 JavaScript </ p>

如果您需要正确模拟AJAX请求,则需要添加单独的 HTTP请求< / a>每个AJAX调用的采样器,并将它们放在并行控制器以确保</ p>
     </ div>

展开原文

原文

As of JMeter 5.1.1 there is no such a thing as AJAX Defaults Config in JMeter Components so most probably you're using some form of JMeter Plugin which is not publicly available. If this is the case you should reach out to the plugin developers/maintainers for the clarification.

For the vanilla JMeter, 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).

Therefore JMeter is not capable of automatically execute AJAX requests because J letter stands for JavaScript

If you need to properly simulate AJAX requests you need to add a separate HTTP Request sampler per AJAX call and put them under Parallel Controller to ensure

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问