Class BrowserStack.SetProperty

java.lang.Object
com.shaft.properties.internal.BrowserStack.SetProperty
All Implemented Interfaces:
EngineProperties.SetProperty
Enclosing interface:
BrowserStack

public static class BrowserStack.SetProperty extends Object implements EngineProperties.SetProperty
Fluent builder that allows programmatic override of individual BrowserStack configuration properties at runtime. All setter methods return this to support method chaining.

Example:

SHAFT.Properties.browserStack.set()
    .userName("myUser")
    .accessKey("myKey");
  • Constructor Details

    • SetProperty

      public SetProperty()
      Creates a new SetProperty instance.
  • Method Details

    • userName

      public BrowserStack.SetProperty userName(String value)
      Overrides the browserStack.userName property at runtime.
      Parameters:
      value - the BrowserStack account username
      Returns:
      this BrowserStack.SetProperty instance for chaining
    • accessKey

      public BrowserStack.SetProperty accessKey(String value)
      Overrides the browserStack.accessKey property at runtime.
      Parameters:
      value - the BrowserStack access key
      Returns:
      this BrowserStack.SetProperty instance for chaining
    • platformVersion

      public BrowserStack.SetProperty platformVersion(String value)
      Overrides the browserStack.platformVersion property at runtime.
      Parameters:
      value - the target mobile platform version (e.g., "11")
      Returns:
      this BrowserStack.SetProperty instance for chaining
    • deviceName

      public BrowserStack.SetProperty deviceName(String value)
      Overrides the browserStack.deviceName property at runtime.
      Parameters:
      value - the target device name for mobile testing
      Returns:
      this BrowserStack.SetProperty instance for chaining
    • appUrl

      public BrowserStack.SetProperty appUrl(String value)
      Overrides the browserStack.appUrl property at runtime.
      Parameters:
      value - the URL of the previously uploaded app on BrowserStack
      Returns:
      this BrowserStack.SetProperty instance for chaining
    • customID

      public BrowserStack.SetProperty customID(String value)
      Overrides the browserStack.customID property at runtime.
      Parameters:
      value - the custom ID of the uploaded app on BrowserStack
      Returns:
      this BrowserStack.SetProperty instance for chaining
    • appName

      public BrowserStack.SetProperty appName(String value)
      Overrides the browserStack.appName property at runtime.
      Parameters:
      value - the name to assign to the app being uploaded to BrowserStack
      Returns:
      this BrowserStack.SetProperty instance for chaining
    • appRelativeFilePath

      public BrowserStack.SetProperty appRelativeFilePath(String value)
      Overrides the browserStack.appRelativeFilePath property at runtime.
      Parameters:
      value - the relative file path of the app to upload to BrowserStack
      Returns:
      this BrowserStack.SetProperty instance for chaining
    • osVersion

      public BrowserStack.SetProperty osVersion(String value)
      Overrides the browserStack.osVersion property at runtime.
      Parameters:
      value - the target OS version for desktop web testing (e.g., "10")
      Returns:
      this BrowserStack.SetProperty instance for chaining
    • browserVersion

      public BrowserStack.SetProperty browserVersion(String value)
      Overrides the browserStack.browserVersion property at runtime.
      Parameters:
      value - the target browser version, or empty to use a random version
      Returns:
      this BrowserStack.SetProperty instance for chaining
    • local

      public BrowserStack.SetProperty local(boolean value)
      Overrides the browserStack.local property at runtime.
      Parameters:
      value - true to enable BrowserStack Local testing
      Returns:
      this BrowserStack.SetProperty instance for chaining
    • seleniumVersion

      public BrowserStack.SetProperty seleniumVersion(String value)
      Overrides the browserStack.seleniumVersion property at runtime.
      Parameters:
      value - the Selenium version to use on BrowserStack Automate
      Returns:
      this BrowserStack.SetProperty instance for chaining
    • appiumVersion

      public BrowserStack.SetProperty appiumVersion(String value)
      Overrides the browserStack.appiumVersion property at runtime.
      Parameters:
      value - the Appium version to use on BrowserStack App Automate
      Returns:
      this BrowserStack.SetProperty instance for chaining
    • acceptInsecureCerts

      public BrowserStack.SetProperty acceptInsecureCerts(boolean value)
      Overrides the browserStack.acceptInsecureCerts property at runtime.
      Parameters:
      value - true to accept insecure SSL certificates during testing
      Returns:
      this BrowserStack.SetProperty instance for chaining
    • debug

      public BrowserStack.SetProperty debug(boolean value)
      Overrides the browserStack.debug property at runtime.
      Parameters:
      value - true to enable BrowserStack debug mode
      Returns:
      this BrowserStack.SetProperty instance for chaining
    • enableBiometric

      public BrowserStack.SetProperty enableBiometric(boolean value)
      Overrides the browserStack.enableBiometric property at runtime.
      Parameters:
      value - true to enable biometric authentication on the test device
      Returns:
      this BrowserStack.SetProperty instance for chaining
    • networkLogs

      public BrowserStack.SetProperty networkLogs(boolean value)
      Overrides the browserStack.networkLogs property at runtime.
      Parameters:
      value - true to enable network log capture during testing
      Returns:
      this BrowserStack.SetProperty instance for chaining
    • geoLocation

      public BrowserStack.SetProperty geoLocation(String value)
      Overrides the browserStack.geoLocation property at runtime.
      Parameters:
      value - the BrowserStack geolocation code for IP geolocation testing
      Returns:
      this BrowserStack.SetProperty instance for chaining
    • buildName

      public BrowserStack.SetProperty buildName(String value)
      Overrides the browserStack.buildName property at runtime.
      Parameters:
      value - custom build name for BrowserStack dashboard reporting
      Returns:
      this BrowserStack.SetProperty instance for chaining
    • projectName

      public BrowserStack.SetProperty projectName(String value)
      Overrides the browserStack.projectName property at runtime.
      Parameters:
      value - custom project name for BrowserStack dashboard reporting
      Returns:
      this BrowserStack.SetProperty instance for chaining
    • parallelsPerPlatform

      public BrowserStack.SetProperty parallelsPerPlatform(int value)
      Overrides the browserStack.parallelsPerPlatform property at runtime.
      Parameters:
      value - the number of parallel threads per platform
      Returns:
      this BrowserStack.SetProperty instance for chaining
    • browserstackAutomation

      public BrowserStack.SetProperty browserstackAutomation(boolean value)
      Overrides the browserStack.browserstackAutomation property at runtime.
      Parameters:
      value - true to enable BrowserStack Automation via SDK
      Returns:
      this BrowserStack.SetProperty instance for chaining
    • platformsList

      public BrowserStack.SetProperty platformsList(String value)
      Overrides the browserStack.platformsList property at runtime. Accepts a JSON array string of platform entries for multi-device parallel testing.

      Example:

      .platformsList("[{\"deviceName\":\"Samsung Galaxy S22\",\"osVersion\":\"12.0\",\"platformName\":\"android\"},"
          + "{\"deviceName\":\"Google Pixel 6\",\"osVersion\":\"12.0\",\"platformName\":\"android\"}]")
      
      Parameters:
      value - JSON array string of platform entries, or empty to use single-platform config
      Returns:
      this BrowserStack.SetProperty instance for chaining
    • customBrowserStackYmlPath

      public BrowserStack.SetProperty customBrowserStackYmlPath(String value)
      Overrides the browserStack.customBrowserStackYmlPath property at runtime. When set to a non-empty path, the specified file is used as-is instead of auto-generating a browserstack.yml from SHAFT properties.
      Parameters:
      value - path to the custom browserstack.yml file, or empty to auto-generate
      Returns:
      this BrowserStack.SetProperty instance for chaining