Class Configuration.Mobile.Android

java.lang.Object
com.levelaccess.continuum.Configuration.Mobile.Android
Enclosing class:
Configuration.Mobile

public static class Configuration.Mobile.Android extends Object
This class encapsulates all Android-specific configuration in Continuum represented by the 'android' object of the 'mobile' object defined in the user-editable src/main/resources/continuum.json file.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the value for the 'appActivity' attribute of the 'android' object of the 'mobile' object defined in continuum.json.
    Gets the value for the 'appPackage' attribute of the 'android' object of the 'mobile' object defined in continuum.json.
    Gets the value for the 'optionalIntentArguments' attribute of the 'android' object of the 'mobile' object defined in continuum.json.
    Gets the value for the 'virtualDeviceName' attribute of the 'android' object of the 'mobile' object defined in continuum.json.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Android

      public Android()
  • Method Details

    • getAppPackage

      public String getAppPackage()
      Gets the value for the 'appPackage' attribute of the 'android' object of the 'mobile' object defined in continuum.json. The Java package name of the app to be tested, e.g. "com.example.app"; the same as Appium's 'appPackage' desired capability.
      Returns:
      the value for the 'appPackage' attribute of the 'android' object of the 'mobile' object defined in continuum.json
    • getAppActivity

      public String getAppActivity()
      Gets the value for the 'appActivity' attribute of the 'android' object of the 'mobile' object defined in continuum.json. The activity name for the Android activity you want to launch from your package; the same as Appium's 'appActivity' desired capability. Note that the activity name often needs to be preceded by a ".", e.g. ".MainActivity" instead of "MainActivity".
      Returns:
      the value for the 'appActivity' attribute of the 'android' object of the 'mobile' object defined in continuum.json
    • getOptionalIntentArguments

      public String getOptionalIntentArguments()
      Gets the value for the 'optionalIntentArguments' attribute of the 'android' object of the 'mobile' object defined in continuum.json. Defines any additional intent arguments that will be used to start activity; the same as Appium's 'optionalIntentArguments' desired capability.
      Returns:
      the value for the 'optionalIntentArguments' attribute of the 'android' object of the 'mobile' object defined in continuum.json
    • getVirtualDeviceName

      public String getVirtualDeviceName()
      Gets the value for the 'virtualDeviceName' attribute of the 'android' object of the 'mobile' object defined in continuum.json. The name of the virtual device to be used to test; the same as Appium's 'avd' desired capability.
      Returns:
      the value for the 'virtualDeviceName' attribute of the 'android' object of the 'mobile' object defined in continuum.json