TestNG and Junit

0 votes
Is Junit better than testNG? If yes why? Can someone guide me through this as I am new to testNG.
Jan 7 in Selenium by Anjali
• 2,930 points
70 views

1 answer to this question.

0 votes

No, testNG is better than JUnit. Here are few of the reasons why testNG is considered better than Junit.

TestNG is a testing framework inspired from JUnit and NUnit in a way to use the merits by both the developers and testers.  Here are some new functionalities that make it more powerful and easier to use, such as:

  • test that your code is multithread safe
  • support for data-driven testing
  • support for parameters
  • a variety of tools and plug-ins support (Eclipse, IDEA, Maven, etc...)
  • default JDK functions for runtime and logging
  • dependent methods for application server testing
  • flexible test configuration
answered Jan 8 by Nabarupa

Related Questions In Selenium

0 votes
1 answer

What is the difference between JUnit and TestNG?

JUnit    TestNG It is opensource testing framework. It is ...READ MORE

answered Jan 17 in Selenium by Rishab
• 1,460 points
233 views
0 votes
1 answer

Diff between WebDriver listeners and TestNG listeners?

This is not a very important concept ...READ MORE

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

What is the role of TestNG & JUnit frameworks in Selenium?

Well TestNG and JUnit are test frameworks ...READ MORE

answered Apr 18, 2018 in Selenium by king_kenny
• 3,650 points
266 views
0 votes
1 answer

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,090 points
602 views
0 votes
1 answer
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,130 points
903 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,130 points
589 views
0 votes
1 answer
0 votes
1 answer

Drag and drop in selenium

Here is what I did, you can ...READ MORE

answered Jan 7 in Selenium by Dish
123 views