我已经创建了简单的web应用程序项目,为此我添加了Web和负载测试。当我测试web测试项目时,它工作正常,但当我测试负载测试时,所有的请求都失败了。
你能帮我解决上面的问题吗?
它显示了以下内容的问题(添加了空白以使其更容易阅读):
1....at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at Microsoft.VisualStudio.TestTools.WebStress.WebTestTransaction.ResponseReceived
(IAsyncResult result)
2....at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure,
Socket s4, Socket s6, Socket& socket, IPAddress& address,
ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
发布于 2017-11-09 15:51:11
web测试结果的图像显示web应用程序在localhost
上。负载测试镜像来自微软的云负载服务。云计算机将无法访问开发计算机的localhost
。
有两种可能的解决方案。
.testsettings
文件中Test run location
下的单选按钮来完成。新解决方案中的默认设置是使用云服务。https://stackoverflow.com/questions/47194775
复制相似问题