Diziana
- Total activity 285
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 26
- Subscriptions 146
Articles
Recent activity by Diziana Sort by recent activity-
This is a small class that will hold a pool of driver objects.
This is a small class that will hold a pool of driver objects. We are using a ThreadLocal object to instantiate our WebDriverThread objects in separate threads. We have also created a getDriver(...
-
ext, we need to create a class called DriverFactory.java
package com.masteringselenium; import org.openqa.selenium.WebDriver; import org.testng.annotations.AfterMethod; import org.testng.annotations.BeforeSuite; public class DriverFactory...
-
We are going to now build a project structure that looks like this:
First of all, we need to create our WebDriverThread class: package com.masteringselenium; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; impo...
-
It is important to note that there is no guarantee in which order tests will be run.
We are using the threadCount con guration setting to control how many tests we run in parallel but, as you may have noticed, we have not speci ed a number. Instead, we have used the Maven variab...
-
TestNG supports parallel threads out-of-the-box
We just need to tell it how to use them. This is where the maven-failsafe plugin comes in. We are going to use it to con gure our parallel execution environment for our tests. This con guration ...
-
Parallel tests with TestNG
The TestNG examples used in this chapter will be using TestNG version 6.9.4 and the Maven failsafe plugin version 2.17. If you use older versions of these components, the functionality that we a...
-
Running your tests in parallel
Running your tests in parallel means different things to different people, as follows: Running all of your tests against multiple browsers at the same time Running your tests against multipl...
-
Building our test project with Apache Maven
Getting a fully working Maven install up-and-running is beyond the scope of this book, but it shouldn't be too hard. Apache has a guide to setting Maven up in 5 minutes at the following link: ht...
-
Making it easy for developers to run tests
Ideally, we want our tests to run every time somebody pushes code to the central code repository; part of doing this is ensuring that it's very easy to run our tests. If somebody can just check ...
-
Creating a Fast Feedback Loop
One of the main problems you hear people talking about with Selenium is how long it takes to run all of their tests. I have heard gures ranging from a couple of hours to a couple of days. In thi...