2017-03-01 53 views
1

我試圖利用SmartBear TestComplete進行編碼的UI測試,作爲我發佈過程的一部分。我發現,說明TestComplete不會與2015年測試代理工作的響應:VSTS和代理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,無論是代理和控制器的機器上。我的發佈代理安裝在我的網絡上的虛擬機上,它不是雲託管的。我加了一個「運行功能測試」任務,以我的釋放過程,並試圖運行它,但我得到指示,我需要先運行「部署測試代理」任務的錯誤:

[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。有沒有人獲得Agents 2013與本地發佈代理合作?

回答

1

首先,代理2013用於在實驗室環境中進行MTM測試或從Visual Studio測試進行遠程測試。

您是通過構建/發佈運行功能測試任務做測試,它使用代理2015年,而不是2013代理商和部署測試代理任務將安裝在目標機器上配置測試劑2015年。

其次,關於WinRM問題,您需要啓用文件和打印機共享,並且PowerShell版本爲4.0或更高版本。

請參考此文章來配置WinRM:Deploy your Web Deploy package to IIS servers using WinRM

相關腳本:ConfigureWinRM.ps1

+0

謝謝!我能夠讓我的測試運行。 –