Run Functional Tests
を使用してUIテストを実行します。 この前に、テストエージェントはVisual Studio Test Agent Deployment
を使用して展開されます。テストケースのビデオをキャプチャ
テストを記録し、テスト結果にビデオを添付するようにテストエージェントを設定します。
には、here in msdnと記載されている動画が保存され、Expression Encoder described hereがインストールされています。
SystemInformation.xml
も生成されました。したがって、testsettings
ファイルは無視されません。
testsettings
ファイル:
<?xml version="1.0" encoding="UTF-8"?>
<TestSettings name="TFS Test Settings" id="dfa051f4-3d54-4d50-95ab-f414f1aea19e" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
<Description>These are default test settings for a local test run.</Description>
<Deployment enabled="false" />
<Scripts setupScript="\\FileServer\shares\testdata\copySeeFxIni.bat" />
<Execution>
<Timeouts runTimeout="23400000" testTimeout="600000" />
<TestTypeSpecific>
<UnitTestRunConfig testTypeId="13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b">
<AssemblyResolution>
<TestDirectory useLoadContext="true" />
</AssemblyResolution>
</UnitTestRunConfig>
</TestTypeSpecific>
<AgentRule name="LocalMachineDefaultRole">
<DataCollectors>
<DataCollector uri="datacollector://microsoft/VideoRecorder/1.0" assemblyQualifiedName="Microsoft.VisualStudio.TestTools.DataCollection.VideoRecorder.VideoRecorderDataCollector, Microsoft.VisualStudio.TestTools.DataCollection.VideoRecorder, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" friendlyName="Screen and Voice Recorder">
</DataCollector>
<DataCollector uri="datacollector://microsoft/SystemInfo/1.0" assemblyQualifiedName="Microsoft.VisualStudio.TestTools.DataCollection.SystemInfo.SystemInfoDataCollector, Microsoft.VisualStudio.TestTools.DataCollection.SystemInfo, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" friendlyName="System Information">
</DataCollector>
</DataCollectors>
</AgentRule>
</Execution>
<Properties>
<Property name="TestSettingsUIType" value="UnitTest" />
</Properties>
</TestSettings>
それはこれとは何かを持っている場合はわからないBuild Log
。私はTestAgent2017\Common7\IDE\PrivateAssemblies\DataCollectors\
の下にVideoRecorder Datacollectorを見つけました。 VSTestVideoRecorder.exe
もあります。名前から、それはビデオを再現するために使用されることがわかっています。手動で実行しようとすると、コンソールで例外が発生しました。
Unhandeld Exception: System.DllNotFoundException: Unable to load DLL
'Microsoft.VisualStudio.QualityTools.VideoRecorderEngine.dll':
The specified module could not be found (Exception from HRESULT: 0x8007007E)
ただし、Microsoft.VisualStudio.QualityTools.VideoRecorderEngine.dll
は同じディレクトリにあります。なぜこの例外がスローされるのか分かりません。
この例外はどのログでも見られませんでした(見つけました)。
あなたの問題は何ですか?エラーメッセージが表示されましたか?あなたはどこにいらっしゃいましたか? –
ビデオは添付されていません。私はどこでもエラーを見つけられません。それは私が思うだけ記録されていません。私はテストマシンでlocalyというファイルを見つけることができませんでした。最初はExpression Encoderをインストールしていません。私がこれをインストールした後、テストの開始時にエクスプローラが再起動し、最終的にはそれが殺されることに気付きました。だから何かが苦しんでいる。ビルドエージェント(テストエージェントではない)の '' '' 'DTAExecutionHost.exe.log''に、' '' 'DTAExecutionHost.exe情報:0:添付ファイル名システム情報とUri datacollector:// microsoft/SystemInfo/1.0'が見つかりました''しかし、ビデオコレクターのためではない。 – lokimidgard
使用しているOSは何ですか?テストエージェントをプロセスとして実行していますか?ビデオレコーダーの[この記事](https://blogs.msdn.microsoft.com/ja-jp/library/2009/11/25/recording-video-of-desktop-while-testing-through-test-runner/)を参照してください。 Test Runnerを通じてテストしています。それでも動作しない場合は、ここでビルドログを共有して、さらにトラブルシューティングを行ってください。 –