Class BrowserStack.SetProperty
java.lang.Object
com.shaft.properties.internal.BrowserStack.SetProperty
- All Implemented Interfaces:
EngineProperties.SetProperty
- Enclosing interface:
BrowserStack
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacceptInsecureCerts(boolean value) Overrides thebrowserStack.acceptInsecureCertsproperty at runtime.Overrides thebrowserStack.accessKeyproperty at runtime.appiumVersion(String value) Overrides thebrowserStack.appiumVersionproperty at runtime.Overrides thebrowserStack.appNameproperty at runtime.appRelativeFilePath(String value) Overrides thebrowserStack.appRelativeFilePathproperty at runtime.Overrides thebrowserStack.appUrlproperty at runtime.browserstackAutomation(boolean value) Overrides thebrowserStack.browserstackAutomationproperty at runtime.browserVersion(String value) Overrides thebrowserStack.browserVersionproperty at runtime.Overrides thebrowserStack.buildNameproperty at runtime.customBrowserStackYmlPath(String value) Overrides thebrowserStack.customBrowserStackYmlPathproperty at runtime.Overrides thebrowserStack.customIDproperty at runtime.debug(boolean value) Overrides thebrowserStack.debugproperty at runtime.deviceName(String value) Overrides thebrowserStack.deviceNameproperty at runtime.enableBiometric(boolean value) Overrides thebrowserStack.enableBiometricproperty at runtime.geoLocation(String value) Overrides thebrowserStack.geoLocationproperty at runtime.local(boolean value) Overrides thebrowserStack.localproperty at runtime.networkLogs(boolean value) Overrides thebrowserStack.networkLogsproperty at runtime.Overrides thebrowserStack.osVersionproperty at runtime.parallelsPerPlatform(int value) Overrides thebrowserStack.parallelsPerPlatformproperty at runtime.platformsList(String value) Overrides thebrowserStack.platformsListproperty at runtime.platformVersion(String value) Overrides thebrowserStack.platformVersionproperty at runtime.projectName(String value) Overrides thebrowserStack.projectNameproperty at runtime.seleniumVersion(String value) Overrides thebrowserStack.seleniumVersionproperty at runtime.Overrides thebrowserStack.userNameproperty at runtime.
-
Constructor Details
-
SetProperty
public SetProperty()Creates a newSetPropertyinstance.
-
-
Method Details
-
userName
Overrides thebrowserStack.userNameproperty at runtime.- Parameters:
value- the BrowserStack account username- Returns:
- this
BrowserStack.SetPropertyinstance for chaining
-
accessKey
Overrides thebrowserStack.accessKeyproperty at runtime.- Parameters:
value- the BrowserStack access key- Returns:
- this
BrowserStack.SetPropertyinstance for chaining
-
platformVersion
Overrides thebrowserStack.platformVersionproperty at runtime.- Parameters:
value- the target mobile platform version (e.g.,"11")- Returns:
- this
BrowserStack.SetPropertyinstance for chaining
-
deviceName
Overrides thebrowserStack.deviceNameproperty at runtime.- Parameters:
value- the target device name for mobile testing- Returns:
- this
BrowserStack.SetPropertyinstance for chaining
-
appUrl
Overrides thebrowserStack.appUrlproperty at runtime.- Parameters:
value- the URL of the previously uploaded app on BrowserStack- Returns:
- this
BrowserStack.SetPropertyinstance for chaining
-
customID
Overrides thebrowserStack.customIDproperty at runtime.- Parameters:
value- the custom ID of the uploaded app on BrowserStack- Returns:
- this
BrowserStack.SetPropertyinstance for chaining
-
appName
Overrides thebrowserStack.appNameproperty at runtime.- Parameters:
value- the name to assign to the app being uploaded to BrowserStack- Returns:
- this
BrowserStack.SetPropertyinstance for chaining
-
appRelativeFilePath
Overrides thebrowserStack.appRelativeFilePathproperty at runtime.- Parameters:
value- the relative file path of the app to upload to BrowserStack- Returns:
- this
BrowserStack.SetPropertyinstance for chaining
-
osVersion
Overrides thebrowserStack.osVersionproperty at runtime.- Parameters:
value- the target OS version for desktop web testing (e.g.,"10")- Returns:
- this
BrowserStack.SetPropertyinstance for chaining
-
browserVersion
Overrides thebrowserStack.browserVersionproperty at runtime.- Parameters:
value- the target browser version, or empty to use a random version- Returns:
- this
BrowserStack.SetPropertyinstance for chaining
-
local
Overrides thebrowserStack.localproperty at runtime.- Parameters:
value-trueto enable BrowserStack Local testing- Returns:
- this
BrowserStack.SetPropertyinstance for chaining
-
seleniumVersion
Overrides thebrowserStack.seleniumVersionproperty at runtime.- Parameters:
value- the Selenium version to use on BrowserStack Automate- Returns:
- this
BrowserStack.SetPropertyinstance for chaining
-
appiumVersion
Overrides thebrowserStack.appiumVersionproperty at runtime.- Parameters:
value- the Appium version to use on BrowserStack App Automate- Returns:
- this
BrowserStack.SetPropertyinstance for chaining
-
acceptInsecureCerts
Overrides thebrowserStack.acceptInsecureCertsproperty at runtime.- Parameters:
value-trueto accept insecure SSL certificates during testing- Returns:
- this
BrowserStack.SetPropertyinstance for chaining
-
debug
Overrides thebrowserStack.debugproperty at runtime.- Parameters:
value-trueto enable BrowserStack debug mode- Returns:
- this
BrowserStack.SetPropertyinstance for chaining
-
enableBiometric
Overrides thebrowserStack.enableBiometricproperty at runtime.- Parameters:
value-trueto enable biometric authentication on the test device- Returns:
- this
BrowserStack.SetPropertyinstance for chaining
-
networkLogs
Overrides thebrowserStack.networkLogsproperty at runtime.- Parameters:
value-trueto enable network log capture during testing- Returns:
- this
BrowserStack.SetPropertyinstance for chaining
-
geoLocation
Overrides thebrowserStack.geoLocationproperty at runtime.- Parameters:
value- the BrowserStack geolocation code for IP geolocation testing- Returns:
- this
BrowserStack.SetPropertyinstance for chaining
-
buildName
Overrides thebrowserStack.buildNameproperty at runtime.- Parameters:
value- custom build name for BrowserStack dashboard reporting- Returns:
- this
BrowserStack.SetPropertyinstance for chaining
-
projectName
Overrides thebrowserStack.projectNameproperty at runtime.- Parameters:
value- custom project name for BrowserStack dashboard reporting- Returns:
- this
BrowserStack.SetPropertyinstance for chaining
-
parallelsPerPlatform
Overrides thebrowserStack.parallelsPerPlatformproperty at runtime.- Parameters:
value- the number of parallel threads per platform- Returns:
- this
BrowserStack.SetPropertyinstance for chaining
-
browserstackAutomation
Overrides thebrowserStack.browserstackAutomationproperty at runtime.- Parameters:
value-trueto enable BrowserStack Automation via SDK- Returns:
- this
BrowserStack.SetPropertyinstance for chaining
-
platformsList
Overrides thebrowserStack.platformsListproperty 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.SetPropertyinstance for chaining
-
customBrowserStackYmlPath
Overrides thebrowserStack.customBrowserStackYmlPathproperty at runtime. When set to a non-empty path, the specified file is used as-is instead of auto-generating abrowserstack.ymlfrom SHAFT properties.- Parameters:
value- path to the custombrowserstack.ymlfile, or empty to auto-generate- Returns:
- this
BrowserStack.SetPropertyinstance for chaining
-