使用 JMeter 和 JavaScript 调用 Trackingscript?

Call Trackingscript with JMeter and JavaScript?

是否可以使用 JMeter 和 Javascript 100 倍或更频繁地调用跟踪脚本(例如 Google Analytics)?

谢谢,

根据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).

所以我认为您无法单独使用 JMeter 来模拟数百个跟踪事件(我也不认为这是合法的)

但是,如果您 100% 确定自己在做正确的事情,则可以考虑通过 WebDriver Sampler, just remember that real browsers are very resource intensive therefore you will need something like 100 CPU Cores and 200 GB of RAM for 100 browser instances so most probably you will have to go for Distributed Testing

实现 JMeter 与 Selenium 的集成