2017-03-01 3 views
1

Ich versuche, SmartBear TestComplete für codierte UI-Tests als Teil meiner Freigabe Prozess zu nutzen. Ich fand eine Antwort unter Angabe Testcomplete nicht mit den 2015 Testagenzien arbeiten:VSTS und Agenten 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

ich die Installation versucht, die 2.013 Agents Update 5, sowohl den Agenten und Controller auf einer Maschine. Mein Release-Agent ist auf einer VM in meinem Netzwerk installiert und wird nicht von der Cloud gehostet. Ich habe einen „Run Funktionstests“ Aufgabe meiner Freigabeprozess und versucht, es zu laufen, aber ich erhalte eine Fehlermeldung anzeigt, muss ich zuerst die „Deploy Test Agent“ Task auszuführen:

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

Ich habe versucht, fügte hinzu, dass, dann begann ich bekommen, was scheint ein Netzwerkfehler zu sein:

[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.

Also habe ich versucht, die Firewall zu deaktivieren vorübergehend:

netsh advfirewall set allprofiles state off

Und ich habe auch überprüft winrm:

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

Immer noch nicht bekommen dies funktioniert. Ich dachte, ich würde Stack überprüfen, bevor ich weiter in das Kaninchenloch komme. Hat jemand Agent 2013 dazu gebracht, mit einem On-Prem Release Agent zu arbeiten?

Antwort

1

Zunächst Mittel 2013 werden verwendet, um zu tun Test in Laborumgebung in MTM oder Remote-Test von Visual Studio Test.

Sie tun Test durch Run Funktionstest Aufgabe in build/Release, verwendet es Mittel 2015 statt Agenten 2013 und die Deploy Test Agent Aufgabe installieren und Testmittel 2015 auf dem Zielcomputer konfigurieren.

Zweitens in Bezug auf WinRM Problem, müssen Sie Datei- und Druckerfreigabe und die Powershell-Version 4.0 oder höher aktivieren.

zu diesem Artikel finden Sie WinRM konfigurieren: Deploy your Web Deploy package to IIS servers using WinRM.

Das zugehörige Skript: ConfigureWinRM.ps1

+0

Vielen Dank! Ich konnte meine Tests laufen lassen. –