Visual Studio Ultimate 具有“Web 性能测试”功能,可让您指定测试运行的次数。但看起来它一个接一个地运行这些测试。例如,如果您指定 100,它将连续运行 100 次测试。
是否可以同时运行 100 个测试以对 Web 应用程序进行压力测试?如果没有,Visual Studio 提供了什么可用于压力测试?
最佳答案
使用 VS Ultimate 时,您可以对 Web 应用程序执行大量测试。 来自 here:
When you add Web performance tests to a load test, you simulate multiple users opening simultaneous connections to a server and making multiple HTTP requests. You can set properties on load tests that widely apply to the individual Web performance tests.
Smoke: How your application performs under light loads for short durations.
Stress: To determine if your application will run successfully for a sustained duration under heavy load.
Performance: How responsive your application is.
Capacity Planning: How your application performs at various capacities.
在这种情况下,您需要使用新负载测试向导创建压力测试。
希望对您有所帮助!
关于c# - Visual Studio 的 Web 性能测试可以用作 Web 场的压力测试吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12241106/