public AppAttribute(string appPath, AppBehavior behavior = AppBehavior.NotSet) { AppConfiguration = new AppConfiguration(); AppConfiguration.AppPath = appPath; AppConfiguration.AppBehavior = behavior; AppConfiguration.Size = default; AppConfiguration.DesiredCapabilities = new DesiredCapabilities(); }
public AppConfiguration(string appPath, AppBehavior appBehavior, Size size, string classFullName, DesiredCapabilities appiumOptions = null) { AppPath = appPath; AppBehavior = appBehavior; Size = size; ClassFullName = classFullName; DesiredCapabilities = appiumOptions; }
public IOSSauceLabsAttribute( string appPath, string platformVersion, string deviceName, AppBehavior behavior = AppBehavior.NotSet, bool recordVideo = false, bool recordScreenshots = false) : base(appPath, platformVersion, deviceName, behavior, recordVideo, recordScreenshots) { AppConfiguration.MobileOSType = MobileOSType.IOS; AppConfiguration.PlatformName = "iOS"; }
protected SauceLabsAttribute( string appPath, string platformVersion, string deviceName, AppBehavior behavior = AppBehavior.NotSet, bool recordVideo = false, bool recordScreenshots = false) : base(appPath, platformVersion, deviceName, behavior) { RecordVideo = recordVideo; RecordScreenshots = recordScreenshots; AppConfiguration.ExecutionType = ExecutionType.SauceLabs; }
public IOSCrossBrowserTestingAttribute( string appPath, string platformVersion, string deviceName, AppBehavior behavior = AppBehavior.NotSet, bool recordVideo = false, bool recordNetwork = false, string build = null) : base(appPath, platformVersion, deviceName, behavior, recordVideo, recordNetwork, build) { AppConfiguration.MobileOSType = MobileOSType.IOS; AppConfiguration.PlatformName = "iOS"; }
public static void ChangeBehavior(AppBehavior newBehavior) { if (ActualBehavior == newBehavior) { return; } if (ActualBehavior != null) { ActualBehavior.Detach(); } ActualBehavior = newBehavior; ActualBehavior.Attach(); }
public IOSBrowserStackAttribute( string appPath, string platformVersion, string deviceName, AppBehavior behavior = AppBehavior.NotSet, bool captureVideo = false, bool captureNetworkLogs = false, BrowserStackConsoleLogType consoleLogType = BrowserStackConsoleLogType.Disable, bool debug = false, string build = null) : base(appPath, platformVersion, deviceName, behavior, captureVideo, captureNetworkLogs, consoleLogType, debug, build) { AppConfiguration.MobileOSType = MobileOSType.IOS; AppConfiguration.PlatformName = "iOS"; }
protected CrossBrowserTestingAttribute( string appPath, string platformVersion, string deviceName, AppBehavior behavior = AppBehavior.NotSet, bool recordVideo = false, bool recordNetwork = false, string build = null) : base(appPath, platformVersion, deviceName, behavior) { Build = build; RecordVideo = recordVideo; RecordNetwork = recordNetwork; AppConfiguration.ExecutionType = ExecutionType.BrowserStack; }
public AndroidSauceLabsAttribute( string appPath, string platformVersion, string deviceName, string appPackage, string appActivity, AppBehavior behavior = AppBehavior.NotSet, bool recordVideo = false, bool recordScreenshots = false) : base(appPath, platformVersion, deviceName, behavior, recordVideo, recordScreenshots) { AppConfiguration.MobileOSType = MobileOSType.Android; AppConfiguration.PlatformName = "Android"; AppConfiguration.AppPackage = appPackage; AppConfiguration.AppActivity = appActivity; }
public AndroidCrossBrowserTestingAttribute( string appPath, string platformVersion, string deviceName, string appPackage, string appActivity, AppBehavior behavior = AppBehavior.NotSet, bool recordVideo = false, bool recordNetwork = false, string build = null) : base(appPath, platformVersion, deviceName, behavior, recordVideo, recordNetwork, build) { AppConfiguration.MobileOSType = MobileOSType.Android; AppConfiguration.PlatformName = "Android"; AppConfiguration.AppPackage = appPackage; AppConfiguration.AppActivity = appActivity; }
protected BrowserStackAttribute( string appPath, string platformVersion, string deviceName, AppBehavior behavior = AppBehavior.NotSet, bool captureVideo = false, bool captureNetworkLogs = false, BrowserStackConsoleLogType consoleLogType = BrowserStackConsoleLogType.Disable, bool debug = false, string build = null) : base(appPath, platformVersion, deviceName, behavior) { Debug = debug; Build = build; CaptureVideo = captureVideo; CaptureNetworkLogs = captureNetworkLogs; ConsoleLogType = consoleLogType; AppConfiguration.ExecutionType = ExecutionType.BrowserStack; }
public AndroidBrowserStackAttribute( string appPath, string platformVersion, string deviceName, string appPackage, string appActivity, AppBehavior behavior = AppBehavior.NotSet, bool captureVideo = false, bool captureNetworkLogs = false, BrowserStackConsoleLogType consoleLogType = BrowserStackConsoleLogType.Disable, bool debug = false, string build = null) : base(appPath, platformVersion, deviceName, behavior, captureVideo, captureNetworkLogs, consoleLogType, debug, build) { AppConfiguration.MobileOSType = MobileOSType.Android; AppConfiguration.PlatformName = "Android"; AppConfiguration.AppPackage = appPackage; AppConfiguration.AppActivity = appActivity; }
public IOSAttribute(OS osPlatform, string appPath, string platformVersion, string deviceName, AppBehavior behavior = AppBehavior.NotSet) : base(osPlatform, appPath, platformVersion, deviceName, behavior) => AppConfiguration.MobileOSType = MobileOSType.IOS;
public IOSWebAttribute(OS osPlatform, string appPath, string platformVersion, string deviceName, AppBehavior behavior = AppBehavior.NotSet) : base(osPlatform, appPath, platformVersion, deviceName, behavior) { AppConfiguration.OSPlatform = OS.OSX; AppConfiguration.MobileOSType = MobileOSType.IOS; AppConfiguration.PlatformName = "iOS"; AppConfiguration.BrowserName = "Safari"; }
public AndroidAttribute(OS osPlatform, string appPath, string platformVersion, string deviceName, string appPackage, string appActivity, AppBehavior behavior = AppBehavior.NotSet) : base(osPlatform, appPath, platformVersion, deviceName, behavior) { AppConfiguration.MobileOSType = MobileOSType.Android; AppConfiguration.PlatformName = "Android"; AppConfiguration.AppPackage = appPackage; AppConfiguration.AppActivity = appActivity; }
public AndroidWebAttribute(OS osPlatform, string appPath, string platformVersion, string deviceName, AppBehavior behavior = AppBehavior.NotSet) : base(osPlatform, appPath, platformVersion, deviceName, behavior) { AppConfiguration.MobileOSType = MobileOSType.Android; AppConfiguration.PlatformName = "Android"; AppConfiguration.BrowserName = "Chrome"; }
protected AppAttribute(string appPath, string platformVersion, string deviceName, AppBehavior behavior = AppBehavior.NotSet) => AppConfiguration = new AppConfiguration
public AppAttribute(string appPath, DesktopWindowSize desktopWindowSize, AppBehavior behavior = AppBehavior.NotSet) : this(appPath, behavior) { AppConfiguration.Size = WindowsSizeResolver.GetWindowSize(desktopWindowSize); }
public AppAttribute(string appPath, int width, int height, AppBehavior behavior = AppBehavior.NotSet) : this(appPath, behavior) { AppConfiguration.Size = new Size(width, height); }
public static void Initialize() { ActualBehavior = new DefaultAppBehavior(); ActualBehavior.Attach(); }
public IOSAttribute(string appPath, string platformVersion, string deviceName, AppBehavior behavior = AppBehavior.NotSet) : base(appPath, platformVersion, deviceName, behavior) { AppConfiguration.OSPlatform = OS.OSX; AppConfiguration.MobileOSType = MobileOSType.IOS; }