Open source Java unit test framework (transfer)

xiaoxiao2021-04-04  259

From http://blog.9cbs.net/wangyihust/archive/2006/01/02/568616.aspx

Junit

JUnit is a regression test framework (Regression Testing Framework) written by Erich Gamma and Kent Beck. The JUnit test is a programmer test, that is, the so-called white box test, because the programmer knows how the software is tested (how) completes the function and does what to do (what) features. Junit is a set of frames that inherit the TestCase class, you can use JUnit to automatically test.

http://www.junit.org/

CACTUS

CACTUS is a simple test framework based on the JUnit framework for unit test server Java code. The main goal of the CACTUS frame is to be able to unit test the server's Java method such as HTTPSERVLETREQUEST, HTTPSESSION, and so on.

http://jakarta.apache.org/cactus/

ABBOT

ABBOT is a framework for testing Java Guis. With simple XML-based script or Java code, you can start a GUI.

http://abbot.sourceforge.net/

Junitperf

JUnitPerf is actually a Decorator in Junit, and we can automate the test process by writing unit tests for JUnitPerf.

http://www.clarkware.com/software/junitperf.html

DBUnit

DBUnit is an extension for JUnit to drive database-driven projects, in addition to providing some common functions, which can place your database between a test reincarnation.

http://dbunit.sourceforge.net/

Mockrunner

MockRunner is tested in the J2EE environment for applications. It not only supports Struts Actions, Servlets, Filters, and Tags, but also include a JDBC and a JMS test framework that can be used to test EJB-based applications.

Http://mockrunner.sourceforge.net/index.html

DBMonster

DBMonster is a pressure test tool for testing a SQL database with a generated random data.

http://dbmonster.kernelpanic.pl/

Mockejb

Mockejb is a lightweight framework that does not require an EJB container to run EJB and test.

http://mockejb.sourceforge.net/

Strutstestcase

StrutstestCase is an extension of the JUnit TestCase class, providing code testing based on the Struts framework. StrutstestCase also provides Mock object methods and CACTUS methods to actually run the Struts ActionServlet, and you can test it by running the Servlet engine. Because StrutStestCase uses the ActionServlet controller to test your code, you can not only test the implementation of the Action object, but also test mappings, from beans, and forwards declarations. StrutStestCase does not start the servlet container to test the Struts application (the container external test) is also a Mock object test, but the EasyMock is different from EasyMock is an API that provides a MOCK object, and StrutStest is specifically responsible for testing the Struts application Mock Object test framework.

http://strutstestcase.sourceforge.net/jfcunit

JFcUnit makes you can write test examples for Java offset applications. It provides support for the handle from the window opened from the code; supports support in one component hierarchy; to initiate events (such as press a button) and support the component testing in the part.

http://jfcunit.sourceforge.net/

Jtestcase

JtestCase uses XML files to organize multi-test case data, declared conditions (operations, and desired results), provide a way for easy-to-use methods to retrieve test cases in XML, declare results according to the definition of data files.

http://jtestcase.sourceforge.net/

SQLUnit

SQLUnit is a unit test framework for registering the data stock process. Developed with Java / JUnit / XML.

http://sqlunit.sourceforge.net

JTR

JTR (Java Test Runner) is an open source J2EE test framework based on reverse control (IoC). It allows you to build a complex J2EE test suite and connect to the application server execution test, which can include multiple test instances. JTR's licensed is a GPL protocol.

http://jtrunner.sourceforge.net/

Marathon

Marathon is a test framework for developing a GUI application using Java / Swing, which consists of Recorder, Runner, and Editor. The test script is Python code. Marathon's focus is on the final user's test.

http://marathonman.sourceforge.net

TestNG

Testng is a test framework built according to JUnit and NUnit thought, but TestNG adds many new features to make it more powerful and easy to use, such as: * Support JSR 175 annotation (JDK 1.4 uses Javadoc comments, also support) * Flexible TEST configuration * Support the default Runtime and Logging JDK feature * Powerful execution model (no longer testSuite) * Support independent test methods.

http://testng.org/

Surrogate Test Framework

Surrogate Test Framework is a worthy of the unit test framework, especially for unit tests of large, complex Java systems. This framework can be seamlessly combined with JUnit, Mockejb, and various support tools for Mock Object. This framework is based on AspectJ technology.

http://surrogate.sourceforge.net

Mockcreator

MockCreator can generate the source code of an analog object (Mock Object) for a given Interface or Class.

http://mockcreat.sourceforge.net/

JMOCK

JMOCK uses Mock Objects idea to test Java Code. JMOCK has the following features: easy to expand, let you quickly and easly define Mock Objects, so you don't have to break the association between programs, let you define the interaction between the flexible transcendence, reducing your testing fragility.

http://www.jmock.org/

Easymock

Easymock provides an interface for Mock Objects and generates their instances in Junit testing. Easymock is best suited for test driver development.

http://www.easymock.org/

The grinder

The grinder is a load test framework. It is free to use under the BSD open source protocol.

http://grinder.sourceforge.net/xmlunit

XmlUnit not only has a .NET version not of the Java version. The XMLUnit, developed by Java offers two JUnit extensions XMLASSERT and XMLTestCase, and a group of supported classes. These classes can be used to compare the difference between the two XMLs, showing XML to verify XML, check XML, and obtain the value in XML in XML, traversing a certain node Dom in XML Expand.

http://xmlunit.sourceforge.net/

Jameleon

Jameleon an automated test tool. It is used to test a variety of applications, so it is designed to plug-in mode. In order to make the entire test process brief Jameleon, Jameleon implemented a Swing plugin.

http://jameleon.sourceforge.net/index.html

J2meUnit

J2meUnit is a unit test framework that applies to the J2ME application. It is based on JUnit.

http://j2meUnit.sourceforge.net/

Jetif Jetif is a regression test framework implemented with pure Java. It provides a simple and scalable architecture for Java program unit testing and function testing, which can be used for personal development or enterprise-level development testing. It is easy to use, powerful, and has some important functions of enterprise-level testing. Jetif comes from JUnit, Jtestcase, and TestNG inspiration, several basic concepts come directly from JUnit, such as assertive mechanisms, Test Listener's concept, so it is very easy from JUnit to Jetif. http://jetif.sourceforge.net/ Groboutils Groboutils makes it possible to extend the Java test. It includes multiple sub-projects tested in Java different aspects. The most common tools in GROBOUTILS are: Multi-Threaded Tests, Hierarchial Unit Tests, Code Coverage Tool. http://groboutils.sourceforge.net/ Testare Testare is a test framework for simplify distributed applications (such as: in servlets, JMS Listener, Corba Orbs, or RMI). https://testare.dev.java.net/

转载请注明原文地址:https://www.9cbs.com/read-131954.html

New Post(0)