我们有两个控制器来执行相同的单元测试,但得到的结果不同。我不知道是什么原因。
Controller1:跳过了一半的单元测试用例
输出:程序集unitTest.dll失败。总计:836,通过:418,失败:0,其他:418点击此处了解详情
输出结果cleanupScript.log显示TotalAgents = 2
Controller2:所有单元测试用例都成功
问题:为什么controller1中的unitTest.dll被分配给两个代理?为什么要跳过controller1中的一半测试用例?虚拟机是否与测试代理分配有关?
答案 0 :(得分:0)
您可以在控制器的配置文件(QTController.exe.config,在VS安装路径中)中检查Bucket size和MinimumTestsPerAgent设置
一些文章:
How to: Run Automated Tests on Multiple Computers at the Same Time From a Test Plan
How to run automated tests on different machines in parallel?