Selenium:JUnit 和 testNG 在并行测试方面有什么区别?

Selenium: what difference between JUnit and testNG to parallel the tests?

我发现了 selenium,更准确地说是 selenium 网格,它允许在多个浏览器上创建节点和执行并行测试。

我想知道这两个框架之间的区别是什么:有一个比另一个表现更好吗? 谢谢

根据 Cédric Beust 的 TestNG Documentation:

TestNG is a testing framework inspired from JUnit and NUnit but introducing some new functionalities that make it more powerful and easier to use, such as:

  • Annotations.
  • Run your tests in arbitrarily big thread pools with various policies available (all methods in their own thread, one thread per test class, etc).
  • Test that your code is multithread safe.
  • Flexible test configuration.
  • Support for data-driven testing (with @DataProvider).
  • Support for parameters.
  • Powerful execution model (no more TestSuite).
  • Supported by a variety of tools and plug-ins (Eclipse, IDEA, Maven, etc...).
  • Embeds BeanShell for further flexibility.
  • Default JDK functions for runtime and logging (no dependencies).
  • Dependent methods for application server testing.

TestNG is designed to cover all categories of tests: unit, functional, end-to-end, integration.