Пример #1
0
 public BrowserStackAttribute(
     BrowserType browser,
     string browserVersion,
     string operatingSystem,
     string osVersion,
     int width,
     int height,
     Lifecycle behavior      = Lifecycle.NotSet,
     bool captureVideo       = false,
     bool captureNetworkLogs = false,
     BrowserStackConsoleLogType consoleLogType = BrowserStackConsoleLogType.Disable,
     bool debug   = false,
     string build = null,
     bool shouldAutomaticallyScrollToVisible = true)
     : base(browser, width, height, behavior, shouldAutomaticallyScrollToVisible)
 {
     BrowserVersion     = browserVersion;
     OperatingSystem    = operatingSystem;
     OSVersion          = osVersion;
     Debug              = debug;
     Build              = build;
     CaptureVideo       = captureVideo;
     CaptureNetworkLogs = captureNetworkLogs;
     ConsoleLogType     = consoleLogType;
     ExecutionType      = ExecutionType.BrowserStack;
     ScreenResolution   = new Size(width, height).ConvertToString();
 }
Пример #2
0
 public BrowserStackAttribute(
     BrowserType browser,
     string browserVersion,
     string operatingSystem,
     string osVersion,
     TabletWindowSize tabletWindowSize,
     Lifecycle behavior      = Lifecycle.NotSet,
     bool captureVideo       = false,
     bool captureNetworkLogs = false,
     BrowserStackConsoleLogType browserStackConsoleLogType = BrowserStackConsoleLogType.Disable,
     bool debug   = false,
     string build = null)
     : this(browser, browserVersion, operatingSystem, osVersion, behavior, captureVideo, captureNetworkLogs, browserStackConsoleLogType, debug, build)
     => ScreenResolution = WindowsSizeResolver.GetWindowSize(tabletWindowSize).ConvertToString();
Пример #3
0
 public BrowserStackAttribute(
     BrowserType browser,
     string browserVersion,
     string operatingSystem,
     string osVersion,
     MobileWindowSize mobileWindowSize,
     Lifecycle behavior      = Lifecycle.NotSet,
     bool captureVideo       = false,
     bool captureNetworkLogs = false,
     BrowserStackConsoleLogType browserStackConsoleLogType = BrowserStackConsoleLogType.Disable,
     bool debug   = false,
     string build = null,
     bool shouldAutomaticallyScrollToVisible = true)
     : this(browser, browserVersion, operatingSystem, osVersion, behavior, captureVideo, captureNetworkLogs, browserStackConsoleLogType, debug, build, shouldAutomaticallyScrollToVisible)
     => ScreenResolution = WindowsSizeResolver.GetWindowSize(mobileWindowSize).ConvertToString();
 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";
 }
 public AndroidBrowserStackAttribute(
     string appPath,
     string platformVersion,
     string deviceName,
     string appPackage,
     string appActivity,
     Lifecycle behavior      = Lifecycle.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;
 }
Пример #6
0
 protected BrowserStackAttribute(
     string appPath,
     string platformVersion,
     string deviceName,
     Lifecycle behavior      = Lifecycle.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;
 }
Пример #7
0
 public BrowserStackAttribute(
     BrowserType browser,
     string browserVersion,
     string operatingSystem,
     string osVersion,
     BrowserBehavior behavior = BrowserBehavior.NotSet,
     bool captureVideo        = false,
     bool captureNetworkLogs  = false,
     BrowserStackConsoleLogType consoleLogType = BrowserStackConsoleLogType.Disable,
     bool debug   = false,
     string build = null,
     bool shouldAutomaticallyScrollToVisible = true)
     : base(browser, behavior, shouldAutomaticallyScrollToVisible)
 {
     BrowserVersion     = browserVersion;
     OperatingSystem    = operatingSystem;
     OSVersion          = osVersion;
     Debug              = debug;
     Build              = build;
     CaptureVideo       = captureVideo;
     CaptureNetworkLogs = captureNetworkLogs;
     ConsoleLogType     = consoleLogType;
     ExecutionType      = ExecutionType.BrowserStack;
 }
 public void GivenUseConsoleLogTypeInBrowserStack(BrowserStackConsoleLogType consoleLogType)
 {
     _browserStackBrowserConfiguration.ConsoleLogType = consoleLogType;
 }
 public void GivenUseConsoleLogTypeInBrowserStack(BrowserStackConsoleLogType consoleLogType)
 {
     _androidBrowserStackAppConfiguration.ConsoleLogType = consoleLogType;
     _iosBrowserStackAppConfiguration.ConsoleLogType     = consoleLogType;
 }