Is PhantomJS CPU (core) bound?

谁说我不能喝 提交于 2019-12-05 12:40:24

As per Web Driver Tutorial

it is important to note that this is mainly used to complement JMeter's HTTP Sampler. The Web Driver Sampler is meant to be run in conjunction with a HTTP Sampler so that from the server's perspective, the load is production like. At the same time, the web sampler will simulate the user experience of interacting with the website/webapp whilst the server is under load, hence measuring the real user's experience at the same time.

So your idea of running multiple browsers, no matter full or headless, doesn't look good. The idea of WebDriver JMeter plugin is to have one real browser instance crawling web application under test to see whether load has negative impact on real-life users on areas which JMeter can't cover by design like executing JavaScript / AJAX calls, etc.

There are several configuration elements available in JMeter to make it pretend more like a real browsers. Consider using:

See How to make JMeter behave more like a real browser guide for more tips and tricks.

If you use case assumes only browser-based load testing I'd recommend looking into Selenium Grid which is capable of orchestrating multiple WebDriver instances running on different hosts.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!