我如何自动化单元测试(包括建立和拆除)的.NET Web代理? [英] How do I automate a web proxy in .NET for unit tests (including set up and tear down)?

查看:244
本文介绍了我如何自动化单元测试(包括建立和拆除)的.NET Web代理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

继乔纳森荷兰在他对我的previous问题意见建议:<一href=\"http://stackoverflow.com/questions/137360/is-there-any-way-in-net-to-programmatically-listen-to-http-traffic\">Is有.NET中所有以编程方式听取HTTP流量我做什么,我的一个单独的(但不完全重复的)问题真的的想知道:

Following Jonathan Holland's suggestion in his comment for my previous question: Is there any way in .NET to programmatically listen to HTTP traffic? I've made a separate (but not exactly a duplicate) question for what I really want to know:

如何在自动化.NET Web代理单元测试(包括建立和拆除),用于暗中监视来自浏览器(尤其是图片,脚本HTTP流量,并XmlHtt $被请求的页面页上$ pquests)?

How do I automate a web proxy in .NET for unit tests (including set up and tear down) for spying on HTTP traffic that comes from the browser (particularly images, scripts, and XmlHttpRequests on the requested page)?

我preFER拥有零的建立(在Windows上安装所以没有小提琴手),其中一切都可以从一个程序集被解压缩,部署,然后取出无踪,可以这么说。

I prefer to have zero set-up (so no Fiddler installed on Windows) where everything can be unpacked from an assembly, deployed, and then removed without a trace, so to speak.

推荐答案

WebAii 2.0有一个内置的HTTP代理:

WebAii 2.0 has a built-in HTTP proxy:

http://www.artoftest.com/community/blogs/09-03-25/WebAii_2_0_Beta_Released.aspx

这篇关于我如何自动化单元测试(包括建立和拆除)的.NET Web代理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆