October 2018
Intermediate to advanced
192 pages
5h 12m
English
Now, we will turn our attention to the changes in the code. Let's start with testng.xml.
The suite tag needs to be changed, as shown here:
<suite name="Suite" parallel="tests">
This indicates that the test tags have to be executed in parallel. We are executing the same program, Driver_Script, three times, with different parameters for the browser name.
The next change has to be done at the place where we instantiate the various drivers. First of all, we create a DesiredCapabilities reference, static DesiredCapabilities capabilities;
The openBrowser(List<String> browserName) method should be changed; the code snippet of one if condition is shown as follows:
public WebDriver openBrowser(List<String> browserName)
Read now
Unlock full access