Solved

Junit and TestNG which one is the better for sofware testing

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

760 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now