In TestNG, testing is based on Junit, but it designed to overcomes the limitations of JUnit. Some advantages of TestNG over Junit are :
* Annotations are easier to understand in TestNG
* In TestNG, test cases can be grouped easily
* TestNG supports parallel testing unlike in JUnit