Class Configuration.Mobile

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

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

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    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.
    static class 
    This class encapsulates all iOS-specific configuration in Continuum represented by the 'ios' 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 Android-specific configuration in Continuum represented by the 'android' object of the 'mobile' object defined in continuum.json.
    Gets the value for the 'appiumURL' attribute of the 'mobile' object defined in continuum.json.
    Gets the value for the 'automationName' attribute of the 'mobile' object defined in continuum.json.
    Gets the value for the 'deviceName' attribute of the 'mobile' object defined in continuum.json.
    Gets the iOS-specific configuration in Continuum represented by the 'ios' object of the 'mobile' object defined in continuum.json.
    Gets the value for the 'pathToAppFile' attribute of the 'mobile' object defined in continuum.json.
    Gets the value for the 'physicalDeviceId' attribute of the 'mobile' object defined in continuum.json.
    Gets the value for the 'platformName' attribute of the 'mobile' object defined in continuum.json.
    Gets the value for the 'scanWebViews' attribute 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

    • Mobile

      public Mobile()
  • Method Details

    • getAutomationName

      public String getAutomationName()
      Gets the value for the 'automationName' attribute of the 'mobile' object defined in continuum.json. The test automation driver to use; the same as Appium's 'automationName' desired capability.
      Returns:
      the value for the 'automationName' attribute of the 'mobile' object defined in continuum.json
    • getDeviceName

      public String getDeviceName()
      Gets the value for the 'deviceName' attribute of the 'mobile' object defined in continuum.json. The name of the mobile device or emulator to test with; the same as Appium's 'deviceName' desired capability.
      Returns:
      the value for the 'deviceName' attribute of the 'mobile' object defined in continuum.json
    • getPlatformName

      public String getPlatformName()
      Gets the value for the 'platformName' attribute of the 'mobile' object defined in continuum.json. The name of the mobile platform to test with; the same as Appium's 'platformName' desired capability.
      Returns:
      the value for the 'platformName' attribute of the 'mobile' object defined in continuum.json
    • getAppiumURL

      public String getAppiumURL()
      Gets the value for the 'appiumURL' attribute of the 'mobile' object defined in continuum.json. The URL to a running Appium server; the same as the URL you use to initialize an Appium client.
      Returns:
      the value for the 'appiumURL' attribute of the 'mobile' object defined in continuum.json
    • getPathToAppFile

      public String getPathToAppFile()
      Gets the value for the 'pathToAppFile' attribute of the 'mobile' object defined in continuum.json. The absolute path to a compiled app file to be tested; the same as Appium's 'app' desired capability. For example, for Android apps, this should be the absolute path to an APK, whereas for iOS apps, this should be the absolute path to an APP or IPA file.
      Returns:
      the value for the 'pathToAppFile' attribute of the 'mobile' object defined in continuum.json
    • getPhysicalDeviceId

      public String getPhysicalDeviceId()
      Gets the value for the 'physicalDeviceId' attribute of the 'mobile' object defined in continuum.json. The ID of the physical device to tested with; the same as Appium's 'udid' desired capability. Only meant to be used when testing using a physical device.
      Returns:
      the value for the 'physicalDeviceId' attribute of the 'mobile' object defined in continuum.json
    • getScanWebViews

      public Boolean getScanWebViews()
      Gets the value for the 'scanWebViews' attribute of the 'mobile' object defined in continuum.json. Used to determine whether or not Continuum should scan for accessibility concerns in the content of any visible web views. If enabled, any accessibility concerns that come from web views will have AccessibilityConcern.getTestContext() return Continuum.TestContext.WEB. This setting can be toggled programmatically using Continuum.setScanWebViews(boolean), overriding this value specified in continuum.json.
      Returns:
      the value for the 'scanWebViews' attribute of the 'mobile' object defined in continuum.json
    • getAndroidConfiguration

      public Configuration.Mobile.Android getAndroidConfiguration()
      Gets the Android-specific configuration in Continuum represented by the 'android' object of the 'mobile' object defined in continuum.json.
      Returns:
      the Android-specific configuration in Continuum represented by the 'android' object of the 'mobile' object defined in continuum.json
    • getIOSConfiguration

      public Configuration.Mobile.iOS getIOSConfiguration()
      Gets the iOS-specific configuration in Continuum represented by the 'ios' object of the 'mobile' object defined in continuum.json.
      Returns:
      the iOS-specific configuration in Continuum represented by the 'ios' object of the 'mobile' object defined in continuum.json