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

Chapter 7. Parallelism

In the previous chapter we had learned about the @Factory annotation, its advantages, its comparison with data-driven tests, and how it can be used along with data-driven tests. In this chapter we will cover the parallelism or the multithreading feature provided by TestNG. We will also learn about the different configuration options provided by TestNG for running the tests in parallel or multithreaded mode.

In this chapter we'll cover the following topics:

  • Parallelism
  • A simple multithreaded test
  • Running test methods in parallel
  • Running test classes in parallel
  • Running tests in a suite in parallel
  • Configuring an independent test method to run in parallel
  • Advantages and uses

Parallelism

Parallelism or multithreading in software terms ...

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