none
Unable to run tests using VS2015 using a VS2013 Test Controller

    Question

  • So we have a suite of UI tests that we recently moved to using VS 2015. The tests run fine locally but when I attempt to run the test using the test controller (which is version 2013 since 2015 doesn't use test controllers anymore) it skips the tests and displays the following in the output.

    "Failed to queue test run : Unable to cast transparent proxy to type 'Microsoft.VisualStudio.TestTools.Controller.IControllerExecution'."

    I am assuming it is a compatibility issue since it works fine using VS2013 but from what I was reading online, is that VS 2015 should be compatible with the 2013 Test Controller. 

    Has anyone ran into this error before and if so what did you do to resolve it? Thanks in advance.

    Tuesday, January 19, 2016 10:44 PM

Answers

  • I ran into the same problem as Chris, but I don't think the issue is an incompatibility with Test Controller 2013. It was actually working for us at one point using VS 2015 and only stopped working after we installed Update 1 to VS 2015. Running tests with 2013 isn't really a solution to the problem because the build won't complete.
    • Edited by PHCorrig Monday, February 1, 2016 11:54 PM
    • Proposed as answer by jinman985 Friday, February 5, 2016 11:13 PM
    • Marked as answer by Chris Hinckley Monday, February 22, 2016 7:43 PM
    Monday, February 1, 2016 11:53 PM

All replies

  • Hi Chris Hinckley,

    According to the error message, it should be caused by the compatible between Test Controller 2013 and Test Agent 2015.

    In addition, according to the first part of Installing and Configuring Test Agents and Test Controllers that I quote at below, and I try install Test Controller 2013 and Test Agent 2015 on my VM, the controller can't find the Agent 2015 and there has no Test Agent Configuration tool for Test Agent 2015. So I think the Test Agent 2015 just can use with VSO and TFS, but use with Test Controller 2013.

    Where do I get the test controller and test agents?            

    If you want to use Test Controller and Test Agent, I suggest you using the version 2013. If you want to use Test Agent 2015, please using VSO and TFS. More information about Test Agent 2015 with TFS, please refer to following blog. Hope that can help you.

    http://blogs.msdn.com/b/visualstudioalm/archive/2015/05/29/testing-in-continuous-integration-and-continuous-deployment-workflows.aspx

    Best Regards,
    Weiwei

    Wednesday, January 20, 2016 8:14 AM
    Moderator
  • Hi Weiwei,

    Yeah, Im not using the 2015 version of Test Agent. I have both the 2013 update 5 version of the test controller and test agent. The only version that is 2015 is Visual Studio, which in my case throws the error when trying to run tests using the controller.

    Wednesday, January 20, 2016 4:51 PM
  • Hi Chris Hinckley,

    Sorry for misunderstanding.

    I test again with your description in Visual Studio 2015 using Test Controller and Agent 2013, I get the same result with you. So the Visual Studio 2015 should incompatible with Test Controller and Agent 2013.

    I suggest you using Visual Studio 2013 to test your project with Test Controller and Agent 2013. If you want to use Visual Studio 2015, please using Test Agent 2015 with VSO or TFS.

    Best Regards,
    Weiwei

    Thursday, January 21, 2016 2:31 AM
    Moderator
  • I ran into the same problem as Chris, but I don't think the issue is an incompatibility with Test Controller 2013. It was actually working for us at one point using VS 2015 and only stopped working after we installed Update 1 to VS 2015. Running tests with 2013 isn't really a solution to the problem because the build won't complete.
    • Edited by PHCorrig Monday, February 1, 2016 11:54 PM
    • Proposed as answer by jinman985 Friday, February 5, 2016 11:13 PM
    • Marked as answer by Chris Hinckley Monday, February 22, 2016 7:43 PM
    Monday, February 1, 2016 11:53 PM
  • Also having this same problem from 2015 update 1
    Friday, February 5, 2016 2:18 AM
  • This is a very big issue for us. Is there any update to this? I cannot figure out how to uninstall update 1 to get this to work. Our test environment was written in enterprise 2015, and now it requires TFS to run tests?
    Tuesday, February 16, 2016 8:08 PM
  • Added bug item, https://connect.microsoft.com/VisualStudio/feedback/details/2392183


    Monday, February 22, 2016 7:46 PM