Testfx: An exception occurred while invoking executor 'executor://mstestadapter/v2': Method 'get_Properties'

Created on 12 May 2018  路  4Comments  路  Source: microsoft/testfx

2018-05-12T02:02:28.4850560Z ##[section]Starting: VsTest - All
2018-05-12T02:02:28.4857623Z ==============================================================================
2018-05-12T02:02:28.4858028Z Task : Visual Studio Test
2018-05-12T02:02:28.4858647Z Description : Run unit and functional tests (Selenium, Appium, Coded UI test, etc.) using the Visual Studio Test runner. Test frameworks that have a Visual Studio test adapter such as xUnit, NUnit, Chutzpah, etc. can also be run. Tests can be distributed on multiple agents using this task (version 2).
2018-05-12T02:02:28.4859452Z Version : 2.5.8
2018-05-12T02:02:28.4859782Z Author : Microsoft Corporation
2018-05-12T02:02:28.4860152Z Help : More Information
2018-05-12T02:02:28.4860618Z ==============================================================================
2018-05-12T02:02:31.5714005Z Run the tests locally using vstest.console.exe
2018-05-12T02:02:31.5714497Z ========================================================
2018-05-12T02:02:31.5715501Z Test selector : Test assemblies
2018-05-12T02:02:31.5716127Z Test assemblies : *\Dx1.Dx1App.UnitTestsbin*\Dx1.Dx1App.UnitTests.dll
2018-05-12T02:02:31.5716721Z Test filter criteria : null
2018-05-12T02:02:31.5717318Z Search folder : C:\agent_workd\1\s
2018-05-12T02:02:31.5717887Z Run settings file : C:\agent_workd\1\s
2018-05-12T02:02:31.5718580Z Run in parallel : true
2018-05-12T02:02:31.5719097Z Run in isolation : false
2018-05-12T02:02:31.5723093Z Path to custom adapters : null
2018-05-12T02:02:31.5723653Z Other console options : null
2018-05-12T02:02:31.5724182Z Code coverage enabled : false
2018-05-12T02:02:31.5725332Z Rerun failed tests: false
2018-05-12T02:02:31.5726045Z VisualStudio version selected for test execution : latest
2018-05-12T02:02:32.8927069Z ========================================================
2018-05-12T02:02:46.7353328Z [command]"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7IDE\CommonExtensions\MicrosoftTestWindow\vstest.console.exe" @C:\agent_workd_temp\863df241-5588-11e8-b942-fd8a90029632.txt
2018-05-12T02:02:46.8864849Z Microsoft (R) Test Execution Command Line Tool Version 15.7.1
2018-05-12T02:02:46.8865403Z Copyright (c) Microsoft Corporation. All rights reserved.
2018-05-12T02:02:46.8865682Z
2018-05-12T02:02:46.8881482Z vstest.console.exe
2018-05-12T02:02:46.8882076Z "C:\agent_workd\1\s\ClientApp\Dx1.Dx1App.UnitTestsbin\Release\Dx1.Dx1App.UnitTests.dll"
2018-05-12T02:02:46.8882564Z /Settings:"C:\agent_workd_temp\89d3ea40-5588-11e8-b942-fd8a90029632.runsettings"
2018-05-12T02:02:46.8882925Z /logger:"trx"
2018-05-12T02:02:46.8883245Z /TestAdapterPath:"C:\agent_workd\1\s"
2018-05-12T02:02:47.0800460Z Starting test execution, please wait...
2018-05-12T02:02:49.1544170Z An exception occurred while invoking executor 'executor://mstestadapter/v2': Method 'get_Properties' in type 'Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.TestContextImplementation' from assembly 'Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' does not have an implementation.
2018-05-12T02:02:49.2720781Z
2018-05-12T02:02:49.2721761Z Test Run Failed.
2018-05-12T02:02:49.2891969Z ##[warning]Vstest failed with error. Check logs for failures. There might be failed tests.
2018-05-12T02:02:50.6024444Z ##[error]Error: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7IDE\CommonExtensions\MicrosoftTestWindow\vstest.console.exe failed with return code: 1
2018-05-12T02:02:51.9294994Z ##[warning]No results found to publish.
2018-05-12T02:02:53.2412864Z ##[error]VsTest task failed.
2018-05-12T02:02:54.5633809Z ##[section]Finishing: VsTest - All

bug

Most helpful comment

@xeroxe : Can you make sure you have same version of MSTest.TestAdapter and MSTest.TestFramework nuget packages on your machine? This seems like a version mismatch issue.

All 4 comments

@xeroxe : Can you make sure you have same version of MSTest.TestAdapter and MSTest.TestFramework nuget packages on your machine? This seems like a version mismatch issue.

@xeroxe: Did the above suggestion work for you?

Thank you, It seems like in this solution, the unit tests project have different version so it have already updated to be the same version and they can run test properly. This issue can close.

I had old versions leftover in my /bin/ folders and had to delete them so they could restore properly. I'm not sure why they didn't overwrite on restore/build, but this allowed my tests to run.

Was this page helpful?
0 / 5 - 0 ratings