TestNG is a unique testing framework that targets the J2SE 5.0 platform (But can also be used for J2SE 1.4 applications).
Tutorial Details:
TestNG was developed by Cedric Beust and Alexandru Popescu. The distribution (zip file and/or eclipse plug-in) can be downloaded from http://testng.org/
This article will guide you through some TestNG examples for testing Java SE 5, including some advanced applications of TestNG, and will conclude with a small case study showing EJB 3 testing.
This article is not an introduction to TestNG or testing theory - please refer to the references section at the bottom of this article for introductory links.
This article is based on TestNG 2.4
Support for JUnit >
TestNG can run your existing JUnit classes without any problem. This ability provides you with a transition path to move all JUnit tests to TestNG :-)
xxxUnit >
By xxxUnit, I mean that the most popular extensions to Junit like DBUnit and HttpUnit. TestNG can run all JUnit tests including its sub-projects like the ones previously mentioned. Matthew Schmidt in its JavaLobby article (See references section) shows you how to use TestNG for J2SE 1.4 and JUnit tests.
This article will now focus on the TestNG support for J2SE 5.0.
Read
Tutorial at: Click here to view the tutorial
Rate Tutorial: TestNG
View Tutorial: TestNG
Related
Tutorials:
|