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,910 points
44 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
102 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,590 points
1,140 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,590 points
130 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,030 points
72 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
445 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
55 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
62 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.