2012-09-03 72 views
4

(使用Visual Studio 2012代理工具進行測試)「測試代理無法連接到測試控制器」 VS2012代理

我沒法把我的測試劑(在遠程計算機上)與連接我測試控制器。

我收到錯誤消息:

"Test agent could not connect to the test controller"

在日誌中,出現以下錯誤存在:

一些錯誤顯示多次,所以我必須指出的次數在他們旁邊。

X2:

"Could not get the status from the test agent. Exception: Failed to connect to an IPC Port: The system cannot find the file specified."

X1:

"Could not get the status from the test agent. Exception: Requested Service not found"

X1:

"Could not get the status from the test agent. Exception: Failed to write an IPC Port: The pipe is being closed"

X3:

"Could not get the status from the test agent. Exception: Failed to connect to an IPC Port: The system cannot find the file specified."

任何I DEAS?

在此先感謝。

回答

4

我修正了這個問題。

儘管我的測試代理報告成功創建了防火牆例外,但我檢查了我的防火牆的入站規則,並發現QTAgentService.exe的兩個例外實際上被阻止。

我以前在這臺機器上安裝了Visual Studio 2010代理工具。這些例外情況仍然有效。

我不確定他們爲什麼被封鎖,但有一種可能性是我的防病毒軟件阻止了它(我安裝了AVG防病毒軟件)。我沒有與VS2010代理工具相同的問題。

一旦我解除了兩個異常(一個是UDP,另一個是TCP),我的測試代理就成功地連接了我的測試控制器。

+4

我也遇到了錯誤:「無法從該測試劑的狀態異常:無法連接到IPC端口:系統找不到指定的文件。「對我來說不是一個防火牆問題 - 使用{域} \ {用戶名}而不是{用戶名} @ {域}爲我解決了這個問題......我想在這裏留下一個便條,以防止某人排除錯誤標題 – JohnZaj

+0

在hosts文件中註釋掉所有對127.0.0.1的引用修復了我的問題。 –

2

您應該禁用UAC和防火牆。我面臨這個問題,解決方案是在註冊表中禁用UAC。如果您正在運行測試控制器或測試代理,它適用於Window 8+主機。
請參閱這篇文章:link 您可以通過下面的命令做到這一點:
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f

相關問題