Created
June 3, 2022 12:19
-
-
Save nadvolod/49ac7a3a13825b75e0c079eb6f80936a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RunWith(Parameterized.class) | |
public class DesktopTests extends SauceBaseTest { | |
/* | |
* Configure our data driven parameters | |
* */ | |
@Parameterized.Parameter | |
public Browser browserName; | |
@Parameterized.Parameter(1) | |
public String browserVersion; | |
@Parameterized.Parameter(2) | |
public SaucePlatform platform; | |
@Parameterized.Parameters() | |
public static Collection<Object[]> crossBrowserData() { | |
return Arrays.asList(new Object[][] { | |
{ Browser.CHROME, "latest", SaucePlatform.WINDOWS_10 }, | |
{ Browser.CHROME, "latest-1", SaucePlatform.WINDOWS_10 }, | |
{ Browser.SAFARI, "latest", SaucePlatform.MAC_MOJAVE }, | |
{ Browser.CHROME, "latest", SaucePlatform.MAC_MOJAVE } | |
}); | |
} | |
@Override | |
public SauceOptions createSauceOptions() { | |
SauceOptions sauceOptions = new SauceOptions(); | |
sauceOptions.setBrowserName(browserName); | |
sauceOptions.setBrowserVersion(browserVersion); | |
sauceOptions.setPlatformName(platform); | |
return sauceOptions; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment