Solved

Junit and TestNG which one is the better for sofware testing

Posted on 2016-08-24
1
81 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

705 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