Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Learning Selenium Testing Tools - Third Edition
  • Table Of Contents Toc
  • Feedback & Rating feedback
Learning Selenium Testing Tools - Third Edition

Learning Selenium Testing Tools - Third Edition - Third Edition

By : Raghavendra Prasad MG
4.4 (11)
close
close
Learning Selenium Testing Tools - Third Edition

Learning Selenium Testing Tools - Third Edition

4.4 (11)
By: Raghavendra Prasad MG

Overview of this book

If you are a software developer with a basic knowledge of testing and are interested in automated testing using Selenium, this is the book for you. No prior knowledge of Selenium is required.
Table of Contents (17 chapters)
close
close
16
Index

Running tests in parallel


So far we have managed to get our tests cycling through different machines. We also got it working against the Selenium Grid hub so that we can see all of our tests being split out to the machines and make sure that we test against browser and operating system combinations.

In this section, we will look at how we can add a thread-count attribute to the <suite> node in our test configuration file. We will also need to add the parallel attribute to the test suite. The value that it takes will either be methods or classes. This will mean that either the methods—the test cases—are run in parallel, or the classes that contain the test cases are running in parallel.

Getting our tests running in parallel

Now, we are ready to have our tests running in parallel:

  1. Open your TestNG XML configuration file.

  2. Add parallel=methods to the suite node.

  3. Add thread-count=3 to the suite node. This will run your tests with three threads. This number can be any value that you want. It is...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Learning Selenium Testing Tools - Third Edition
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon