2017-04-25 39 views
1

我们最近一直使用自供应负载测试设备作为构建的一部分(使用云负载测试构建任务)执行负载测试,使用以下快速入门模板 -无法在自供应负载测试设备上找到免费机器

https://github.com/Azure/azure-quickstart-templates/tree/master/101-vsts-cloudloadtest-rig

这一直很适合我们,但有些事情似乎已经改变,这个过程不再有效。当负载测试任务开始,我们现在得到以下错误:

2017-04-24T14:32:07.4831251Z [Message]This load test was run using self-provisioned rig 'default'. No virtual-user minutes (VUMs) will be charged for this run. 
2017-04-24T14:32:07.4881254Z ##[error]Microsoft.PowerShell.Commands.WriteErrorException: Test run could not be started using the self-provisioned rig 0ebc4aad-33b2-495e-a75a-213d4607976b. Number of free machines available in the rig are less than the required number. (Requested – 1, Available - 0, In-Use – 0, Offline – 3). 

使用ManageVSTSCloudLoadAgent.ps1脚本

https://blogs.msdn.microsoft.com/visualstudioalm/2016/08/23/testing-privateintranet-applications-using-cloud-based-load-testing/

我可以看到,有一个名为“LoadTesting”与代理组我两个配置好的VM,它们都显示为Free。但是,此LoadTesting组的GUID与构建任务尝试使用的错误消息中的GUID不匹配。根据脚本,只有一个钻机可用,所以我不知道云任务从哪里获得另一个。

如何更改任务以使用正确的组?或改变“LoadTesting”组是默认?

我不能负载测试定义中或通过团队服务网站的任何地方找到我在哪里可以修改到钻机它使用。

回答

0

问题解决方案 - 不知道这是如何工作的,但解决方案是将以下上下文参数添加到我们的所有负载测试。

这实际上指定在我发布在我的问题的链接,但由于他们曾经工作过。

Context parameter name – UseStaticLoadAgents 
Context parameter value – true 
Context parameter name – StaticAgentsGroupName 
Context parameter value – <name of the agent group>