如何在运行负载测试时跨多个测试代理传播VUsers [英] How to spread VUsers across multiple test agents when running load test

查看:194
本文介绍了如何在运行负载测试时跨多个测试代理传播VUsers的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在visual studio 2015中运行负载测试。我有1个测试控制器,有3个测试代理程序设置。我已经将代理的权重设置为33,我想要均匀地分布在他们的用户。当我运行测试,我看到证据,它尝试登录与所有3代理上的相同的用户,并且测试正在运行我注意到有1成功登录和2失败/用户,我认为发生,因为他们都尝试立即登录。

I'm trying to run a load test in visual studio 2015. I have 1 test controller with 3 test agents setup. I have set the weighting of the agents to 33 each as I would like to spread the userload evenly across them. When I run the test I see evidence that it tries log in with the same user on all 3 agents, and as the tests are running I'm observing that there is 1 successfull login and 2 failed / user, which I assume is happening because they all try to log in at once.

如何确保1个Vuser只分配给一个代理? (1个代理当然可以有多个用户)

How can I make sure that 1 Vuser is assigned to one agent only? (1 agent can have multiple users of course)

推荐答案

设置访问方法属性的数据源到 Unique 。请参见这里了解更多详情。简而言之,对于 Sequential Random 访问方法,将所有数据的完整副本发送到每个代理。对于 Unique ,数据被拆分为一块,每个代理获得一个块,从而保持所需的仅使用每个数据值一次。

Set the Access method property of the data source to Unique. See here for more details. In brief, for the Sequential and Random access methods a full copy of all of the data is sent to each agent. For Unique the data is split into pieces and each agent gets one piece, thus maintaining the desired "use each data value only once".

这篇关于如何在运行负载测试时跨多个测试代理传播VUsers的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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