VS 2010 Web负载测试-为每个虚拟用户从CSV设置唯一值 [英] VS 2010 web Load Test- Set Unique value for each Virtual User from CSV

查看:82
本文介绍了VS 2010 Web负载测试-为每个虚拟用户从CSV设置唯一值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在CSV中有50个用户名和密码.我想运行一个Web负载测试,其中在多次迭代的负载测试的持续时间(1hr)中为每个虚拟用户分配了一个唯一的值.在VS 2010 Ultimate Edition中如何做到这一点.

I have 50 username and password in a CSV. I want to run a web Load Test where each Virtual user is assigned one unique value for the duration (1hr) of the load test for multiple iterations. How is this done in VS 2010 Ultimate edition.

谢谢

推荐答案

@agentnega提到的警告让我很纳闷,所以我发现了这一点

The caveat mentioned by @agentnega kinda got me wondering so I found this

单机运行测试

  • 顺序-这是默认设置,它告诉Web测试以 然后第一行从数据源中按顺序获取行.什么时候 到达数据源的末尾,循环回到起始位置,然后 重新开始.继续直到负载测试完成.在负载测试中 在每个Web测试中为每个数据源保留当前行,而不是 对于每个用户.当任何用户使用给定的网站开始迭代时 测试,它们被赋予下一行数据,然后光标 高级.

  • Sequential – This is the default and tells the web test to start with the first row then fetch rows in order from the data source. When it reaches the end of the data source, loop back to the beginning and start again. Continue until the load test completes. In a load test, the current row is kept for each data source in each web test, not for each user. When any user starts an iteration with a given Web test, they are given the next row of data and then the cursor is advanced.

随机-这表示随机选择行.继续直到 负载测试完成.

Random – This indicates to choose rows at random. Continue until the load test completes.

唯一-表示从第一个开始 行并按顺序获取行.使用完每一行后,停止网络 测试.如果这是负载测试中唯一的Web测试,则负载 测试将停止.

Unique - This indicates to start with the first row and fetch rows in order. Once every row is used, stop the web test. If this is the only web test in the load test, then the load test will stop.

多台以钻机运行的机器

  • 顺序-与使用一台计算机时的工作原理相同.每个代理都接收数据的完整副本,并且每个代理都以数据源中的第1行开始.然后,每个代理将遍历数据源中的每一行,并继续循环直到负载测试完成.

  • Sequential – This works that same as if you are on one machine. Each agent receives a full copy of the data and each starts with row 1 in the data source. Then each agent will run through each row in the data source and continue looping until the load test completes.

随机-这也和在一台计算机上运行测试一样.每个代理都会收到数据源的完整副本,并随机选择行.

Random - This also works the same as if you run the test on one machine. Each agent will receive a full copy of the data source and randomly select rows.

独特-此作品的工作方式略有不同.数据源中的每一行将使用一次.因此,如果您有3个代理,则数据将分布在这3个代理中,并且不会重复使用任何行.与一台机器一样,每行使用一次后,Web测试将停止执行.

Unique - This one works a little differently. Each row in the data source will be used once. So if you have 3 agents, the data will be spread across the 3 agents and no row will be used more than once. As with one machine, once every row is used, the web test will stop executing.

来源 http://vsptqrg.codeplex.com/

这篇关于VS 2010 Web负载测试-为每个虚拟用户从CSV设置唯一值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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