Web 自动化工具是否适合开发自定义负载/压力测试工具?
WebAii 等工具可用于通过简单的循环连续访问网站。
如果我连续对站点进行大量点击和/或具有自定义模式的能力,这与负载/压力测试工具的功能相同吗?
谢谢
Tools such as WebAii can be used to visit a website, and with a simple loop, in succession.
If I code a lot of hits to a site in succession and/or with the ability for custom patterns, is this the same functionality as a load/stress testing tool?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
本质上是的。但要获得真正的测试,这肯定需要多线程,或者最好在站点的多个客户端上运行以反映并发使用情况。这将使信息收集变得困难(WCAT 在这方面非常有用,但学习曲线有点陡峭)。
当我需要做一些压力测试时,我考虑过自己写一些东西,因为 WCAT 和 WAST 都不适合。如果我研究过 WebAii,我会考虑它。
Essentially, yes. But to get a true test this would most definitely need multithreading or, preferably, be run on numerous clients against the site to reflect concurrent usage. This would make information gathering difficult (WCAT is very good for this but has a bit of steep learning curve).
I had considered writing something myself when I needed to do some stress testing as neither WCAT nor WAST really fit the bill. Had I looked into WebAii I would have considered it.
我不会说这是负载测试,除非您有多个实例正在运行。当对 Web 应用程序进行负载测试并且您使用真实的 Web 浏览器时,每个 CPU/核心有 1 个浏览器被认为是一个很好的经验法则。
您可以使用一些服务来生成实际负载,而无需花费太多钱。
I wouldnt say that this is load testing unless you have a number of instances running. When load testing web applications and you are using real web browsers it is seen as a good rule of thumb to have 1 browser per CPU/core.
There are services that you can use to generate realistic load for not much money.
我们经常使用Web自动化工具结合虚拟机来进行负载测试。每个虚拟机都使用遵循脚本的 Web 驱动程序,并且编写脚本时,它们会在某些检查点进行门控并等待对方,并确保所有计算机及其浏览器都已跟上,然后再继续。这样,关键的事情(例如单击启动密集计算的链接)就可以由所有虚拟机同时完成。
We frequently use web automation tools combined with virtual machines to load test. Each virtual machine uses web drivers following a script, and the scripts are written so that they gate and wait for eachother at certain checkpoints and make sure all machines and their browsers have caught up before continuing. That way key things (like clicking a link that kicks off intense calculation) are done simultaneously by all virtual machines.