How to spread VUsers across multiple test agents when running load test

浪子不回头ぞ 提交于 2019-12-12 01:37:53

问题


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.

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


回答1:


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".



来源:https://stackoverflow.com/questions/34314649/how-to-spread-vusers-across-multiple-test-agents-when-running-load-test

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!