{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/2370","repository_url":"https://api.github.com/repos/Microsoft/vsts-tasks","labels_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/2370/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/2370/comments","events_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/2370/events","html_url":"https://github.com/Microsoft/vsts-tasks/issues/2370","id":174040767,"number":2370,"title":"Distributing tests based on number of machines","user":{"login":"kardinal3000","id":18549964,"avatar_url":"https://avatars.githubusercontent.com/u/18549964?v=3","gravatar_id":"","url":"https://api.github.com/users/kardinal3000","html_url":"https://github.com/kardinal3000","followers_url":"https://api.github.com/users/kardinal3000/followers","following_url":"https://api.github.com/users/kardinal3000/following{/other_user}","gists_url":"https://api.github.com/users/kardinal3000/gists{/gist_id}","starred_url":"https://api.github.com/users/kardinal3000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kardinal3000/subscriptions","organizations_url":"https://api.github.com/users/kardinal3000/orgs","repos_url":"https://api.github.com/users/kardinal3000/repos","events_url":"https://api.github.com/users/kardinal3000/events{/privacy}","received_events_url":"https://api.github.com/users/kardinal3000/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/vsts-tasks/labels/Area:%20Test","name":"Area: Test","color":"b60205"}],"state":"open","locked":false,"assignee":{"login":"acesiddhu","id":1168823,"avatar_url":"https://avatars.githubusercontent.com/u/1168823?v=3","gravatar_id":"","url":"https://api.github.com/users/acesiddhu","html_url":"https://github.com/acesiddhu","followers_url":"https://api.github.com/users/acesiddhu/followers","following_url":"https://api.github.com/users/acesiddhu/following{/other_user}","gists_url":"https://api.github.com/users/acesiddhu/gists{/gist_id}","starred_url":"https://api.github.com/users/acesiddhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acesiddhu/subscriptions","organizations_url":"https://api.github.com/users/acesiddhu/orgs","repos_url":"https://api.github.com/users/acesiddhu/repos","events_url":"https://api.github.com/users/acesiddhu/events{/privacy}","received_events_url":"https://api.github.com/users/acesiddhu/received_events","type":"User","site_admin":false},"assignees":[{"login":"acesiddhu","id":1168823,"avatar_url":"https://avatars.githubusercontent.com/u/1168823?v=3","gravatar_id":"","url":"https://api.github.com/users/acesiddhu","html_url":"https://github.com/acesiddhu","followers_url":"https://api.github.com/users/acesiddhu/followers","following_url":"https://api.github.com/users/acesiddhu/following{/other_user}","gists_url":"https://api.github.com/users/acesiddhu/gists{/gist_id}","starred_url":"https://api.github.com/users/acesiddhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acesiddhu/subscriptions","organizations_url":"https://api.github.com/users/acesiddhu/orgs","repos_url":"https://api.github.com/users/acesiddhu/repos","events_url":"https://api.github.com/users/acesiddhu/events{/privacy}","received_events_url":"https://api.github.com/users/acesiddhu/received_events","type":"User","site_admin":false}],"milestone":null,"comments":9,"created_at":"2016-08-30T14:50:47Z","updated_at":"2016-09-08T16:31:47Z","closed_at":null,"body":"Guys, I found this [article  ](https://blogs.msdn.microsoft.com/visualstudioalm/2016/06/21/remote-testing-distributing-tests-based-on-number-of-machines/) \r\nI use Build Agent Version 2.105.2 also use  tasks DeployVisualStudioTestAgent ver. 1.0.36 and  RunDistributedTests ver. 1.0.41\r\n\r\nI have single assembly include 100 tests  also  have group machine 4  VMs.\r\nI set \"customSlicingEnabled\"\r\n![2016-08-30 17_47_14-remote testing distributing tests based on number of machines _ microsoft appl](https://cloud.githubusercontent.com/assets/18549964/18093833/f43d9ae4-6ed9-11e6-8722-d8adb75b141a.png)\r\n\r\nResult I see runs my test only one machine.\r\nPlease suggest what I am doing wrong.\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/comments/245656805","html_url":"https://github.com/Microsoft/vsts-tasks/issues/2370#issuecomment-245656805","issue_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/2370","id":245656805,"user":{"login":"geoffstew4","id":22081078,"avatar_url":"https://avatars.githubusercontent.com/u/22081078?v=3","gravatar_id":"","url":"https://api.github.com/users/geoffstew4","html_url":"https://github.com/geoffstew4","followers_url":"https://api.github.com/users/geoffstew4/followers","following_url":"https://api.github.com/users/geoffstew4/following{/other_user}","gists_url":"https://api.github.com/users/geoffstew4/gists{/gist_id}","starred_url":"https://api.github.com/users/geoffstew4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geoffstew4/subscriptions","organizations_url":"https://api.github.com/users/geoffstew4/orgs","repos_url":"https://api.github.com/users/geoffstew4/repos","events_url":"https://api.github.com/users/geoffstew4/events{/privacy}","received_events_url":"https://api.github.com/users/geoffstew4/received_events","type":"User","site_admin":false},"created_at":"2016-09-08T16:31:47Z","updated_at":"2016-09-08T16:31:47Z","body":"After adding CustomSlicing to RunSettings we are getting the error below.  If I don't specify the runsettings file then tests run fine but don't distribute across machines.  We also get this error when we try to run using TestPlan instead of TestAssembly.  Any guidance on what to check?\r\n\r\n\r\n2016-09-08T16:04:02.9480498Z ##[warning]Update the build agent to run tests with uniform distribution. If you are using hosted agent there are chances that it is still not updated, so retry using your own agent.\r\n\r\n5 2016-09-08T16:04:03.0886726Z DistributedTests: Environment WinRm Protocol HTTP.\r\n6 2016-09-08T16:04:03.0886726Z DistributedTests: Trying to unregister TestAgents from Test Machines\r\n7 2016-09-08T16:04:03.1667965Z DistributedTests: Task 'UnRegisterAgent' on machine 'spo-iap-auto-03.itron.com:5985' is being run\r\n8 2016-09-08T16:04:03.1667965Z DistributedTests: Task 'UnRegisterAgent' on machine 'spo-iap-auto-02.itron.com:5985' is being run\r\n10 2016-09-08T16:04:03.1667965Z Unhandled Exception: System.AggregateException: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> System.ArgumentNullException: Value cannot be null.\r\n11 2016-09-08T16:04:03.1667965Z Parameter name: deploymentMachine.Credentials.UserName\r\n12 2016-09-08T16:04:03.1667965Z    at Microsoft.VisualStudio.Services.DevTestLabs.Definition.ValidationHelpers.ValidateNullOrWhitespaceParameter(String paramName, String paramValue)\r\n13 2016-09-08T16:04:03.1667965Z    at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.DeploymentClient.<RunPowerShellAsync>d__15.MoveNext()\r\n14 2016-09-08T16:04:03.1667965Z --- End of stack trace from previous location where exception was thrown ---\r\n15 1016-09-08T16:04:03.1667965Z    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n16 2016-09-08T16:04:03.1667965Z    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n17 2016-09-08T16:04:03.1667965Z    at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.DeploymentClient.<RunPowerShellAsync>d__14.MoveNext()\r\n18 2016-09-08T16:04:03.1667965Z    --- End of inner exception stack trace ---\r\n19 2016-09-08T16:04:03.1667965Z    at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)\r\n20 2016-09-08T16:04:03.1667965Z    at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)\r\n21 2016-09-08T16:04:03.1667965Z    at Microsoft.TeamFoundation.DistributedTask.Task.DistributedTestAutomation.DtlMachineDeploymentHelper.<>c__DisplayClass33_0.<WaitTillCompletion>b__0(KeyValuePair`2 deploymentTask)\r\n22 2016-09-08T16:04:03.1667965Z    at System.Threading.Tasks.Parallel.<>c__DisplayClass42_0`2.<PartitionerForEachWorker>b__1()\r\n23 2016-09-08T16:04:03.1667965Z    at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)\r\n24 2016-09-08T16:04:03.1667965Z    at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object )\r\n25 2016-09-08T16:04:03.1667965Z    --- End of inner exception stack trace ---\r\n26 2016-09-08T16:04:03.1667965Z    at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)\r\n27 2016-09-08T16:04:03.1667965Z    at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)\r\n28 2016-09-08T16:04:03.1667965Z    at System.Threading.Tasks.Parallel.PartitionerForEachWorker[TSource,TLocal](Partitioner`1 source, ParallelOptions parallelOptions, Action`1 simpleBody, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)\r\n29 2016-09-08T16:04:03.1667965Z    at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)\r\n30 2016-09-08T16:04:03.1667965Z    at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable`1 source, Action`1 body)\r\n31 2016-09-08T16:04:03.1667965Z    at Microsoft.TeamFoundation.DistributedTask.Task.DistributedTestAutomation.DtlMachineDeploymentHelper.WaitTillCompletion(Dictionary`2 taskList, String friendlyNameOfTask, Boolean addToErrorMachines)\r\n32 2016-09-08T16:04:03.1667965Z    at Microsoft.TeamFoundation.DistributedTask.Task.DistributedTestAutomation.DtlMachineDeploymentHelper.<>c__DisplayClass31_0.<RunTaskViaDtl>b__0()\r\n33 2016-09-08T16:04:03.1667965Z    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)\r\n34 2016-09-08T16:04:03.1667965Z    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)\r\n35 2016-09-08T16:04:03.1667965Z    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n36 2016-09-08T16:04:03.1667965Z    at System.Threading.ThreadHelper.ThreadStart()\r\n\r\n"}}
{"actor":{"display_login":"geoffstew4"}}