setDeviceMode
Configure device-specific parameters for test authoring and exploration modes on Android and iOS platforms. Set app IDs, mode persistence, and deep link skipping options.
Instructions
Set parameters for a particular device in a given mode.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
deviceId | Yes | Device ID for which these settings will apply. | |
exploration | No | ||
platform | Yes | Target platform | |
testAuthoring | No |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"deviceId": {
"description": "Device ID for which these settings will apply.",
"type": "string"
},
"exploration": {
"additionalProperties": false,
"properties": {
"deepLinkSkipping": {
"type": "boolean"
}
},
"required": [
"deepLinkSkipping"
],
"type": "object"
},
"platform": {
"description": "Target platform",
"enum": [
"android",
"ios"
],
"type": "string"
},
"testAuthoring": {
"additionalProperties": false,
"properties": {
"appId": {
"description": "App ID to be used for test authoring.",
"type": "string"
},
"description": {
"description": "Rough description of the test to be authored.",
"type": "string"
},
"persist": {
"description": "What conditions to stay in test authoring mode. Default devicePresent",
"enum": [
"never",
"devicePresent",
"always"
],
"type": "string"
}
},
"required": [
"appId",
"description",
"persist"
],
"type": "object"
}
},
"required": [
"deviceId",
"platform"
],
"type": "object"
}