Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
212 views
by
retagged by
What blends better Selenium-TestNG or Selenium-JUnit?

1 Answer

0 like 0 dislike
by Master (1.2k points)
selected by
 
Best answer

Selenium with TestNG blends much better.

As TestNG provides flexibility to do

  • Parallel execution
  • Parameterized execution
  • Choosing your tests to be executed through the XML file. i.e. define your test suite via XML file.

Above cannot be done via JUnit. Those features were missing on JUnit at first place. That's why TestNG came into the picture at first place.

So, TestNG with Selenium is the much better choice.

You can check out detailed answers here

https://softwaretestingboard.com/qna/2517/why-do-we-use-testng-rather-than-junit-and-nunit?show=2517#q2517


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

...