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 8, 2019 in Selenium by Anjali
• 2,950 points
530 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, 2019 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, 2019 in Selenium by Rishab
• 1,490 points
3,334 views
0 votes
1 answer

Diff between WebDriver listeners and TestNG listeners?

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

answered Apr 14, 2018 in Selenium by king_kenny
• 3,710 points
6,107 views
0 votes
2 answers

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

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

answered Sep 4, 2020 in Selenium by Sri
• 3,190 points
2,487 views
0 votes
2 answers
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,500 points
12,619 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

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

answered Aug 31, 2020 in Selenium by Sri
• 3,190 points
8,572 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,910 points
6,629 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 3, 2020 in Selenium by Sri
• 3,190 points
7,519 views
0 votes
1 answer

What is the difference between type() and typeandwait()?

If you want to type keyboard values(keys) ...READ MORE

answered Jan 8, 2019 in Selenium by Fuji
3,371 views
0 votes
2 answers

Drag and drop in selenium

WebElement dragale = driver.findElement(By.xpath("//*[@id=\"draggable\"]/p")); WebElement dropable = driver.findElement(By.xpath("//*[@id=\"droppable\"]")); Actions ...READ MORE

answered May 4, 2020 in Selenium by dragAndDrop(WebElement source, WebElemen
1,211 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP