5

我对一个非常大的产品(想想操作系统的大小)进行了某种集成/压力测试,最近我和我的团队一直在讨论更好地组织我们的测试工作负载的方法。到目前为止,我们一直满足于将所有(自定义)工作负载应用程序放在一系列批处理类型的作业中,每个作业都代表一个单一的压力测试运行。现在我们的平均测试运行涉及跨 13 个系统运行的超过 100 个工作负载,我们认为是时候构建一些更高级的东西了。

我已经看到了很多关于单元测试框架的内容,但对于更高级别的压力类型测试却很少。有谁知道解决管理大量工作负载问题的常见(或不常见)方式?

现在,我们希望保留每个单独工作负载的数据库,并提供一个前端来根据我们在给定一天所需的压力类型将它们混合并匹配到测试包中,但我们没有任何示例做更高级的事情的最佳方法,例如对每个单独的工作负载对系统施加的压力进行排名。

我的大型产品压力测试人员在做什么?对我们来说,一些手卷的脚本将不再适用。

4

2 回答 2

1

我自己的经验最初是在 IIS 平台上使用 WCAT,后来使用 JMeter 和 Selenium。

WCAT 和 JMeter 都允许您作为路线浏览网站、填写表格等,并将该过程记录为脚本。然后可以单独播放脚本或模拟多个客户端和多个线程。随机播放以模拟块状和不可预测的使用等。

一旦你知道你要去哪里,这些脚本可以被编辑,或者可以手写。WCAT 将允许您从日志文件回放以及允许您模拟真实世界的使用。

以上两个都安装在PC或服务器上。

Selenium 是一个 FireFox 插件,但以类似的方式记录和播放脚本并允许扩展。

更难的是制定您正在测试的场景,然后设计测试以适应它们。还需要考虑与数据库和其他外部资源的交互。除了花费大量时间查看日志文件之外,良好的图形输出是必不可少的。

于 2009-12-23T15:03:48.780 回答
0

The most difficult thing for me was to collect and organized performance metrics from servers under load. Performance Monitor was my main tool. When Visual Studio Tester edition came up I was astonished how easy it was to work with performance counters. They pre-packaged a list of counters for a web server, SQL server, ASP.NET application, etc. I learned about a bunch of performance counters I did not know even exist. In addition you can collect your own counters too. You can store metrics after each run. You can also connect to production servers and see how they are feeling today. Then I see all those graphics in real time I feel empowered! :) If you need more load you can get VS Load Agents and create load generating rig (or should I call it botnet). Comparing to over products on the market it is relatively inexpensive. MS license goes per processor but not per concurrent request. That means you can produce as much load as your hardware can handle. On average, I was able to get about 3,000 concurrent web requests on dual-core, 2GB memory computer. In addition you can incorporate performance tests into your builds.

Of course it goes for Windows. Besides the price tag of about $6K for the tool could be a bit high, plus the same amount of money per additional load agent.

于 2009-12-23T21:27:48.167 回答