Khangharoth

September 3, 2007

TestNG: Another Testing Framework

Filed under: JEE — khangharoth @ 4:39 pm

Well yet again , some new framework in the pool of already existing frameworks.They all do the same stuff and yet i repeatably come across something which gives more value than existing one’s.

So what is Test-NG , this is the definition from test-ng web site : http://testng.org/doc/

TestNG is a testing framework inspired from JUnit and NUnit but introducing some new functionalities that make it more powerful and easier to use, such as:

  • JDK 5 Annotations (JDK 1.4 is also supported with JavaDoc annotations).
  • Flexible test configuration.
  • Support for data-driven testing (with @DataProvider).
  • Support for parameters.
  • Allows distribution of tests on slave machines.
  • Powerful execution model (no more TestSuite).
  • Supported by a variety of tools and plug-ins (Eclipse, IDEA, Maven, etc…).
  • Embeds BeanShell for further flexibility.
  • Default JDK functions for runtime and logging (no dependencies).
  • Dependent methods for application server testing.

TestNG is designed to cover all categories of tests: unit, functional, end-to-end, integration, etc

I am using it now for my testing requirements and found quite useful when test-cases have dependency on each other or some other subtle things.Overall it does seems more useful and flexible than junit.

Anyway if you are familiar with Junit than it should be fairly easy to start with Test-NG.

Note: I am using Test-NG plug in for eclipse so guess things are fairly simple.

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: