O'Reilly logo

TestNg Beginner's Guide by Varun Menon

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Advantages and uses

Parallelism or multithreaded execution can provide a lot of advantages to the users. The following are two:

  • Reduces execution time: As tests are executed in parallel, multiple tests get executed simultaneously, hence reducing the overall time taken to execute the tests
  • Allows multithreaded tests: Using this feature, we can write tests to verify certain multithreaded code in the applications

This feature is vastly used by the QA industry for functional automation testing. This feature helps QA guys configure their tests to be executed easily in multiple browsers or operating systems simultaneously.

Pop quiz – parallelism

Q1. What is the attribute that needs to be used to configure TestNG tests to run in parallel?

  1. threading
  2. thread-count ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required