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