Interface Mobile
- All Superinterfaces:
org.aeonbits.owner.Config, EngineProperties<Mobile>, Serializable
@Sources({"system:properties","file:src/main/resources/properties/MobileCapabilities.properties","file:src/main/resources/properties/default/MobileCapabilities.properties","classpath:MobileCapabilities.properties"})
public interface Mobile
extends EngineProperties<Mobile>
Configuration properties interface for mobile and Appium testing in the SHAFT framework.
Controls device name, platform version, app path, automation engine, and Appium server settings.
Use set() to override values programmatically:
SHAFT.Properties.mobile.set().deviceName("Pixel_5").platformVersion("13.0");
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.aeonbits.owner.Config
org.aeonbits.owner.Config.ConverterClass, org.aeonbits.owner.Config.DecryptorClass, org.aeonbits.owner.Config.DefaultValue, org.aeonbits.owner.Config.DisableableFeature, org.aeonbits.owner.Config.DisableFeature, org.aeonbits.owner.Config.EncryptedValue, org.aeonbits.owner.Config.HotReload, org.aeonbits.owner.Config.HotReloadType, org.aeonbits.owner.Config.Key, org.aeonbits.owner.Config.LoadPolicy, org.aeonbits.owner.Config.LoadType, org.aeonbits.owner.Config.PreprocessorClasses, org.aeonbits.owner.Config.Separator, org.aeonbits.owner.Config.Sources, org.aeonbits.owner.Config.TokenizerClass -
Method Summary
Modifier and TypeMethodDescriptionapp()bundleId()intMaximum time in seconds to wait for a Flutter element.booleanWhether Flutter tests use a mocked camera instead of the device camera.intMaximum time in seconds to wait for the Flutter driver server to start.intLocal system port used by the Flutter driver; zero lets the driver choose.default Mobile.SetPropertyset()Returns a fluentEngineProperties.SetPropertybuilder that allows programmatic override of individual configuration properties at runtime.udid()
-
Method Details
-
platformName
-
platformVersion
-
deviceName
-
automationName
-
udid
-
browserName
-
browserVersion
-
app
-
appPackage
-
appActivity
-
bundleId
-
flutterElementWaitTimeout
@Key("mobile_flutterElementWaitTimeout") @DefaultValue("0") int flutterElementWaitTimeout()Maximum time in seconds to wait for a Flutter element. Zero keeps the default wait behavior. -
flutterServerLaunchTimeout
@Key("mobile_flutterServerLaunchTimeout") @DefaultValue("0") int flutterServerLaunchTimeout()Maximum time in seconds to wait for the Flutter driver server to start. -
flutterSystemPort
@Key("mobile_flutterSystemPort") @DefaultValue("0") int flutterSystemPort()Local system port used by the Flutter driver; zero lets the driver choose. -
flutterEnableMockCamera
@Key("mobile_flutterEnableMockCamera") @DefaultValue("false") boolean flutterEnableMockCamera()Whether Flutter tests use a mocked camera instead of the device camera. -
set
Description copied from interface:EnginePropertiesReturns a fluentEngineProperties.SetPropertybuilder that allows programmatic override of individual configuration properties at runtime.- Specified by:
setin interfaceEngineProperties<Mobile>- Returns:
- a new
EngineProperties.SetPropertyinstance for chaining property overrides
-