What is the difference between JUnit and TestNG?

0 votes
What is the difference between JUnit and TestNG as both are used for testing and anotations are also almost similar. Is TestNG the v2 for JUnit?

Can someone help me with this?
Jan 17, 2019 in Selenium by Anjali
• 2,950 points
1,890 views

1 answer to this question.

0 votes
JUnit    TestNG
It is opensource testing framework. It is also opensource testing framework with added benefits.
Does not support advanced annotations. Supports advanced annotations and special annotations.
Does not support parallel testing. Supports Parallel testing.
Group test feature is not present here. Group test feature is TestNG's commonly used feature.
Parameterized test case take less time. Parameterized test take more time and are complicated.
It is difficult to use. It is much easier to use.

answered Jan 17, 2019 by Rishab
• 1,480 points

Related Questions In Selenium

0 votes
2 answers
0 votes
1 answer

What is the difference between thoughtworks.selenium and openqa.selenium selenium?

thoughtworks.selenium is the original Selenium (aka Selenium 1, ...READ MORE

answered Apr 13, 2018 in Selenium by king_kenny
• 3,710 points
919 views
0 votes
1 answer

What is difference the between Selenium and Celerity?

If you are talking about speed, use Celerity. If ...READ MORE

answered Apr 20, 2018 in Selenium by king_kenny
• 3,710 points
231 views
0 votes
1 answer

What is the difference between dot and text() in XPath?

Even though there is some difference between ...READ MORE

answered Apr 25, 2018 in Selenium by king_kenny
• 3,710 points
3,614 views
0 votes
1 answer
0 votes
1 answer

What is the difference between relative and absolute XPath?

Absolute Xpath: It contains the complete path ...READ MORE

answered Dec 19, 2018 in Selenium by Nabarupa
17,301 views
0 votes
2 answers

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,510 points
3,530 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31 in Selenium by Sri
• 2,970 points
4,534 views
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,890 points
2,595 views
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 2 in Selenium by Sri
• 2,970 points
2,862 views