internal static DriverOptions DeterminePlatform(this DriverOptions options, TestPlatformType platform) { PlatformType platformType = PlatformType.Linux; switch (platform) { case TestPlatformType.Grid: platformType = PlatformType.Linux; break; case TestPlatformType.GridLocal: platformType = PlatformType.Linux; break; case TestPlatformType.Linux: platformType = PlatformType.Linux; break; case TestPlatformType.Windows: platformType = PlatformType.Windows; break; case TestPlatformType.Mac: platformType = PlatformType.Mac; break; case TestPlatformType.IOS: platformType = PlatformType.Mac; break; case TestPlatformType.Android: platformType = PlatformType.Android; break; default: log.Debug("Unrecognized Platform... defaulting to Linux"); break; } options.PlatformName = platformType.ToString(); return(options); }
public BaseUtils(TestPlatformType testPlatform, string gridAddress) => ConfigGridAddress(testPlatform, gridAddress);
public DriverOptions DetermineDriverOptions(TestPlatformType platform, BrowserType browser, string testDetails) => DetermineBrowser(browser, testDetails).DeterminePlatform(platform);
public static IBaseUtils SetGridAddress(TestPlatformType testPlatform, string gridAddress) => new BaseUtils(testPlatform, gridAddress);