0

我正在按照http://msdn.microsoft.com/en-us/library/windowsazure/hh674491.aspx的说明部署一个测试平台,控制器和代理托管在 Windows azure 上。我已正确遵循所有指示,并且我的 VS 客户端能够看到控制器和代理。但是,当我执行负载测试时,测试仍处于挂起状态,并且我在控制器的事件日志中看到以下错误。我的问题类似于在以下位置找到的问题:http ://social.msdn.microsoft.com/Forums/en-US/windowsazureconnectivity/thread/4040619f-5667-4445-804a-84f37d823c9f/ 。请帮忙!

(QTController.exe, PID 692, Thread 11) ControllerDeployment.DoDeployment: System.Net.Sockets.SocketException (0x80004005): 连接尝试失败,因为连接方一段时间后没有正确响应,或者建立连接失败,因为连接主机未能响应 [xxx:xxx:xxxx:xxx:xxxx:xxxx:xxxx:220]:6915

服务器堆栈跟踪:在 System.Net.Sockets.Socket.Connect(EndPoint remoteEP) 在 System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket(EndPoint ipEndPoint) 的 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) ) 在 System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket() 在 System.Runtime.Remoting.Channels.SocketCache.GetSocket(String machinePortAndSid, Boolean openNew) 在 System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.SendRequestWithRetry(IMessage消息,ITransportHeaders requestHeaders,流 requestStream)在 System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.ProcessMessage(IMessage msg,ITransportHeaders requestHeaders,流 requestStream,ITransportHeaders& responseHeaders,Stream& responseStream)在 System.Runtime.Remoting。Channels.BinaryClientFormatterSink.SyncProcessMessage(IMessage 消息)

在 [0] 处重新引发异常:在 Microsoft.VisualStudio 的 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) 处的 System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)。 TestTools.Common.FileCopyService.get_DeploymentFlags() 在 Microsoft.VisualStudio.TestTools.Controller.ControllerExecution.b__6(FileCopyService fileCopyService) 在 Microsoft.VisualStudio.TestTools.Execution.RemoteObjectContainer 1.InvokeAsRemoteUser(Action1 调用) 在 Microsoft.VisualStudio.TestTools.Controller.ControllerExecution.DoDeployment ()

4

2 回答 2

0

根据错误消息,控制器似乎无法与代理交谈。您是否设置了如下所述的连接组:“ http://msdn.microsoft.com/en-us/library/windowsazure/hh674497.aspx ” 创建连接组 Azure 的连接功能允许您创建虚拟专用网络。该组的成员可以包括本地计算机以及 Azure 角色实例。对于负载测试解决方案,连接组允许测试控制器和代理之间进行通信。

于 2013-01-30T22:06:20.083 回答
0

也尝试过这个,但无法让它工作。最终不得不将控制器移动到 Azure 中。

我按照文档了解代理需要哪些端口,并在 Azure 防火墙中打开了这些端口。但是,在进行网络捕获之后,IIRC 它还使用了一些无法打开的动态端口。

所以我发现我必须将 Visual Studio、负载代理控制器和负载代理本身全部移到 Azure 中才能在云中使用它。

于 2022-01-28T17:14:13.283 回答