jim highsmith_自动化测试NET Web服务和应用程序我刚刚发现Jim Jim

博客围绕自动化测试.NET Web服务和应用程序展开。提到Jim Klopfenstein的代码可简化Web Service单元测试,无需IIS和ASP.NET,便于自动构建。还探讨了将Cassini、Web.Hosting与NUnitASP结合用于自动构建,以及插入.NET侦听层记录HTTP请求等内容。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

jim highsmith

jim highsmith

Automated Testing .NET Web Services and Applications

自动化测试.NET Web服务和应用程序

I just found Jim Klopfenstein's Executing ASMX files without a web server article. Jim's code could simplify most Web Service unit testing. And since it doesn't need IIS, or even ASP.NET, it would be easy to run during automated builds. Jim doesn't say, but I wouldn't be surprised if this is the reason he was trying to get this working.I haven't thought much about it but you should be able to do the same thing for ASPX files. Has someone already done this?[matt.griffith]

我刚刚发现Jim Klopfenstein的Executing ASMX文件,而没有网络服务器文章。 Jim的代码可以简化大多数Web Service单元测试。 而且由于它不需要IIS,甚至不需要ASP.NET,因此在自动构建过程中很容易运行。 Jim没有说,但是如果这就是他试图使它起作用的原因,我不会感到惊讶。我对此没有考虑太多,但是您应该能够对ASPX文件执行相同的操作。 有人已经这样做了吗?[ matt.griffith ]

Interesting!  I knew that Cassini  (the ASP.NET "Host ASPNET_WP.EXE yourself" sample) and Web.Hosting, once "discovered", would cause good things to be built.  I'm sure if this was combined with my friend Jim Little's NUnitASP it could all be run within a NAnt automated build.

有趣! 我知道,一旦“发现”了Cassini (ASP.NET“自己托管ASPNET_WP.EXE”示例)和Web.Hosting,就会造就好东西。 我确定如果与我的朋友Jim Little的NUnitASP结合使用,它们都可以在NAnt自动构建中运行。

I wonder how hard it would be to insert an .NET interception layer/proxy server in between a Web Browser and ASP.NET to record the HTTP GETs and POSTs into a simple XML "recorder" file.  These could then be played back as part of an NUnit/NUnitASP Test and added to the build.  Regular expressions and and maybe an SGMLReader, also stored in the XML could validate the reponses...then I could stop using LoadRunner or SilkPeformer...

我不知道在Web浏览器和ASP.NET之间插入.NET侦听层/代理服务器将HTTP GET和POST记录到简单的XML“记录器”文件中会多么困难。 然后可以将它们作为NUnit / NUnitASP测试的一部分进行回放,并将其添加到构建中。 XML中存储的正则表达式以及SGMLReader可以验证响应...然后我可以停止使用LoadRunner或SilkPeformer ...

Has this app already been written? 

这个程序已经写好了吗?

翻译自: https://www.hanselman.com/blog/automated-testing-net-web-services-and-applications-i-just-found-jim-klo

jim highsmith

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值