title: Error while executing Run Functional Test task in VSTS
body: <p>In VSTS 2015 we have build and release pipeline setup in a project which is using NUnit test framework.
  We are trying to configure Integration test case execution using "Run Functional Task" configuration of the task is given in the screenshot below:</p>
  
  <p><a href="https://i.stack.imgur.com/BZHe9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BZHe9.png" alt="enter image description here"></a></p>
  
  <p>Visual Test Agent Deployment Task is used to Deploy the NUnit Test Agent in target machine.</p>
  
  <p><a href="https://i.stack.imgur.com/s2kjY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/s2kjY.png" alt="Visual Studio Test Agent Deployment"></a></p>
  
  <p>There is a folder that is created in Target Machine where all test assemblies are getting copied i.e. C:\TestDlls and for NUnit Adapter assemblies C:\PIMPackages</p>
  
  <p>The Agent deployment task is getting executed successfully but it get aborted in
  "Run Functional Test" with below error message:</p>
  
  <pre><code>2016-04-14T09:51:08.0151865Z DistributedTests: Test run '65' is in 'Aborted' state.
  2016-04-14T09:51:18.0177458Z ##[warning]DistributedTests: Test run is aborted. Logging details of the run logs.
  2016-04-14T09:51:18.2601235Z ##[warning]DistributedTests: New test run created.
  2016-04-14T09:51:18.2601235Z ##[warning]Test Run queued for Project Collection Build Service (deepaksoniv).
  2016-04-14T09:51:18.2611323Z ##[warning]DistributedTests: Test discovery started.
  2016-04-14T09:51:18.2621353Z ##[warning]DistributedTests: Test Run Discovery Aborted . Test run id : 65
  2016-04-14T09:51:18.2631347Z ##[warning]DistributedTests: UnExpected error occured during test execution. Try again.
  2016-04-14T09:51:18.2631347Z ##[warning]DistributedTests: Error : NUnit Adapter 3.0.8.0 discovering test is finished
  2016-04-14T09:51:18.2641325Z ##[warning]DistributedTests: Test run aborted. Test run id: 65
  2016-04-14T09:51:18.2681313Z ##[error]The test run was aborted, failing the task.
  </code></pre>
  
  <p>In Target Machine where Test Agent is getting deployed the DTAEXecutionHost log file abstract:</p>
  
  <pre><code>V, 3780, 11, 2016/04/14, 09:50:57.073, PIMNEWVM\DTAExecutionHost, TestCaseFilter.GetTestPropertiesInTraitDictionary : Populating trait dictionary with test case properties.
  V, 3780, 11, 2016/04/14, 09:50:57.073, PIMNEWVM\DTAExecutionHost, TestCaseFilter.GetTestPropertiesInTraitDictionary : Populating trait dictionary with test case 
  
  -------------------------------------------------------------------------------------------------
  
  [test] 8260 ms
  V, 3780, 10, 2016/04/14, 09:51:00.401, PIMNEWVM\DTAExecutionHost, TestExecutionServiceCommandQueueListener:DispatchAsync
  I, 3780, 10, 2016/04/14, 09:51:00.401, PIMNEWVM\DTAExecutionHost, ExecutionTaskStateModel.ListenerCommandReceived : Requesting a stop on Stop command.
  I, 3780, 10, 2016/04/14, 09:51:00.401, PIMNEWVM\DTAExecutionHost, TestExecutionServiceCommandQueueListener.DispatchAsync : Stop listening on Stop command.
  I, 3780, 9, 2016/04/14, 09:51:00.401, PIMNEWVM\DTAExecutionHost, ExecutionTaskStateModel.RunStateTransitionsAsync : The task was cancelled
  I, 3780, 9, 2016/04/14, 09:51:00.416, PIMNEWVM\DTAExecutionHost, Removing agent setting 
  
  -------------------------------------------------------------------------------------------------
  
  I, 3780, 9, 2016/04/14, 09:51:00.416, PIMNEWVM\DTAExecutionHost, Removing agent setting DtlMachineName on agent machine - 64 bit hive
  I, 3780, 9, 2016/04/14, 09:51:00.416, PIMNEWVM\DTAExecutionHost, Removed agent setting DtlMachineName on agent machine - 64 bit hive
  I, 3780, 9, 2016/04/14, 09:51:00.416, PIMNEWVM\DTAExecutionHost, ExecutionHost.UnregisterFromServer : Agent is unregistering from server.
  </code></pre>
  
  <p>Please help.</p>