コード化された UI + SpecFlow テスト プロジェクト (.NET Framework 4) があります。
リモートでテストを実行したいので、Visual Test Agent - Controller の環境設定を行いました。私のローカル マシンはコントローラであり、エージェントである仮想マシンがあります。AUT は、Windows XP SP3 を搭載した Windows Embedded システムで実行されます。AUT は WPF アプリケーションです。
VM プロパティ:
- Windows XP SP3
- Microsoft Test Agent 2012 が VM にインストールされている ( Agents for Visual Studio 2012 Update 3 )
エージェントとコントローラーの通信が正常に確立されます (エージェント - オンライン、OK、コントローラー - 実行中、OK、TestSettings.testsettings - 構成済み、OK)。テストの実行は mstest を使用して実行されます。
テストを実行すると、次のエラーが表示されます。
Test Name: CodedUITestMethod1
Test FullName: Remote.Test.CodedUITest1.CodedUITestMethod1
Test Source: c:\Users\user\Documents\Visual Studio 2012\Projects\Remote.Test\Remote.Test\CodedUITest1.cs : line 27
Test Outcome: Failed
Test Duration: 0:00:01.7131241
Result Message: Error calling Initialization method for test class Remote.Test.CodedUITest1: System.IO.FileLoadException: Could not load file or assembly 'Microsoft.VisualStudio.TestTools.UITest.Extension.CrossBrowser, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A) ---> System.Security.SecurityException: Strong name validation failed. (Exception from HRESULT: 0x8013141A)
Result StackTrace:
--- End of inner exception stack trace ---
at System.Reflection.RuntimeAssembly.nLoadFile(String path, Evidence evidence)
at System.Reflection.Assembly.LoadFile(String path)
at Microsoft.VisualStudio.TestTools.UITest.Framework.UITestExtensionPackageManager.LoadAssembly(String assemblyFile)
定義上、コード化された UI はWindows XPをサポートしていません。
上記の問題の回避策はありますか? 助言がありますか?
ありがとうございました、