none
Unable to run test on remote machine using TAEF framework RRS feed

  • Question

  • I have developed some automation based on the TAEF framework, which i am trying to run remotely on a windows RT tablet.

    When I execute the following command from the host PC:  te.exe arm/TestAutomation.dll /runon:remoteTab,  I get the following warnings & errors:


    c:\Program Files (x86)\Windows Kits\8.1\Testing\Runtimes\TAEF>te.exe arm\TestAutomation.dll /runon:remoteTab

    Test Authoring and Execution Framework v3.7k for x64

    Warning: TAEF: Failed to locate dependency oleaut32.dll for te.processhost.exe;it will not be deployed for remote execution.

    Warning: TAEF: Failed to locate dependency user32.dll for te.processhost.exe; it will not be deployed for remote execution.

    Warning: TAEF: Failed to locate dependency cabinet.dll for te.managed.dll; it will not be deployed for remote execution.

    ...

    ...

    TAEF: Deploying C:\Program Files (x86)\Windows Kits\8.1\Testing\Runtimes\TAEF\arm\te.processhost.exe

    TAEF: Deploying c:\program files (x86)\windows kits\8.1\testing\runtimes\taef\arm\wex.common.dll

    TAEF: Deploying c:\program files (x86)\windows kits\8.1\testing\runtimes\taef\arm\wex.communication.dll

    TAEF: Deploying c:\program files (x86)\windows kits\8.1\testing\runtimes\taef\arm\wttlog.dll

    TAEF: Deploying c:\program files (x86)\windows kits\8.1\testing\runtimes\taef\arm\wex.logger.dll

    TAEF: Deploying c:\program files (x86)\windows kits\8.1\testing\runtimes\taef\arm\te.common.dll

    TAEF: Deploying c:\program files (x86)\windows kits\8.1\testing\runtimes\taef\arm\te.loaders.dll

    TAEF: Deploying c:\program files (x86)\windows kits\8.1\testing\runtimes\taef\arm\te.host.dll

    TAEF: Deploying C:\Program Files (x86)\Windows Kits\8.1\Testing\Runtimes\TAEF\arm\te.managed.dll

    TAEF: Deploying c:\program files (x86)\windows kits\8.1\testing\runtimes\taef\arm\wex.common.managed.dll

    TAEF: Deploying c:\program files (x86)\windows kits\8.1\testing\runtimes\taef\arm\wex.logger.interop.dll

    Warning: TAEF: Failed to locate dependency mscorlib for TestAutomation.dll; it will not be deployed for remote execution.

    TAEF: Deploying c:\taef\arm\TestAutomation.dll

    TAEF: Deploying c:\program files (x86)\windows kits\8.1\testing\runtimes\taef\arm\interop.uiautomationclient.dll

    TAEF: Deploying c:\program files (x86)\windows kits\8.1\testing\runtimes\taef\arm\uiacomwrapper.dll

    Error: System.IO.FileLoadException: Could not load file or assembly 'file:///C:\ProgramData\Taef\RemoteTests\TestAutomation.dll\TesttAutomation.dll' or one of its dependencies. Windows cannot verify the digital signature for this file. A recent hardware or software change might have installed a file that is signed incorrectly or damaged, or that might be malicious software from an unknown source. (Exception from HRESULT: 0x80070241)

    File name: 'file:///C:\ProgramData\Taef\RemoteTests\TestAutomation.dll\TestAutomation.dll'   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&

    stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String code

    Base, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntros pection, Boolean suppressSecurityChecks)

       at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMar k& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)   at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, ssemblyHashAlgorithm hashAlgorithm,Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)   at System.Reflection.Assembly.LoadFrom(String assemblyFile)

       at WEX.TestExecution.TEAppDomainManager.LoadAssembly(String assemblyPath)   at WEX.TestExecution.AppDomainManagerHelper.Instantiate(String assemblyPath,String className, AssemblyLoader loadAssembly, Boolean breakOnCreate)

    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].

    If I run the dll directly on the tablet in “c:\Taef” folder the test runs without any errors.  Command: te.exe c:\taef\arm\TestAutomation.dll

    It throws the same error as above if I run the it from anywhere else. Example: Command: te.exe C:\ProgramData\Taef\RemoteTests\TestAutomation.dll\TestAutomation.dll

     

    Test signing is disabled on the tablet & even if I test sign the dll I am still getting the same error. Therefore I was wondering if there is a way to change the deployment folder to c:\taef directory. Currently TE.exe deploys the dlls to C:\ProgramData\Taef\RemoteTests\. I f it can get it deployed to c:\taef folder I believe the errors should go away


    Thanks in advance for your help.

    Regards


    Monday, March 3, 2014 6:58 PM