我可以使用 WatiN 测试进行压力测试吗?

发布于 2024-07-06 12:53:02 字数 447 浏览 9 评论 0原文

在我当前的项目中,我们正在使用 WatiNMbunit

当我编写测试时,我意识到如果我们也可以使用所有这些进行压力测试,那就太好了。 目前,我们正在使用 Grinder 进行压力测试,但随后我们必须重新编写案例脚本,由于多种原因,我们无法那么好。

我一直在尝试找到一个可以使用我现有的测试在网站上创建负载并记录统计数据的工具,但到目前为止我发现了一些注意事项。 有没有这样的工具或者有一种简单的方法来创建一个?

In my current project we are testing our ASP.NET GUI using WatiN and Mbunit.

When I was writing the tests I realized that it would be great if we also could use all of these for stresstesting. Currently we are using Grinder to stresstest but then we have to script our cases all over again which for many reasons isent that good.

I have been trying to find a tool that can use my existing tests to create load on the site and record stats, but so far i have found noting. Is there such a tool or is there an easy way to create one?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

少女的英雄梦 2024-07-13 12:53:02

运行 WatiN 测试时,我们的构建服务器上存在问题,因为它经常在尝试访问 Internet Explorer COM 组件时引发超时。 在等待整个页面加载时,它似乎随机挂起。

鉴于此,我不建议将其用于压力测试,因为结果不准确并且测试可能很慢。

我建议使用 JMeter 对 GUI 发出的 HTTP 请求进行线程调用

We have issues on our build server when running WatiN tests as it often throws timeouts trying to access the Internet Explorer COM component. It seems to hang randomly while waiting for the total page to load.

Given this, I would not recommend it for stress testing as the results will be inaccurate and the tests are likely to be slow.

I would recommend JMeter for making threaded calls to the HTTP requests that your GUI is making

他是夢罘是命 2024-07-13 12:53:02

对于负载测试,有一个看起来很有前途的工具 - LoadStorm。 25 位用户免费。 它的部署需求为零,因为这是基于云的服务。

For load testing there is a tool which looks promising - LoadStorm. Free for 25 users. It has zero deployment needs as this is a cloud based service.

昵称有卵用 2024-07-13 12:53:02

您可以为压力测试构建一个负载控制器。 它可以接受您的 watin 测试并以多线程/多进程的方式运行它们。

You could build a load controller for your stress testing. It could take your watin tests and run them in a multithreaded/multiprocessed way.

叫思念不要吵 2024-07-13 12:53:02

如果您习惯使用 Selenium 而不是 WatiN,请查看 BrowserMob 进行基于浏览器的负载测试。 我是 Selenium RC 的作者之一,并启动了 BrowserMob 来提供一种新的负载测试方法。 通过使用真实的浏览器而不是模拟流量,测试最终会更容易编写脚本和维护。

If you are comfortable using Selenium instead of WatiN, check out BrowserMob for browser-based load testing. I'm one of the Selenium RC authors and started BrowserMob to provide a new way to load test. By using real browsers, rather than simulated traffic, tests end up being much easier to script and maintain.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文