Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Junit and TestNG which one is the better for sofware testing

Posted on 2016-08-24
1
Medium Priority
?
92 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 2000 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
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…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Suggested Courses

610 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