VisualStudio cloud-based load test socket exception 100% of requests - webtest alone works OK

纵然是瞬间 提交于 2020-01-14 03:16:25

问题


I am taking my first steps with visual studio enterprise load tests. I have created a webtest following this tutorial: https://www.visualstudio.com/en-us/docs/test/performance-testing/run-performance-tests-app-before-release

The webtest works OK, hits my page properly and succeeds. However when I have created a load test with this webtest, each request fails (regardless of the number of users, even with 2 users)

The error is

A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 10.27.8.6:443

and the stack trace

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)

The thing that potentially might be an issue is the fact that I have a self signed SSL certificate that obviously shows the certificate error warning. However, this is something I cannot change for now, so the tests will have to ignore this.

Also, I used https://www.webperformance.com/download/ tool to do these tests and it all worked OK with a relatively high intensity, so this cannot be a matter of poor performance of the site.

Any idea what could it be?

Not sure what more details can I give than below (as I said, for sure its not a matter of performance, because similar load test with different tool runs OK. It is also not a matter of webtest being wrong because it still passes when run as single test).

Webtest setup

Settings:

Loadtest setup

Loadtest settings

来源:https://stackoverflow.com/questions/45351491/visualstudio-cloud-based-load-test-socket-exception-100-of-requests-webtest-a

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!