Introduction
Organizations are adopting virtualization and cloud-based technologies to reduce costs and increase efficiency. Virtualization and cloud-based infrastructure can also be used to scale the test automation by reducing investment in physical hardware needed to set up the test environment. Using these technologies, web applications can be tested on a variety of browser and operating system combinations. Selenium WebDriver has unmatched support for testing applications in virtual environment, executing tests in parallel, reducing costs, and increasing speed and coverage. This chapter will cover recipes to configure and execute Selenium WebDriver tests for parallel or distributed execution.
Running tests in parallel requires two things: an infrastructure to distribute the tests, and a framework that will run these tests in parallel in the given infrastructure. In this chapter, we will first create a distributed infrastructure, and then create some tests that will be executed in this...