从Visual Studio对Test Agent运行单元测试:登录尝试失败

时间:2014-08-28 14:21:08

标签: visual-studio-2013 acceptance-testing microsoft-test-manager

我正在尝试设置一个测试控制器和测试代理,供开发人员在从Visual Studio运行他们的单元测试时使用。我有TA和TC设置并相互连接。我在项目中创建了testsettings文件,并将Test执行方法设置为Remote Execution,指向Test Controller。当我尝试在TA上进行测试时,我会在visual studio中进行以下操作:

------ Run test started ------
Ignoring test impact data collector settings specified in the .TestSettings file.
Failed to queue test run 'user@MACHINE 2014-08-28 08:46:31': The server has rejected the client credentials.
The logon attempt failed
========== Run test finished: 4 run (0:00:17.353169) ==========

测试控制器日志如下:

V, 2156, 23, 2014/08/28, 08:46:31.215, CONTROLLER\QTController.exe, User CORP\user is system, Admin, or controller user
I, 2156, 23, 2014/08/28, 08:46:31.215, CONTROLLER\QTController.exe, A user has successfully authenticated to obtain the ControllerObject.
I, 2156, 23, 2014/08/28, 08:46:31.262, CONTROLLER\QTController.exe, Testing LoadTestResultConnectString
W, 2156, 23, 2014/08/28, 08:46:46.411, CONTROLLER\QTController.exe, Test of LoadTestResultConnectString failed: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
V, 2156, 23, 2014/08/28, 08:46:46.724, CONTROLLER\QTController.exe, ControllerObject: Hello
V, 2156, 23, 2014/08/28, 08:46:46.724, CONTROLLER\QTController.exe, ControllerObject: Hello
V, 2156, 23, 2014/08/28, 08:46:46.756, CONTROLLER\QTController.exe, User CORP\user is system, Admin, or controller user
I, 2156, 23, 2014/08/28, 08:46:46.756, CONTROLLER\QTController.exe, ControllerObject: Creating ControllerExecution for TestRun d7489f6d-4608-4b19-abf5-74d773cf3917
I, 2156, 23, 2014/08/28, 08:46:46.756, CONTROLLER\QTController.exe, ControllerSpooledJob: creating spooled job for test run 'user@MACHINE 2014-08-28 08:46:31'
I, 2156, 23, 2014/08/28, 08:46:46.756, CONTROLLER\QTController.exe, ControllerObject: Queuing TestRun d7489f6d-4608-4b19-abf5-74d773cf3917
V, 2156, 23, 2014/08/28, 08:46:49.494, CONTROLLER\QTController.exe, ControllerObject.RequireAgentServiceUser: Agent: AGENT of environment [Default] trying to connect.
V, 2156, 23, 2014/08/28, 08:46:49.494, CONTROLLER\QTController.exe, ControllerObject: AgentHello from AGENT

当TA和TC正好相互通话时,我不确定为什么我会收到此登录错误。我认为它可能与LoadTestResultConnectString有关,但我还没有找到太多关于它的内容?

1 个答案:

答案 0 :(得分:0)

当控制器/代理组合仍在使用VS 2013版本的控制器和代理时,尝试在VS 2015上运行负载测试时出现此问题。

轻松修复是使用VS 2013启动负载测试。