使用vs 2010在负载测试中测试迭代设置 [英] Test iteration setting in loadtest using vs 2010

查看:88
本文介绍了使用vs 2010在负载测试中测试迭代设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为250个并发用户测试我的应用程序,我对负载测试设置有些疑问.

I wanted to test my application for 250 concurrent users, I have some doubts about the load test setting.

要实现上述目标,正确的设置应该是什么...

What should be the correct setting to achieve the above...

  1. 我已将最大用户数"设置为250,并在运行设置中将测试迭代次数设置为1,因此它将发送250个虚拟请求???

  1. I have set the Max user count as 250 and test iteration in run setting as 1, So will it send 250 virtual request ???

我必须将最大用户数"设置为250,并在运行设置中将测试迭代次数设置为250

I have to set the Max user count as 250 and test iteration in run setting as 250

推荐答案

以下是有关负载测试设置的一些解释:

Here are some explanations about load test settings:

  1. Constant Load Pattern中,设置负载测试如何创建虚拟用户.
    • 如果您设置Pattern = Constant,则Visual Studio将创建250个虚拟用户,而不意味着您需要它们.因此,如果您有250个用户,而只有10个Tests Iterations,则只有10个用户会发送请求
    • 如果设置了Pattern = Step,则会设置虚拟用户的初始数量,并且在每个测试迭代中虚拟用户的数量将由Step User Count增加.同样,您可以从实际需要的用户中创建更多用户.
  1. In the Constant Load Pattern you set how the load test will create your virtual users.
    • If you Set Pattern = Constant then visual studio will create 250 virtual users without meaning that you need them. So if you have 250 users and only 10 Tests Iterations, only 10 users will send a request
    • If you set Pattern = Step you set an initial number of virtual users and they are increased at each test iteration by the Step User Count. Again, you may create more users form those you will actually need.
  • Test Iterations,它描述了将从所有虚拟用户执行的请求(测试)的总数.因此,如果将此值设置为500,并且具有250个虚拟用户的恒定模式,则每个用户将发送2个请求.也许有些会发送3个,另一些会发送1个,但是总测试(请求)为500.
  • Use Test Iterations设置,该设置描述是应根据Test Iterations设置(先前的场景)还是根据Run Duration设置执行测试.如果将此属性设置为false,则所有虚拟用户将尝试在Test Duration时间内尝试执行尽可能多的请求/测试.
  • The Test Iterations, which describes the total number of requests (tests) that will be executed from all the virtual users. So, if you set this value 500 and you have a Constant Pattern of 250 virtual users, then each user will send 2 requests. Perhaps some will send 3 and some others 1, but the total tests (requests) will be 500.
  • The Use Test Iterations setting which describes whether the test should be executed according to the Test Iterations settings (previous scenario) or according to the Run Duration setting. If you set this property to false, then all virtual users will try to execute as many requests/test as they can in the Test Duration time.

因此,回答您的问题:

我已将最大用户数"设置为250,并在运行设置中将测试迭代次数设置为1,因此它将发送250个虚拟请求???

I have set the Max user count as 250 and test iteration in run setting as 1, So will it send 250 virtual request ???

否,它将仅发送一个请求.如果要进行250次测试,请设置Test Iterations = 250.

No, it will send only one request. Set the Test Iterations = 250 if you want 250 total tests .

我必须将最大用户数"设置为250,并在运行设置中将测试迭代次数设置为250

I have to set the Max user count as 250 and test iteration in run setting as 250

这将发送250个测试,但这并不意味着它们将是并发的. 250个虚拟用户不会一次创建,这取决于他们的初始编号.因此,如果要进行250个并发测试,则必须设置Pattern = Constant.

This will send 250 total tests but it doesn't mean that they will be concurrent. The 250 virtual user will not created at once, it depends of their initial number. So, if you want 250 concurrent tests you must set the Pattern = Constant.

这篇关于使用vs 2010在负载测试中测试迭代设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆