title: No test assemblies found on the test machine 'Aborted state' - VM Test Agent running Selenium tests
body: <p>Setup:</p>
  
  <ol>
  <li>VS CI build configured (pass)</li>
  <li>Deploy TestAgent on VM (pass)</li>
  <li>AzureVM File Copy (pass)</li>
  <li>Run Functional Tests - Selenium (broken)</li>
  </ol>
  
  <p>Here are the logs/errors that I see when this build step executes:</p>
  
  <ul>
  <li>Preparing task execution handler.</li>
  <li>Executing the powershell script:
  d:\a_tasks\RunVisualStudioTestsusingTestAgent_d353d6a2-e361-4a8f-8d8c-123bebb71028\1.0.52\RunDistributedTests.ps1</li>
  <li>DistributedTests: Environment WinRm Protocol HTTPS.</li>
  <li>DistributedTests: Task 'CheckTACompat' on machine
  'AzureVM.canadacentral.cloudapp.azure.com:5986' is being run</li>
  <li>DistributedTests: Task 'CheckTACompat' on machine
  'AzureVM.canadacentral.cloudapp.azure.com:5986' completed.</li>
  <li>DistributedTests: Creating run for selected test plan with following
  parameters</li>
  <li>DistributedTests: Test plan ID: 15</li>
  <li>DistributedTests: Test suite ID: 16,18</li>
  <li>DistributedTests: Test configuration ID: 3</li>
  <li>DistributedTests: Run title: Selenium Test Run</li>
  <li>DistributedTests: is automated: True</li>
  <li>DistributedTests: test settings id : 38</li>
  <li>DistributedTests: build location:
  C:\seleniumwd\seleniumtestproject\bin\debug\</li>
  <li>DistributedTests: build id: 70</li>
  <li>DistributedTests: test configuration mapping:</li>
  <li>DistributedTests: Test Run with Id 41 Queued</li>
  <li>DistributedTests: Please use this link to analyze the test run :</li>
  <li>&lt;></li>
  <li>DistributedTests: Test run '41' is in 'InProgress' state.</li>
  <li>DistributedTests: Total Tests : 2, Passed Tests : 0</li>
  <li>DistributedTests: Test run '41' is in 'Aborted' state.</li>
  <li>DistributedTests: Total Tests : 2, Passed Tests : 0</li>
  <li>DistributedTests: Test run is aborted. Logging details of the run
  logs.</li>
  <li>DistributedTests: New test run created.</li>
  <li>Test Run queued for Project Collection Build Service (App
  Service).</li>
  <li>DistributedTests: Test execution started. Test run id : 41</li>
  <li>DistributedTests: UnExpected error occured during test execution. Try
  again.</li>
  <li>DistributedTests: Error : One or more errors occurred.--->No test
  assemblies found on the test machine matching the source filter
  criteria or no tests discovered matching test filter criteria. Verify
  that test assemblies are present on the machine and test filter
  criteria is correct.</li>
  <li>DistributedTests: Test run aborted. Test run id: 41 System.Exception:
  The test run was aborted, failing the task. PowerShell script
  completed with 1 errors.</li>
  </ul>
  
  <p>In my Azure File copy task I have this:
  Source: $/baseproject/SeleniumTestProject1
  Destination Folder: C:\seleniumwd\seleniumtestproject\</p>
  
  <p>If I go to the Azure VM and look at that destination folder, I see the following files/folders inside</p>
  
  <ul>
  <li>bin</li>
  <li>obj</li>
  <li>Properties</li>
  <li>Packages</li>
  <li>3 C# selenium tests (.cs)</li>
  <li>1 test project (seleniumTestProject)</li>
  </ul>
  
  <p>bin/debug/ on the test agent contains the test project dll (SeleniumTestProject.dll) and all the dlls and webdriver files.</p>
  
  <p>obj/debug/ on the test agent contains the test project dll (SeleniumTestProject.dll) and some text and cache files</p>
  
  <p>When I point the Run Functional Tests task at either of the above folders, I get the error mentioned earlier.  </p>
  
  <p>If I switch the test task to use Assemblies instead of test plan I am still not successful.  </p>
  
  <p>Any ideas how to properly point to the assemblies?</p>