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 Classes
    Modifier and Type
    Interface
    Description
    static class 
     

    Nested 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 Type
    Method
    Description
    app()
     
     
     
     
     
     
     
     
    int
    Maximum time in seconds to wait for a Flutter element.
    boolean
    Whether Flutter tests use a mocked camera instead of the device camera.
    int
    Maximum time in seconds to wait for the Flutter driver server to start.
    int
    Local system port used by the Flutter driver; zero lets the driver choose.
     
     
    set()
    Returns a fluent EngineProperties.SetProperty builder that allows programmatic override of individual configuration properties at runtime.
     
  • Method Details

    • platformName

      @Key("platformName") @DefaultValue("") String platformName()
    • platformVersion

      @Key("mobile_platformVersion") @DefaultValue("") String platformVersion()
    • deviceName

      @Key("mobile_deviceName") @DefaultValue("") String deviceName()
    • automationName

      @Key("mobile_automationName") @DefaultValue("UIAutomator2") String automationName()
    • udid

      @Key("mobile_udid") @DefaultValue("") String udid()
    • browserName

      @Key("browserName") @DefaultValue("") String browserName()
    • browserVersion

      @Key("MobileBrowserVersion") @DefaultValue("") String browserVersion()
    • app

      @Key("mobile_app") @DefaultValue("") String app()
    • appPackage

      @Key("mobile_appPackage") @DefaultValue("") String appPackage()
    • appActivity

      @Key("mobile_appActivity") @DefaultValue("") String appActivity()
    • bundleId

      @Key("mobile_bundleId") @DefaultValue("") String 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

      default Mobile.SetProperty set()
      Description copied from interface: EngineProperties
      Returns a fluent EngineProperties.SetProperty builder that allows programmatic override of individual configuration properties at runtime.
      Specified by:
      set in interface EngineProperties<Mobile>
      Returns:
      a new EngineProperties.SetProperty instance for chaining property overrides