"Verification agent could not connect to the test controller" VS2012 Agents

(Using Visual Studio 2012 Agents testing tools)

It is difficult for me to contact my test agent (on a remote machine) to contact my test controller.

I get an error message:

"The testing agent was unable to connect to the test controller"

The log contains the following errors:

Some errors are displayed several times, so I indicate the number of times next to them.

x2:

"Failed to get status from the testing agent. Exception: could not connect to the IPC port: the system cannot find the specified file."

x1:

"Failed to get status from testing agent. Exception: Requested Service not found"

x1:

"Failed to get status from the testing agent. Exception: failed to write IPC port: the pipe is closed"

x3:

"Failed to get status from the testing agent. Exception: could not connect to the IPC port: the system cannot find the specified file."

Any ideas?

Thanks in advance.

+4
source share
2 answers

I fixed the problem.

Despite the fact that my test agent managed to report on the success of creating firewalls, I looked at my incoming message rules for my firewall and found that two exceptions for QTAgentService.exe were actually blocked.

I previously installed the Visual Studio 2010 Agent Tool on this computer. These exceptions were still included.

I'm not sure why they were blocked, but one of the possibilities is that my antivirus software blocked it (the AVG antivirus that I installed). I did not have the same problem with the VS2010 agent tool.

As soon as I blocked both exceptions (one is UDP, the other is TCP), my test agent successfully connected to my test controller.

+4
source

You must disable both UAC and the firewall. I ran into this problem and the solution was to disable UAC in the registry. It is applicable to Window 8+ hosts if it runs a test controller or test agent.
Refer to this article: link You can do this with the following command:
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f

+2
source

Source: https://habr.com/ru/post/1432092/


All Articles