我可以使用我的 WatiN 測試來進行壓力測試嗎? (Can i use my WatiN tests to stresstest?)


問題描述

我可以使用我的 WatiN 測試來進行壓力測試嗎? (Can i use my WatiN tests to stresstest?)

在我當前的項目中,我們正在使用 WatiNMbunit.

當我編寫測試時,我意識到如果我們也可以使用所有這些用於壓力測試。目前我們正在使用 Grinder 進行壓力測試,但是我們必須重新編寫腳本,這有很多原因太好了。

我一直在嘗試找到一種工具,可以使用我現有的測試來在網站上創建負載並記錄統計信息,但到目前為止我發現了一些注意事項。


參考解法

方法 1:

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

方法 2:

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.

方法 3:

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

方法 4:

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.

(by Andreas RPaul ShannonRahul KumarCorey GoldbergPatrick Lightbody)

參考文件

  1. Can i use my WatiN tests to stresstest? (CC BY‑SA 2.5/3.0/4.0)

#mbunit #Testing #watin #stress-testing






相關問題

我可以圍繞 NUnit、MbUnit、xUnit 或其他測試框架創建一個包裝器嗎? (Can I create a wrapper around NUnit, MbUnit, xUnit or other testing framework?)

MbUnit / Gallio 上的 FixtureSetup 未運行 (FixtureSetup on MbUnit / Gallio doesn't run)

我可以使用我的 WatiN 測試來進行壓力測試嗎? (Can i use my WatiN tests to stresstest?)

Debug Unit Test bằng cách sử dụng Resharper 7 cho MBUnit ném ra một ngoại lệ (Debug Unit Tests using Resharper 7 for MBUnit throws an exception)

TestDriven.NET沒有運行我的MbUnit的SetUp方法 (TestDriven.NET is not running my SetUp methods for MbUnit)

Gallio用戶,您使用此工具有哪些優缺點? (Users of Gallio, what Advantages and Disadvantages have you experienced using this Tool?)

你知道任何關於 MBUnit 的教程嗎? (do you know any tutorial for MBUnit?)

MbUnit:比較雙打最優雅的方式? (MbUnit: The most elegant way to compare doubles?)

如何將 MBUnit 測試添加到 CruiseControl.Net 配置文件 (how to add MBUnit test to CruiseControl.Net config file)

MbUnit 回滾 (MbUnit Rollback)

使用 MbUnit3 的 [Rollback] 對 NHibernate 與 SQLite 的交互進行單元測試 (Using MbUnit3's [Rollback] for unit testing NHibernate interactions with SQLite)

MbUnit.framework.dll 可並行化屬性 (MbUnit.framework.dll Parallelizable attribute)







留言討論