vNext and new task RunDistributedTests - parallel

2019-09-10 19:07发布

问题:

In TFS update 2 is available new task "RunDistributedTests" it can work with test plans and test suites. In my case I want run test suite on 5 machines at the same time (parallel testing)

My test suite include Coded UI tests. The machine group to consists of 5 tests machine.

After execution I see the next result: The tests running only one machine that is the first at the list of Machine group. Other machines doesn't have any action.

I checked the log file DTAExecutionHost.exe.log and found this exception on each machine where tests doesn't run:

/tfs/Projects/_apis/test/Agents/97/Commands/0] (GET)0[test] \DTAExecutionHost, TestExecutionServiceCommandQueueListener.DispatchAsync : A TestExecutionObjectNotFoundException has occured. \DTAExecutionHost, TestExecutionServiceCommandQueueListener.SendStopCommandToHandleException : An exception occured in queue listener. Microsoft.TeamFoundation.Test.WebApi.TestExecutionObjectNotFoundException: TestAgent 97 not found. at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.HandleResponse(HttpResponseMessage response) at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.d__79.MoveNext() --- End of stack trace from previous location where exception was thrown ---

Maybe someone has already met with a similar problem I will be glad of any help Thanks!