Join 500+ Software Testing professionals. Solve problem and get your problem solved. Register Now!

0
What blends better Selenium-TestNG or Selenium-JUnit

Solved 1 Answers 31 Views
0 1
What blends better Selenium-TestNG or Selenium-JUnit?

1 Answer

0
Best answer
0

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

answered by (859 points)
selected by

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.
...