Solved

Junit and TestNG which one is the better for sofware testing

Posted on 2016-08-24
1
52 Views
Last Modified: 2016-09-02
Hi Experts,

JUnit 4 and TestNG are both very popular unit test framework in Java.
Both frameworks look very similar in functionality. Which one is better? Which unit test framework should I use in Java project?
Can some one suggest me with different scenarios?
is there any best test framework to test the code apart from these two?

Thanks,
0
Comment
Question by:srikotesh
1 Comment
 
LVL 15

Accepted Solution

by:
gurpsbassi earned 500 total points
ID: 41769190
I've used junit for many years.
This has been discussed https://www.mkyong.com/unittest/junit-4-vs-testng-comparison/


I can't imagine there is things you can do in testng that you can't do in junit. Junit has come far over the years.

I would pick one you are comfortable with.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question