Class AppiumConfig

java.lang.Object
com.magenic.jmaqs.appium.AppiumConfig

public class AppiumConfig
extends java.lang.Object
Class AppiumConfig.
  • Method Details

    • getPlatformName

      public static java.lang.String getPlatformName()
      Gets the mobile device OS.
      Returns:
      the mobile device OS
    • getPlatformVersion

      public static java.lang.String getPlatformVersion()
      Gets the OS version.
      Returns:
      the OS version
    • getDeviceName

      public static java.lang.String getDeviceName()
      Gets the device name.
      Returns:
      the device name
    • getSavePageSourceOnFail

      public static boolean getSavePageSourceOnFail()
      Gets save page source on fail.
      Returns:
      the save page source on fail
    • getSoftAssertScreenShot

      public static boolean getSoftAssertScreenShot()
      Gets soft assert screen shot.
      Returns:
      the soft assert screen shot
    • getMobileHubUrlString

      public static java.lang.String getMobileHubUrlString()
      Gets the mobile hub url string.
      Returns:
      the mobile hub url string
    • getMobileHubUrl

      public static java.net.URL getMobileHubUrl()
      Gets the mobile hub url.
      Returns:
      the mobile hub url
    • getCommandTimeout

      public static java.time.Duration getCommandTimeout()
      Gets command timeout.
      Returns:
      the command timeout
    • getMobileTimeout

      public static java.time.Duration getMobileTimeout()
      Gets mobile timeout.
      Returns:
      the mobile timeout
    • getCapabilitiesAsStrings

      public static java.util.Map<java.lang.String,​java.lang.String> getCapabilitiesAsStrings()
      Gets capabilities as strings.
      Returns:
      the capabilities as strings
    • getCapabilitiesAsObjects

      public static java.util.Map<java.lang.String,​java.lang.Object> getCapabilitiesAsObjects()
      Gets capabilities as objects.
      Returns:
      the capabilities as objects
    • getDeviceType

      public static PlatformType getDeviceType()
      Gets device type.
      Returns:
      the device type
    • getDeviceType

      public static PlatformType getDeviceType​(java.lang.String platformName)
      Gets device type.
      Parameters:
      platformName - the platform name
      Returns:
      the device type