2

我试图设置一个测试控制器和测试代理,供开发人员在Visual Studio中运行其单元测试时使用。我有TA和TC建立起来并相互连接。我在一个项目中创建了testsettings文件,并将Test执行方法设置为Remote Execution,并指向了Test Controller。当我尝试运行的TA一个测试,我得到以下出把在Visual Studio:从Visual Studio运行测试代理的单元测试:登录尝试失败

------ Run test started ------ 
Ignoring test impact data collector settings specified in the .TestSettings file. 
Failed to queue test run '[email protected] 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 '[email protected] 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有关,但我一直没有找到多少关于它的内容?

回答

0

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

简单修复是使用VS 2013开始负载测试。