如何使用无头浏览器有效地加载webapp测试?

时间:2023-01-22 21:25:51

I have experience with a few headless browsers, but only for testing and not load testing. What's the best way to launch 500-1000 websocket clients to load test the application? Is it as simple as just looping a bunch with a setTimeout that gets longer incrementally?

我有一些无头浏览器的经验,但仅用于测试而不是负载测试。启动500-1000 websocket客户端以加载测试应用程序的最佳方法是什么?它是否只是循环使用setTimeout逐渐增加更长时间?

I can build out the actual tests myself, I'm just curious which framework is best suited for this.

我可以自己构建实际的测试,我只是好奇哪个框架最适合这个。

I have experience with ZombieJS and PhantomJS (along with Casper and Webspecter).

我有使用ZombieJS和PhantomJS(以及Casper和Webspecter)的经验。

1 个解决方案

#1


2  

Looks like you want to do scalability/load testing on your server. How do you test client side performance with hundreds of thousands of virtual clients? anyway I assume you already tried using headless phantom clients. That's the same thing I also tried and it worked for me well I monitored CPU, network throughput and Memory usage using some utility plugins.

您希望在服务器上进行可伸缩性/负载测试。如何使用数十万个虚拟客户端测试客户端性能?无论如何,我认为你已经尝试过使用无头幻像客户端。这也是我尝试的一样,它对我有用,我使用一些实用程序插件监控CPU,网络吞吐量和内存使用情况。

There is a plugin which does JMeter integration for websocket protocol. This might be helpful

有一个插件可以为websocket协议进行JMeter集成。这可能会有所帮助

https://github.com/kawasima/jmeter-websocket/

#1


2  

Looks like you want to do scalability/load testing on your server. How do you test client side performance with hundreds of thousands of virtual clients? anyway I assume you already tried using headless phantom clients. That's the same thing I also tried and it worked for me well I monitored CPU, network throughput and Memory usage using some utility plugins.

您希望在服务器上进行可伸缩性/负载测试。如何使用数十万个虚拟客户端测试客户端性能?无论如何,我认为你已经尝试过使用无头幻像客户端。这也是我尝试的一样,它对我有用,我使用一些实用程序插件监控CPU,网络吞吐量和内存使用情况。

There is a plugin which does JMeter integration for websocket protocol. This might be helpful

有一个插件可以为websocket协议进行JMeter集成。这可能会有所帮助

https://github.com/kawasima/jmeter-websocket/