2017-03-01 6 views
1

私はリリースプロセスの一環として、コード化されたUIテストにSmartBear TestCompleteを活用しようとしています。VSTS and Agents 2013

Running TestComplete Tests Remotely with Visual Studio Test Agents

Test Controller

Test agents for Visual Studio 2015 do not support running functional tests remotely from Visual Studio. To run tests, use test controllers and test agents for Visual Studio 2013. You can find more information on it in the MSDN Library.

•Microsoft Test Controller for Visual Studio 2013. •TestComplete 12 (or TestExecute 12). •TestComplete 12 Visual Studio Integration Package. The Integration Package installer is shipped along with TestComplete. You can find it in the TestComplete folder after installing the product: TestComplete 12\VS Integration\VSIntegration.exe Run this installer after installing TestComplete on the test controller machine. In the installation wizard, select Build and Test Integration or Test Agent Integration feature appropriate for your test controller version.

Ref

私は2013のエージェント更新5をインストールしようとした、マシン上のエージェントとコントローラの両方:私は、TestCompleteは2015年の試験薬では動作しません旨の応答を発見しました。私のリリースエージェントはネットワーク上のVMにもインストールされていますが、クラウドホストされていません。私は私のリリースプロセスに「ファイル名を指定して実行機能テスト」タスクを追加し、それを実行しようとしたが、私は最初に「展開テストエージェント」タスクを実行する必要がある旨のエラーを取得:

[error]System.InvalidOperationException: The "Deploy Test Agent" task should be added before running the "Run Functional Test" task.

私はそれを追加しようとしました、その後、私は、ネットワーク・エラーのようです何入門:

[warning]DistributedTests: Task 'PopulatingMachinesPresentState' for machine XXXXXX:5986's Log : Failed to establish remote power shell session to the deployment machine XXXXXX on the port:5986 due to unexpected exception. Error Message:
System.Management.Automation.Remoting.PSRemotingTransportException: Connecting to remote server XXXXXX failed with the following error message : WinRM cannot complete the operation. Verify that the specified computer name is valid, that the computer is accessible over the network, and that a firewall exception for the WinRM service is enabled and allows access from this computer. By default, the WinRM firewall exception for public profiles limits access to remote computers within the same local subnet. For more information, see the about_Remote_Troubleshooting Help topic.

だから私は、一時的にファイアウォールを無効にしてみました:

netsh advfirewall set allprofiles state off

をそして私もWinRMのチェック:

winrm qc
WinRM service is already running on this machine. WinRM is already set up for remote management on this computer.

まだ動作していません。ウサギの穴を掘り下げる前にStackをチェックすると思った。オンデマンドエージェントを使用するには、エージェント2013年を取得した人はいますか?

答えて

1

最初に、エージェント2013は、MTMのラボ環境でのテスト、またはVisual Studioテストからのリモートテストに使用されます。あなたがビルド/リリースで実行機能テストのタスクを通じてテストを行っている

、それはエージェント2015の代わりに、エージェント2013および展開テストエージェントのタスクは、ターゲットマシン上でテストエージェント2015をインストールして設定します使用しています。

第2に、WinRMの問題に関して、ファイルとプリンタの共有を有効にする必要があり、PowerShellのバージョンが4.0以上である必要があります。

WinRMを構成するには、この資料を参照してください。Deploy your Web Deploy package to IIS servers using WinRM

関連スクリプト:ConfigureWinRM.ps1

+0

ありがとうございます!私はテストを実行することができました。 –