Solved

Junit and TestNG which one is the better for sofware testing

Posted on 2016-08-24
1
72 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 16

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

749 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