使用测试代理使用Build Task Run功能测试时,测试用例的分发无效 [英] Distribution of Test Cases is not working while using Build Task Run functional test using test agents

查看:88
本文介绍了使用测试代理使用Build Task Run功能测试时,测试用例的分发无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用测试代理使用构建任务运行功能测试来自动化我的测试套件。当我使用托管代理进行poc时,来自单个程序集的测试用例的切片工作正常并且在两个不同的
VM上统一分发。但是在使用内部构建代理时,切片不起作用。我已经将构建代理更新为
2.105.2 。

I have been working latetly automation of my test suits using build task run functional test using test agents. When I did poc with hosted agent , the slicing of test cases coming from single assembly was working and were distributed uniformly on two different VMs. But when using on premises build agent ,the slicing is not working. I have already updted build agent to 2.105.2.

并且还在远程VM上更新了测试代理。但是当运行测试任务开始时,我仍然会收到此警告。

And also have updated test agents on the remote VMs. But I still get this warning when run tests task starts.

我有五个VM但是运行总是只使用三个虚拟机(因为有三个测试用例)。 

I have five VMs but the run always uses three VMs only (since there are three dlls of test cases). 

请建议我做错了什么。

Please suggest what I am doing wrong.

推荐答案

在进一步的研究中,它出现了Microsoft的类InvokeRundistributedTestsCmdLet。 TeamFoundation.DistributedTask.Task.LegacySDK.dll没有启用自定义切片作为参数。为什么它与托管代理合作。这是否意味着上述
dll在托管代理的情况下有所不同?
On further investiation it appears class InvokeRundistributedTestsCmdLet of  Microsoft.TeamFoundation.DistributedTask.Task.LegacySDK.dll doesn't have custom slicing enabled as a parameter. Why it was working with hosting agent. Does it mean the aforementioned dll is different in case of hosted agent ?


这篇关于使用测试代理使用Build Task Run功能测试时,测试用例的分发无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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