What is the difference between JUnit and TestNG?

Asked by Last Modified  

1 Answer

Follow 1
Answer

Please enter your answer

Professional Trainer

JUnit is a framework that is open-source and may be used to write and trigger tests. TestNG is a Java-based framework that provides an improved way to run tests. Advanced annotation is not supported. It is capable of supporting more advanced annotation.
Comments

Related Questions

Need career switch from manual/QTP to a testing domain which is in demand and has less skilled resources..Please advise
You can join my training classes on Selenium using java. That helps to boost your career and salary as well..!
Bhavya
Is it necessary to know automation Testing always?
Answer of such kind of question always be diplomatic for all QA's. It's my personal opinion, automation is equally important as manual in current trends. Yes, important not necessary, now value of automation...
Test
I completed BCA in 2016. Is learning software testing good for me because as I have a gap in my career? Please suggest.
If you can do programming then, you can start your career with any programming that gives you the right package and scope is very good. But if you are feeling link, you will not be able to do programming,...
Varun
Hello, I am new in iOS development. What is the best way of learning iOS and Programming also?
You could start learning objective C for iOS app development. Please contact us for more information.
Vikas

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Puzzle: There is a lotus (or any flower) in a pool which doubles its size every day, on the 20th day it would be.
Puzzle: There is a lotus (or any flower) in a pool which doubles its size every day, on the 20th day it would be enough to cover the complete pool. On which day the size of the lotus was half the size...

Code to launch Chrome browser using Appium on Andriod
DesiredCapabilities capabilities = new DesiredCapabilities();capabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, "Android");capabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION,...

Puzzle : There is a pond, and you have 2 container of 5 and 3 liters. You need to provide me 4 liters of water. How would you do that?
Puzzle : There is a pond, and you have 2 container of 5 and 3 liters. You need to provide me 4 liters of water. How would you do that.Note: You need to provide water to me out of those 2 containers, extra...

Example of DependsOnMethod in TestNG
public class dependsonM { @Test public void login() { System.out.println("login"); } @Test (dependsOnMethods = {"login"}) public void email() { //Intentionally I am failing this testcase Assert.assertTrue(false);...
S

Sarthak C.

0 0
0

Selenium
Selenium Overview: Selenium Components and Architecture. Why Java for Selenium, Installing Java Eclipse. First Eclipse Project and Java program. Platform independence. Selenium...

Recommended Articles

A lot of students who look forward to build a career in IT are keen to know if Software Testing could be stepping stone for them. Software testing is processes by means quality of the software is tested and improved. It is primarily done to figure out the differences between expected output and the actual output in software...

Read full article >

Software Development has been one of the most popular career trends since years. The reason behind this is the fact that software are being used almost everywhere today.  In all of our lives, from the morning’s alarm clock to the coffee maker, car, mobile phone, computer, ATM and in almost everything we use in our daily...

Read full article >

Information technology consultancy or Information technology consulting is a specialized field in which one can set their focus on providing advisory services to business firms on finding ways to use innovations in information technology to further their business and meet the objectives of the business. Not only does...

Read full article >

Almost all of us, inside the pocket, bag or on the table have a mobile phone, out of which 90% of us have a smartphone. The technology is advancing rapidly. When it comes to mobile phones, people today want much more than just making phone calls and playing games on the go. People now want instant access to all their business...

Read full article >

Looking for Software Testing classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you