locked
Running Coded UI tests from Visual Studio Shell

    Question

  • I have a suite of Coded UI tests that I would like to hand off to someone else in my organization to execute. Our environment is not setup for executing tests from MTM, and the users who are responsible for executing the tests only have access to "Visual Studio 2010 Shell."

    Is there a way for them to execute the tests that I've created? As far as I can tell, the "Shell" edition of Visual Studio does not contain mstest.exe. Additionally, when they attempt to open the solution files they receive an error stating the following:

     

    <path to project file> cannot be opened because its project type (.csproj) is not supported by this version of the application. 
    
    To open it, please use a version that supports this type of project.

    Does anyone know of a way to resolve this issue?

     

    Thanks.

    Thursday, August 11, 2011 4:40 PM

Answers

  • Frank Rose,

    Note: This solution is not officially supported and may violate your license agreement with Microsoft.

    That said, you can copy the necessary dll's required to execute the MStest.exe command line test runner.  You would need to copy the following files from a machine with Visual studio installed:

  • Microsoft.VisualStudio.QualityTools.CheckinPolicies.dll
  • Microsoft.VisualStudio.QualityTools.CMI.dll
  • Microsoft.VisualStudio.QualityTools.CodeCoverage.dll
  • Microsoft.VisualStudio.QualityTools.CodedUITest.Controls.dll
  • Microsoft.VisualStudio.QualityTools.CodedUITest.PowerTools.dll
  • Microsoft.VisualStudio.QualityTools.CodedUITestFramework.dll
  • Microsoft.VisualStudio.QualityTools.CodedUITestPackage.dll
  • Microsoft.VisualStudio.QualityTools.CommandLine.dll
  • Microsoft.VisualStudio.QualityTools.Common.dll
  • Microsoft.VisualStudio.QualityTools.Common.xml
  • Microsoft.VisualStudio.QualityTools.Controller.SpooledJob.dll
  • Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll
  • Microsoft.VisualStudio.QualityTools.ExecutionCommon.xml
  • Microsoft.VisualStudio.QualityTools.HostAdapters.ASPNETAdapter.dll
  • Microsoft.VisualStudio.QualityTools.HostAdapters.ASPNETAgent.dll
  • Microsoft.VisualStudio.QualityTools.Linking.dll
  • Microsoft.VisualStudio.QualityTools.LoadTest.dll
  • Microsoft.VisualStudio.QualityTools.NetworkEmulation.dll
  • Microsoft.VisualStudio.QualityTools.OperationalStore.ClientHelper.dll
  • Microsoft.VisualStudio.QualityTools.Resource.dll
  • Microsoft.VisualStudio.QualityTools.Sqm.dll
  • Microsoft.VisualStudio.QualityTools.Tips.GenericTest.Adapter.dll
  • Microsoft.VisualStudio.QualityTools.Tips.GenericTest.ObjectModel.dll
  • Microsoft.VisualStudio.QualityTools.Tips.GenericTest.Tip.dll
  • Microsoft.VisualStudio.QualityTools.Tips.ManualTest.Adapter.dll
  • Microsoft.VisualStudio.QualityTools.Tips.ManualTest.ObjectModel.dll
  • Microsoft.VisualStudio.QualityTools.Tips.ManualTest.Tip.dll
  • Microsoft.VisualStudio.QualityTools.Tips.OrderedTest.Adapter.dll
  • Microsoft.VisualStudio.QualityTools.Tips.OrderedTest.ObjectModel.dll
  • Microsoft.VisualStudio.QualityTools.Tips.OrderedTest.Tip.dll
  • Microsoft.VisualStudio.QualityTools.Tips.WebLoadTest.Tip.dll
  • Microsoft.VisualStudio.QualityTools.Tips.WebLoadTest.Tip.dll.VisualState.xml
  • Microsoft.VisualStudio.QualityTools.TMI.dll
  • Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll
  • Microsoft.VisualStudio.QualityTools.WarehouseCommon.dll
  • Microsoft.VisualStudio.TestImpact.Analysis.dll
  • Microsoft.VisualStudio.TestImpact.AutoPackage.dll
  • Microsoft.VisualStudio.TestImpact.Common.dll
  • Microsoft.VisualStudio.TestImpact.Package.dll
  • Microsoft.VisualStudio.TestTools.ConfigCore.dll
  • Microsoft.VisualStudio.TestTools.TestSettings.Common.dll
  • Microsoft.VisualStudio.TestTools.TestSettings.dll
  • Microsoft.VisualStudio.TestTools.UITest.CodeGeneration.dll
  • Microsoft.VisualStudio.TestTools.UITest.Common.dll
  • Microsoft.VisualStudio.TestTools.UITest.Extension.dll
  • Microsoft.VisualStudio.TestTools.UITest.Extension.IE.Communication.Interop.dll
  • Microsoft.VisualStudio.TestTools.UITest.Extension.IE.dll
  • Microsoft.VisualStudio.TestTools.UITest.Extension.MSAA.dll
  • Microsoft.VisualStudio.TestTools.UITest.Extension.Uia.dll
  • Microsoft.VisualStudio.TestTools.UITest.Framework.dll
  • Microsoft.VisualStudio.TestTools.UITest.Playback.dll
  • Microsoft.VisualStudio.TestTools.UITest.Recorder.dll
  • Microsoft.VisualStudio.TestTools.UITesting.dll
  • MSTest.exe
  • MSTest.exe.config

    For an automated way to accomplish this see:

    Executing visual studio 2010 unit tests without installing visual studio

    http://mindinthewater.blogspot.com/2011/02/executing-visual-studio-2010-unit-tests.html

    Then you would execute your tests using the MStest.exe command line tool

    See:

    http://msdn.microsoft.com/en-us/library/ms182489(VS.80).aspx

     

    Please mark the relevant threads as helful/answered to help others in the future.

     

    Cheers,

    Paul

     

  • Proposed as answer by Paul DeCarlo Friday, August 12, 2011 12:55 PM
  • Marked as answer by Frank Rose Friday, August 12, 2011 1:52 PM
Friday, August 12, 2011 12:55 PM

All replies

  • Frank Rose,

    Visual Studio Shell does not support execution of Coded UI Tests.  As of current, only Visual Studio 2010 Ultimate and Premium support execution of Coded UI tests. 

    See:

    Supported Configurations and Platforms for Coded UI Tests and Action Recordings

    http://msdn.microsoft.com/en-us/library/dd380742.aspx

     

    Cheers,

    Paul

    • Proposed as answer by Paul DeCarlo Thursday, August 11, 2011 6:35 PM
    Thursday, August 11, 2011 6:35 PM
  • Is there any way to execute the tests without Visual Studio? I'm guessing there's not, but it doesn't hurt to ask.
    Thursday, August 11, 2011 7:03 PM
  • Frank Rose,

    Note: This solution is not officially supported and may violate your license agreement with Microsoft.

    That said, you can copy the necessary dll's required to execute the MStest.exe command line test runner.  You would need to copy the following files from a machine with Visual studio installed:

  • Microsoft.VisualStudio.QualityTools.CheckinPolicies.dll
  • Microsoft.VisualStudio.QualityTools.CMI.dll
  • Microsoft.VisualStudio.QualityTools.CodeCoverage.dll
  • Microsoft.VisualStudio.QualityTools.CodedUITest.Controls.dll
  • Microsoft.VisualStudio.QualityTools.CodedUITest.PowerTools.dll
  • Microsoft.VisualStudio.QualityTools.CodedUITestFramework.dll
  • Microsoft.VisualStudio.QualityTools.CodedUITestPackage.dll
  • Microsoft.VisualStudio.QualityTools.CommandLine.dll
  • Microsoft.VisualStudio.QualityTools.Common.dll
  • Microsoft.VisualStudio.QualityTools.Common.xml
  • Microsoft.VisualStudio.QualityTools.Controller.SpooledJob.dll
  • Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll
  • Microsoft.VisualStudio.QualityTools.ExecutionCommon.xml
  • Microsoft.VisualStudio.QualityTools.HostAdapters.ASPNETAdapter.dll
  • Microsoft.VisualStudio.QualityTools.HostAdapters.ASPNETAgent.dll
  • Microsoft.VisualStudio.QualityTools.Linking.dll
  • Microsoft.VisualStudio.QualityTools.LoadTest.dll
  • Microsoft.VisualStudio.QualityTools.NetworkEmulation.dll
  • Microsoft.VisualStudio.QualityTools.OperationalStore.ClientHelper.dll
  • Microsoft.VisualStudio.QualityTools.Resource.dll
  • Microsoft.VisualStudio.QualityTools.Sqm.dll
  • Microsoft.VisualStudio.QualityTools.Tips.GenericTest.Adapter.dll
  • Microsoft.VisualStudio.QualityTools.Tips.GenericTest.ObjectModel.dll
  • Microsoft.VisualStudio.QualityTools.Tips.GenericTest.Tip.dll
  • Microsoft.VisualStudio.QualityTools.Tips.ManualTest.Adapter.dll
  • Microsoft.VisualStudio.QualityTools.Tips.ManualTest.ObjectModel.dll
  • Microsoft.VisualStudio.QualityTools.Tips.ManualTest.Tip.dll
  • Microsoft.VisualStudio.QualityTools.Tips.OrderedTest.Adapter.dll
  • Microsoft.VisualStudio.QualityTools.Tips.OrderedTest.ObjectModel.dll
  • Microsoft.VisualStudio.QualityTools.Tips.OrderedTest.Tip.dll
  • Microsoft.VisualStudio.QualityTools.Tips.WebLoadTest.Tip.dll
  • Microsoft.VisualStudio.QualityTools.Tips.WebLoadTest.Tip.dll.VisualState.xml
  • Microsoft.VisualStudio.QualityTools.TMI.dll
  • Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll
  • Microsoft.VisualStudio.QualityTools.WarehouseCommon.dll
  • Microsoft.VisualStudio.TestImpact.Analysis.dll
  • Microsoft.VisualStudio.TestImpact.AutoPackage.dll
  • Microsoft.VisualStudio.TestImpact.Common.dll
  • Microsoft.VisualStudio.TestImpact.Package.dll
  • Microsoft.VisualStudio.TestTools.ConfigCore.dll
  • Microsoft.VisualStudio.TestTools.TestSettings.Common.dll
  • Microsoft.VisualStudio.TestTools.TestSettings.dll
  • Microsoft.VisualStudio.TestTools.UITest.CodeGeneration.dll
  • Microsoft.VisualStudio.TestTools.UITest.Common.dll
  • Microsoft.VisualStudio.TestTools.UITest.Extension.dll
  • Microsoft.VisualStudio.TestTools.UITest.Extension.IE.Communication.Interop.dll
  • Microsoft.VisualStudio.TestTools.UITest.Extension.IE.dll
  • Microsoft.VisualStudio.TestTools.UITest.Extension.MSAA.dll
  • Microsoft.VisualStudio.TestTools.UITest.Extension.Uia.dll
  • Microsoft.VisualStudio.TestTools.UITest.Framework.dll
  • Microsoft.VisualStudio.TestTools.UITest.Playback.dll
  • Microsoft.VisualStudio.TestTools.UITest.Recorder.dll
  • Microsoft.VisualStudio.TestTools.UITesting.dll
  • MSTest.exe
  • MSTest.exe.config

    For an automated way to accomplish this see:

    Executing visual studio 2010 unit tests without installing visual studio

    http://mindinthewater.blogspot.com/2011/02/executing-visual-studio-2010-unit-tests.html

    Then you would execute your tests using the MStest.exe command line tool

    See:

    http://msdn.microsoft.com/en-us/library/ms182489(VS.80).aspx

     

    Please mark the relevant threads as helful/answered to help others in the future.

     

    Cheers,

    Paul

     

  • Proposed as answer by Paul DeCarlo Friday, August 12, 2011 12:55 PM
  • Marked as answer by Frank Rose Friday, August 12, 2011 1:52 PM
Friday, August 12, 2011 12:55 PM