Unable to execute QuickStarts_VSTS_C# project

2 posts, 0 answers
  1. Shruti
    Shruti avatar
    8 posts
    Member since:
    Aug 2012

    Posted 23 Aug 2012 Link to this post

    Hello All,

    I am using test studio from VSTS to record my test.
    I am able to record the test successfully but it fails when i try to run it using quick execute.

    Log file shows following error message:

    '8/23/2012 12:25:36 PM' - Using .Net Runtime version: '4.0.30319.1' for tests execution.
    '8/23/2012 12:25:36 PM' - Starting execution....
    '8/23/2012 12:25:36 PM' - Failure detected during execution. Details:
    '8/23/2012 12:25:36 PM' - System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.TestTools.UITest.Extension, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
    File name: 'Microsoft.VisualStudio.TestTools.UITest.Extension, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
       at System.ModuleHandle.ResolveType(RuntimeModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type)
       at System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
       at System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
       at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctor, Boolean& ctorHasParameters, Boolean& isVarArg)
       at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent)
       at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeAssembly assembly, RuntimeType caType)
       at System.Reflection.RuntimeAssembly.GetCustomAttributes(Type attributeType, Boolean inherit)
       at ArtOfTest.WebAii.Silverlight.SilverlightApp.InitializeCustomTypes()
       at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InitializeWeb(ExecutionEngineCreateParams initParams)
       at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.CreateAndInitializeEngine(Test test, ExecutionEngineCreateParams cp)
       at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(ExecuteTestCommand command)

    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

    '8/23/2012 12:25:36 PM' - Test completed!

    I read a similar post "http://www.telerik.com/automated-testing-tools/community/forums/test-studio-express/automation-framework/unable-to-execute-quickstarts-vsts-vb-project.aspx" and cross verified my project properties. But it's still not working.
    One thing that I didn't find is: You have asked to exclude the app.config file from the project and ten rebuild the  test.]
    I didn't find any such file in my project.

    Thanks and Regards,

  2. Plamen
    Plamen avatar
    8 posts

    Posted 23 Aug 2012 Link to this post

    Hi Shruti,

    The file Microsoft.VisualStudio.TestTools.UITest.Extension only applies to Microsoft coded UI tests. It is not used by Test Studio, therefore it does not apply. For some reason your test project has a reference to this file.

    If you are using a Visual Studio project, look for and delete the  assembly references outlined in the attached screenshot. If you are using Test Studio standalone and are getting this error, look for the same assembly references according to this documentation and delete them from your Test Studio project. 
    If you continue to have difficulty, please send us your project into a .zip file so we can review it and definitely say what the problem is.

    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top