
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?
这个程序已经写好了吗?
jim highsmith