예제 #1
0
        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);
        }
예제 #2
0
 public BaseUtils(TestPlatformType testPlatform, string gridAddress)
 => ConfigGridAddress(testPlatform, gridAddress);
예제 #3
0
 public DriverOptions DetermineDriverOptions(TestPlatformType platform, BrowserType browser, string testDetails)
 => DetermineBrowser(browser, testDetails).DeterminePlatform(platform);
예제 #4
0
 public static IBaseUtils SetGridAddress(TestPlatformType testPlatform, string gridAddress) => new BaseUtils(testPlatform, gridAddress);