[英]How can I check the HTTP calls my unit test makes?
I am using Visual Studio 2015. This link makes it look easy: 我正在使用Visual Studio2015。此链接使它看起来很容易:
https://blogs.msdn.microsoft.com/visualstudio/2015/05/04/introducing-visual-studios-network-tool/ https://blogs.msdn.microsoft.com/visualstudio/2015/05/04/introducing-visual-studios-network-tool/
However, that menu option does not exist. 但是,该菜单选项不存在。 Instead, it is under the Analyze > Performance Profiler menu.
相反,它位于“分析”>“性能分析器”菜单下。 However, the network profiling tools are not selectable:
但是,无法选择网络配置工具:
I have set the startup project to be my unit test project, but no luck. 我已经将启动项目设置为我的单元测试项目,但是没有运气。
My question: when running a unit test, how can I check what network calls are made? 我的问题:运行单元测试时,如何检查进行了哪些网络调用?
Fiddler is a good alternative if no one is able to help you get VS2015 working. 如果没有人能够帮助您使VS2015正常运行,Fiddler是一个不错的选择。 Also works for all HTTP traffic from your box and can decrypt HTTPS
也适用于您盒子中的所有HTTP流量,并且可以解密HTTPS
http://www.telerik.com/fiddler http://www.telerik.com/fiddler
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.