2007年4月19日星期四

HTMLUnit

http://htmlunit.sourceforge.net/

一个用来测试基于网络的程序的测试框架,(测试Java程序的有JUnit,测试CPP的也有CPPUnit)等等。

HtmlUnit is a java unit testing framework for testing web based applications. It is similar in concept to httpunit but is very different in implementation. Which one is better for you depends on how you like to write your tests. HttpUnit models the http protocol so you deal with request and response objects. HtmlUnit on the other hand, models the returned document so that you deal with pages and forms and tables.

HtmlUnit was originally written by Mike Bowler of Gargoyle Software and released under an apache style license. Since then, it has received many contributions from other developers and would not be where it is today without their assistance.

HtmlUnit is not a generic unit testing framework. It is specifically a way to simulate a browser for testing purposes and is intended to be used within another testing framework such as JUnit. Refer to the document "Getting Started with HtmlUnit" for an introduction.

NOTE: This documentation is for the current code in SVN and may not accurately reflect the version of HtmlUnit that you have downloaded. Refer to the documentation that came with your download for the most correct information

没有评论: