简体   繁体   English

TFS Visual Studio 2015负载测试Intranet网站设置

[英]TFS Visual Studio 2015 Load Test Intranet WebSite Setup

What I am trying to accomplish is run a load of 6000 vUsers on a web page. 我要完成的工作是在一个网页上运行6000个vUsers。 I cannot figure out how to call the load controllers. 我不知道如何调用负载控制器。 I cannot find any clear documentation about what to do next to call my load tests and assign the work to multiple load controllers. 我找不到关于如何调用负载测试并将工作分配给多个负载控制器的下一步的明确文档。 Since this is internal to my company. 因为这是我公司内部的。 I cannot use VSTS load controllers. 我无法使用VSTS负载控制器。

Based on these pages https://blogs.msdn.microsoft.com/edwinh/2016/04/21/guide-to-get-started-with-visual-studio-web-load-testing-and-automation-2/ https://msdn.microsoft.com/library/dn250793(v=vs.120).aspx#Anchor_3 基于这些页面https://blogs.msdn.microsoft.com/edwinh/2016/04/21/guide-to-get-start-with-visual-studio-web-load-testing-and-automation-2/ https://msdn.microsoft.com/library/dn250793(v=vs.120).aspx#Anchor_3

You can install load controllers on other servers. 您可以在其他服务器上安装负载控制器。 I have done this. 我已经做到了 在此处输入图片说明

I connected to the load controller in the load settings file. 我在负载设置文件中连接到负载控制器。 But, how would I attached to two or more load controllers? 但是,我将如何连接到两个或多个负载控制器? 在此处输入图片说明

I also tried a build test using the solution test settings file. 我还尝试使用解决方案测试设置文件进行构建测试。 I also don't see a way to attach to many load controllers. 我也没有看到附加到许多负载控制器的方法。 If i run the test build it runs.. but i have no info to see if it even ran the test. 如果我运行测试版本,它将运行..但是我没有任何信息来查看它是否运行了测试。 在此处输入图片说明 在此处输入图片说明

Load tests that need more resources than can be run directly from Visual Studio can use a controller and some agents. 需要比直接从Visual Studio直接运行更多资源的负载测试可以使用控制器和某些代理。 Only one controller can be used for a load test but it can control many agents. 只能将一个控制器用于负载测试,但它可以控制许多代理。 See here for a very brief idea of how it works. 有关其工作原理的简要说明, 请参见此处

Having configured a controller, the agents can be configured. 配置了控制器之后,就可以配置代理了。 Each agent is configured to work for a specific controller. 每个代理都配置为可用于特定控制器。 The .testsettings file in the solution names the controller that is to be used for the test. 解决方案中的.testsettings文件为要用于测试的控制器命名。 The solution may have multiple .testsettings files. 该解决方案可能具有多个.testsettings文件。 The context menu of one of them in solution explorer should have a "tick" against "Active load and web test settings". 在解决方案资源管理器中,其中一个的上下文菜单应针对“活动负载和Web测试设置”具有一个“刻度”。

Visual Studio 2015 introduced a new scheme where Visual Studio is the only controller for a 2015-Agents. Visual Studio 2015引入了一种新方案,其中Visual Studio是2015-Agent的唯一控制器。 The documentation I have seen is not clear on how to use this 2015-Agent. 我看到的文档尚不清楚如何使用此2015-Agent。 However, the 2013 versions of both controller and agent can be used with Visual Studio 2015. 但是,控制器和代理的2013版本都可以与Visual Studio 2015一起使用。

One way of seeing whether the load test have run is to look for the test results with Visual Studio. 查看负载测试是否已运行的一种方法是使用Visual Studio查找测试结果。 Open any .loadtest file, use the Open and manage results command and select <Show results for all tests> . 打开任何.loadtest文件,使用“ Open and manage results命令,然后选择“ <Show results for all tests> Should then see all the test runs saved in the database. 然后应该看到所有测试运行保存在数据库中。 You would also need to check that the connection string refers to the database used by the controller. 您还需要检查连接字符串是否引用了控制器使用的数据库。

I have not run tests from the TFS build environment, so I cannot comment on how that may affect what happens. 我还没有在TFS构建环境中运行测试,因此无法评论这可能会影响到什么。

You have to install at least 1 agent to connect all the load controllers together. 您必须至少安装1个代理程序才能将所有负载控制器连接在一起。 Specifically if you are running 2015. like I am. 特别是如果您正在运行2015。就像我一样。 You have to install the 2013 Update 5 agents and controllers to make it all work. 您必须安装2013 Update 5代理和控制器才能使其全部正常工作。

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

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