简体   繁体   English

如何使用多线程,单迭代加载测试

[英]How to load test with multiple thread, single iteration

I created multiple webtests for different user performing different actions in my webapp. 我为不同的用户在我的Web应用程序中执行不同操作创建了多个Web测试。 What I want to do is creating a Load Test which starts all webtests at the same time, and each runs one time only. 我想要做的是创建一个负载测试,该负载测试可同时启动所有Web测试,并且每个测试只能运行一次。 It seems that no Load Test Model in VS fits my case. 似乎VS中没有负载测试模型适合我的情况。

Does anyone encounter this before? 有人遇到过吗?

You should be able to do that. 您应该能够做到这一点。 One way to do it would be to 一种方法是

make the number of users equal to the number of tests you have use a constant load pattern in Run Settings,set "use test iterations to true" in Run Settings, set test iterations to the number of tests you have. 使用户数等于您在“运行设置”中使用恒定负载模式的测试数量,在“运行设置”中将“使用测试迭代次数设置为true”,将测试迭代次数设置为您拥有的测试次数。

However, starting all users exactly at the same time usually does not make sense because it will overload the server under test. 但是, 完全同时启动所有用户通常没有意义,因为这会使测试中的服务器过载。 So I would say, don't use a constant load pattern, but rather use a 1 second ramp up for your users. 因此,我想说的是,不要使用恒定的负载模式,而要为用户使用1秒的加速时间。

I believe there are other ways to do this to. 我相信还有其他方法可以做到这一点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM