Copied to clipboard

Desired capabilities usage

Use Kobiton’s automation settings to configure your test scripts using the Appium Framework.

The automation settings have got all the required configurations you need to automate your test using the Appium Framework and to run your automation test on real devices in the Kobiton cloud.

Generate the Desired Capabilities as per your test requirements and update your test script.

DesiredCapabilities.png

Note

Kobiton always overrides the automationName setting on desired capabilities to Appium.

On Android, if the automationName attribute is empty, Kobiton will set a default value for it as below:

  • Android version < 5: automationName = Appium.

  • Android version >= 5: automationName = UiAutomator2

Further support for other values will be added later on.

See Appium document for automationName for more detail.

Key Value Type Description
sessionName String The default value is Automation test session. Name your automation test session.
sessionDescription String Describe your test session objective.
deviceOrientation String The default value is Portrait. Start testing in a certain orientation: Portrait or Landscape.
captureScreenshots Boolean Enable capturing device screen during the test session. The default value is true.
networkActivity Boolean Enable capturing network activity during the test session. The default value is false. See more detail at Network activity log.
This feature is not available on Hybrid/Native app testing & devices with Android version lower than 6.0.
noReset Boolean This key is only used for in-house devices. The default value is True. System doesn't clear app data, browser's cache and history after ending session. For Kobiton Cloud devices, system will always clear app data, browser's cache and history.
fullReset Boolean This key is only used for in-house devices . The default value is False. System doesn't uninstall applications are installed in the session after ending session. If you want to uninstall apps after ending session, please use both keys { noReset: false, fullReset: true}. For Kobiton Cloud devices, system will always uninstall applications are installed within the session.
browserName String The mobile web browser that will be automated in the device. It should be Chrome or Chrome Beta browser on Android devices and Safari browser on iOS devices.
app String The location of your app, the value could be either Kobiton Application Repository or absolute url. For example: kobiton-store:123, https://rink.hockeyapp.net/apps/app_id.
deviceGroup String The default value is group device belonged to. Group device value could be either: ORGANIZATION or KOBITON. System will filter device in any existing group if you set deviceGroup is empty.
platformVersion String
  • The mobile operating system version that you want to use in your test.
  • Supports special character * (asterisk) with 3 formats: *text, text*, and *text*'.
  • If there is no * (asterisk) specified in the capabilities then Kobiton will match the exact text provided.
  • platformName String Which mobile OS platform to use.
    deviceName String
  • The device name that you want to use in your test.
  • Supports special character * (asterisk) with 3 formats: *text, text*, and *text*'.
  • If there is no * (asterisk) specified in the capabilities then Kobiton will match the exact text provided.
  • udid String This key is only used for in-house devices. System will filter device based on the device UDID.

    Feedback

    SELECTED

    Tip

    You can select a specific word, line of text, or one or more paragraphs to comment.

    COMMENT

    Please give us some feedback !
    Thank you!
    • We are listening,
    • we will do our best to fix this soon