Package com.levelaccess.continuum
Class Configuration.Mobile
java.lang.Object
com.levelaccess.continuum.Configuration.Mobile
- Enclosing class:
- Configuration
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
Modifier and TypeClassDescriptionstatic 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
-
Method Summary
Modifier and TypeMethodDescriptionGets 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.
-
Constructor Details
-
Mobile
public Mobile()
-
-
Method Details
-
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
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
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
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
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
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
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 haveAccessibilityConcern.getTestContext()
returnContinuum.TestContext.WEB
. This setting can be toggled programmatically usingContinuum.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
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
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
-