2017-03-01 41 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

谢谢!我能够让我的测试运行。 –