blob: dd6c497c1cc20dd5f2e5918e3d538eaa84fcbfc1 [file] [log] [blame] [edit]
{
"batchPath": "batch",
"servicePath": "",
"ownerDomain": "google.com",
"documentationLink": "https://developers.google.com/cloud-test-lab/",
"mtlsRootUrl": "https://testing.mtls.googleapis.com/",
"schemas": {
"IosRuntimeConfiguration": {
"id": "IosRuntimeConfiguration",
"description": "iOS configuration that can be selected at the time a test is run.",
"type": "object",
"properties": {
"locales": {
"description": "The set of available locales.",
"type": "array",
"items": {
"$ref": "Locale"
}
},
"orientations": {
"description": "The set of available orientations.",
"type": "array",
"items": {
"$ref": "Orientation"
}
}
}
},
"AppBundle": {
"description": "An Android App Bundle file format, containing a BundleConfig.pb file, a base module directory, zero or more dynamic feature module directories. See https://developer.android.com/guide/app-bundle/build for guidance on building App Bundles.",
"id": "AppBundle",
"properties": {
"bundleLocation": {
"description": ".aab file representing the app bundle under test.",
"$ref": "FileReference"
}
},
"type": "object"
},
"LauncherActivityIntent": {
"description": "Specifies an intent that starts the main launcher activity.",
"id": "LauncherActivityIntent",
"properties": {},
"type": "object"
},
"ShardingOption": {
"id": "ShardingOption",
"type": "object",
"properties": {
"manualSharding": {
"description": "Shards test cases into the specified groups of packages, classes, and/or methods.",
"$ref": "ManualSharding"
},
"uniformSharding": {
"$ref": "UniformSharding",
"description": "Uniformly shards test cases given a total number of shards."
}
},
"description": "Options for enabling sharding."
},
"ToolResultsExecution": {
"type": "object",
"id": "ToolResultsExecution",
"properties": {
"executionId": {
"type": "string",
"description": "Output only. A tool results execution ID."
},
"projectId": {
"description": "Output only. The cloud project that owns the tool results execution.",
"type": "string"
},
"historyId": {
"description": "Output only. A tool results history ID.",
"type": "string"
}
},
"description": "Represents a tool results execution resource. This has the results of a TestMatrix."
},
"ManualSharding": {
"description": "Shards test cases into the specified groups of packages, classes, and/or methods. With manual sharding enabled, specifying test targets via environment_variables or in InstrumentationTest is invalid.",
"properties": {
"testTargetsForShard": {
"items": {
"$ref": "TestTargetsForShard"
},
"type": "array",
"description": "Required. Group of packages, classes, and/or test methods to be run for each shard. When any physical devices are selected, the number of test_targets_for_shard must be \u003e= 1 and \u003c= 50. When no physical devices are selected, the number must be \u003e= 1 and \u003c= 500."
}
},
"type": "object",
"id": "ManualSharding"
},
"RegularFile": {
"properties": {
"devicePath": {
"type": "string",
"description": "Required. Where to put the content on the device. Must be an absolute, allowlisted path. If the file exists, it will be replaced. The following device-side directories and any of their subdirectories are allowlisted: ${EXTERNAL_STORAGE}, /sdcard, or /storage ${ANDROID_DATA}/local/tmp, or /data/local/tmp Specifying a path outside of these directory trees is invalid. The paths /sdcard and /data will be made available and treated as implicit path substitutions. E.g. if /sdcard on a particular device does not map to external storage, the system will replace it with the external storage path prefix for that device and copy the file there. It is strongly advised to use the Environment API in app and test code to access files on the device in a portable way."
},
"content": {
"description": "Required. The source file.",
"$ref": "FileReference"
}
},
"type": "object",
"description": "A file or directory to install on the device before the test starts.",
"id": "RegularFile"
},
"GetApkDetailsResponse": {
"description": "Response containing the details of the specified Android application APK.",
"properties": {
"apkDetail": {
"$ref": "ApkDetail",
"description": "Details of the Android APK."
}
},
"type": "object",
"id": "GetApkDetailsResponse"
},
"IosModel": {
"id": "IosModel",
"description": "A description of an iOS device tests may be run on. Next tag: 13",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The human-readable name for this device model. Examples: \"iPhone 4s\", \"iPad Mini 2\"."
},
"id": {
"description": "The unique opaque id for this model. Use this for invoking the TestExecutionService.",
"type": "string"
},
"screenX": {
"format": "int32",
"type": "integer",
"description": "Screen size in the horizontal (X) dimension measured in pixels."
},
"tags": {
"items": {
"type": "string"
},
"type": "array",
"description": "Tags for this dimension. Examples: \"default\", \"preview\", \"deprecated\"."
},
"deviceCapabilities": {
"items": {
"type": "string"
},
"type": "array",
"description": "Device capabilities. Copied from https://developer.apple.com/library/archive/documentation/DeviceInformation/Reference/iOSDeviceCompatibility/DeviceCompatibilityMatrix/DeviceCompatibilityMatrix.html"
},
"screenDensity": {
"format": "int32",
"description": "Screen density in DPI.",
"type": "integer"
},
"formFactor": {
"enumDescriptions": [
"Do not use. For proto versioning only.",
"This device has the shape of a phone.",
"This device has the shape of a tablet.",
"This device has the shape of a watch or other wearable."
],
"type": "string",
"description": "Whether this device is a phone, tablet, wearable, etc.",
"enum": [
"DEVICE_FORM_FACTOR_UNSPECIFIED",
"PHONE",
"TABLET",
"WEARABLE"
]
},
"screenY": {
"description": "Screen size in the vertical (Y) dimension measured in pixels.",
"type": "integer",
"format": "int32"
},
"supportedVersionIds": {
"description": "The set of iOS major software versions this device supports.",
"items": {
"type": "string"
},
"type": "array"
}
}
},
"TestTargetsForShard": {
"type": "object",
"properties": {
"testTargets": {
"description": "Group of packages, classes, and/or test methods to be run for each shard. The targets need to be specified in AndroidJUnitRunner argument format. For example, \"package com.my.packages\" \"class com.my.package.MyClass\". The number of shard_test_targets must be greater than 0.",
"type": "array",
"items": {
"type": "string"
}
}
},
"description": "Test targets for a shard.",
"id": "TestTargetsForShard"
},
"Shard": {
"id": "Shard",
"type": "object",
"description": "Output only. Details about the shard.",
"properties": {
"shardIndex": {
"description": "Output only. The index of the shard among all the shards.",
"format": "int32",
"type": "integer"
},
"numShards": {
"type": "integer",
"description": "Output only. The total number of shards.",
"format": "int32"
},
"testTargetsForShard": {
"$ref": "TestTargetsForShard",
"description": "Output only. Test targets for each shard."
}
}
},
"IosDeviceFile": {
"id": "IosDeviceFile",
"type": "object",
"properties": {
"devicePath": {
"type": "string",
"description": "Location of the file on the device, inside the app's sandboxed filesystem"
},
"content": {
"$ref": "FileReference",
"description": "The source file"
},
"bundleId": {
"type": "string",
"description": "The bundle id of the app where this file lives. iOS apps sandbox their own filesystem, so app files must specify which app installed on the device."
}
},
"description": "A file or directory to install on the device before the test starts."
},
"Environment": {
"description": "The environment in which the test is run.",
"id": "Environment",
"properties": {
"androidDevice": {
"description": "An Android device which must be used with an Android test.",
"$ref": "AndroidDevice"
},
"iosDevice": {
"description": "An iOS device which must be used with an iOS test.",
"$ref": "IosDevice"
}
},
"type": "object"
},
"Orientation": {
"id": "Orientation",
"type": "object",
"description": "Screen orientation of the device.",
"properties": {
"name": {
"description": "A human-friendly name for this orientation. Example: \"portrait\".",
"type": "string"
},
"id": {
"description": "The id for this orientation. Example: \"portrait\".",
"type": "string"
},
"tags": {
"description": "Tags for this dimension. Example: \"default\".",
"items": {
"type": "string"
},
"type": "array"
}
}
},
"IosTestSetup": {
"description": "A description of how to set up an iOS device prior to running the test.",
"type": "object",
"properties": {
"pushFiles": {
"description": "List of files to push to the device before starting the test.",
"items": {
"$ref": "IosDeviceFile"
},
"type": "array"
},
"pullDirectories": {
"description": "List of directories on the device to upload to Cloud Storage at the end of the test. Directories should either be in a shared directory (e.g. /private/var/mobile/Media) or within an accessible directory inside the app's filesystem (e.g. /Documents) by specifying the bundle id.",
"type": "array",
"items": {
"$ref": "IosDeviceFile"
}
},
"networkProfile": {
"description": "The network traffic profile used for running the test. Available network profiles can be queried by using the NETWORK_CONFIGURATION environment type when calling TestEnvironmentDiscoveryService.GetTestEnvironmentCatalog.",
"type": "string"
},
"additionalIpas": {
"type": "array",
"description": "iOS apps to install in addition to those being directly tested.",
"items": {
"$ref": "FileReference"
}
}
},
"id": "IosTestSetup"
},
"IosVersion": {
"id": "IosVersion",
"description": "An iOS version.",
"type": "object",
"properties": {
"id": {
"description": "An opaque id for this iOS version. Use this id to invoke the TestExecutionService.",
"type": "string"
},
"majorVersion": {
"type": "integer",
"format": "int32",
"description": "An integer representing the major iOS version. Examples: \"8\", \"9\"."
},
"minorVersion": {
"description": "An integer representing the minor iOS version. Examples: \"1\", \"2\".",
"format": "int32",
"type": "integer"
},
"tags": {
"items": {
"type": "string"
},
"description": "Tags for this dimension. Examples: \"default\", \"preview\", \"deprecated\".",
"type": "array"
},
"supportedXcodeVersionIds": {
"type": "array",
"description": "The available Xcode versions for this version.",
"items": {
"type": "string"
}
}
}
},
"ApkManifest": {
"id": "ApkManifest",
"properties": {
"maxSdkVersion": {
"type": "integer",
"description": "Maximum API level on which the application is designed to run.",
"format": "int32"
},
"targetSdkVersion": {
"type": "integer",
"format": "int32",
"description": "Specifies the API Level on which the application is designed to run."
},
"minSdkVersion": {
"description": "Minimum API level required for the application to run.",
"format": "int32",
"type": "integer"
},
"packageName": {
"type": "string",
"description": "Full Java-style package name for this application, e.g. \"com.example.foo\"."
},
"applicationLabel": {
"type": "string",
"description": "User-readable name for the application."
},
"intentFilters": {
"items": {
"$ref": "IntentFilter"
},
"type": "array"
}
},
"type": "object",
"description": "An Android app manifest. See http://developer.android.com/guide/topics/manifest/manifest-intro.html"
},
"AndroidVersion": {
"id": "AndroidVersion",
"description": "A version of the Android OS.",
"type": "object",
"properties": {
"apiLevel": {
"description": "The API level for this Android version. Examples: 18, 19.",
"type": "integer",
"format": "int32"
},
"id": {
"description": "An opaque id for this Android version. Use this id to invoke the TestExecutionService.",
"type": "string"
},
"tags": {
"description": "Tags for this dimension. Examples: \"default\", \"preview\", \"deprecated\".",
"items": {
"type": "string"
},
"type": "array"
},
"distribution": {
"$ref": "Distribution",
"description": "Market share for this version."
},
"versionString": {
"description": "A string representing this version of the Android OS. Examples: \"4.3\", \"4.4\".",
"type": "string"
},
"codeName": {
"description": "The code name for this Android version. Examples: \"JellyBean\", \"KitKat\".",
"type": "string"
},
"releaseDate": {
"$ref": "Date",
"description": "The date this Android version became available in the market."
}
}
},
"AndroidMatrix": {
"description": "A set of Android device configuration permutations is defined by the the cross-product of the given axes. Internally, the given AndroidMatrix will be expanded into a set of AndroidDevices. Only supported permutations will be instantiated. Invalid permutations (e.g., incompatible models/versions) are ignored.",
"id": "AndroidMatrix",
"type": "object",
"properties": {
"orientations": {
"items": {
"type": "string"
},
"description": "Required. The set of orientations to test with. Use the TestEnvironmentDiscoveryService to get supported options.",
"type": "array"
},
"locales": {
"items": {
"type": "string"
},
"type": "array",
"description": "Required. The set of locales the test device will enable for testing. Use the TestEnvironmentDiscoveryService to get supported options."
},
"androidModelIds": {
"type": "array",
"description": "Required. The ids of the set of Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.",
"items": {
"type": "string"
}
},
"androidVersionIds": {
"description": "Required. The ids of the set of Android OS version to be used. Use the TestEnvironmentDiscoveryService to get supported options.",
"type": "array",
"items": {
"type": "string"
}
}
}
},
"EnvironmentVariable": {
"type": "object",
"id": "EnvironmentVariable",
"description": "A key-value pair passed as an environment variable to the test.",
"properties": {
"key": {
"description": "Key for the environment variable.",
"type": "string"
},
"value": {
"type": "string",
"description": "Value for the environment variable."
}
}
},
"AndroidModel": {
"description": "A description of an Android device tests may be run on.",
"type": "object",
"id": "AndroidModel",
"properties": {
"supportedVersionIds": {
"type": "array",
"description": "The set of Android versions this device supports.",
"items": {
"type": "string"
}
},
"screenY": {
"type": "integer",
"format": "int32",
"description": "Screen size in the vertical (Y) dimension measured in pixels."
},
"lowFpsVideoRecording": {
"description": "True if and only if tests with this model are recorded by stitching together screenshots. See use_low_spec_video_recording in device config.",
"type": "boolean"
},
"thumbnailUrl": {
"type": "string",
"description": "URL of a thumbnail image (photo) of the device. e.g. https://lh3.googleusercontent.com/90WcauuJiCYABEl8U0lcZeuS5STUbf2yW..."
},
"supportedAbis": {
"description": "The list of supported ABIs for this device. This corresponds to either android.os.Build.SUPPORTED_ABIS (for API level 21 and above) or android.os.Build.CPU_ABI/CPU_ABI2. The most preferred ABI is the first element in the list. Elements are optionally prefixed by \"version_id:\" (where version_id is the id of an AndroidVersion), denoting an ABI that is supported only on a particular version.",
"type": "array",
"items": {
"type": "string"
}
},
"manufacturer": {
"type": "string",
"description": "The manufacturer of this device."
},
"screenX": {
"description": "Screen size in the horizontal (X) dimension measured in pixels.",
"type": "integer",
"format": "int32"
},
"form": {
"enum": [
"DEVICE_FORM_UNSPECIFIED",
"VIRTUAL",
"PHYSICAL",
"EMULATOR"
],
"enumDescriptions": [
"Do not use. For proto versioning only.",
"Android virtual device using Compute Engine native virtualization. Firebase Test Lab only.",
"Actual hardware.",
"Android virtual device using emulator in nested virtualization. Equivalent to Android Studio."
],
"description": "Whether this device is virtual or physical.",
"type": "string"
},
"formFactor": {
"description": "Whether this device is a phone, tablet, wearable, etc.",
"enumDescriptions": [
"Do not use. For proto versioning only.",
"This device has the shape of a phone.",
"This device has the shape of a tablet.",
"This device has the shape of a watch or other wearable."
],
"type": "string",
"enum": [
"DEVICE_FORM_FACTOR_UNSPECIFIED",
"PHONE",
"TABLET",
"WEARABLE"
]
},
"screenDensity": {
"format": "int32",
"description": "Screen density in DPI. This corresponds to ro.sf.lcd_density",
"type": "integer"
},
"tags": {
"type": "array",
"description": "Tags for this dimension. Examples: \"default\", \"preview\", \"deprecated\".",
"items": {
"type": "string"
}
},
"name": {
"type": "string",
"description": "The human-readable marketing name for this device model. Examples: \"Nexus 5\", \"Galaxy S5\"."
},
"id": {
"description": "The unique opaque id for this model. Use this for invoking the TestExecutionService.",
"type": "string"
},
"codename": {
"type": "string",
"description": "The name of the industrial design. This corresponds to android.os.Build.DEVICE."
},
"brand": {
"type": "string",
"description": "The company that this device is branded with. Example: \"Google\", \"Samsung\"."
}
}
},
"ApkDetail": {
"type": "object",
"description": "Android application details based on application manifest and apk archive contents.",
"properties": {
"apkManifest": {
"$ref": "ApkManifest"
}
},
"id": "ApkDetail"
},
"AndroidDeviceList": {
"id": "AndroidDeviceList",
"type": "object",
"description": "A list of Android device configurations in which the test is to be executed.",
"properties": {
"androidDevices": {
"type": "array",
"items": {
"$ref": "AndroidDevice"
},
"description": "Required. A list of Android devices."
}
}
},
"DeviceIpBlockCatalog": {
"id": "DeviceIpBlockCatalog",
"description": "List of IP blocks used by the Firebase Test Lab",
"type": "object",
"properties": {
"ipBlocks": {
"description": "The device IP blocks used by Firebase Test Lab",
"type": "array",
"items": {
"$ref": "DeviceIpBlock"
}
}
}
},
"IosDevice": {
"type": "object",
"description": "A single iOS device.",
"id": "IosDevice",
"properties": {
"orientation": {
"description": "Required. How the device is oriented during the test. Use the TestEnvironmentDiscoveryService to get supported options.",
"type": "string"
},
"locale": {
"type": "string",
"description": "Required. The locale the test device used for testing. Use the TestEnvironmentDiscoveryService to get supported options."
},
"iosVersionId": {
"description": "Required. The id of the iOS major software version to be used. Use the TestEnvironmentDiscoveryService to get supported options.",
"type": "string"
},
"iosModelId": {
"description": "Required. The id of the iOS device to be used. Use the TestEnvironmentDiscoveryService to get supported options.",
"type": "string"
}
}
},
"AndroidInstrumentationTest": {
"id": "AndroidInstrumentationTest",
"type": "object",
"description": "A test of an Android application that can control an Android component independently of its normal lifecycle. Android instrumentation tests run an application APK and test APK inside the same process on a virtual or physical AndroidDevice. They also specify a test runner class, such as com.google.GoogleTestRunner, which can vary on the specific instrumentation framework chosen. See for more information on types of Android tests.",
"properties": {
"testApk": {
"$ref": "FileReference",
"description": "Required. The APK containing the test code to be executed."
},
"orchestratorOption": {
"enum": [
"ORCHESTRATOR_OPTION_UNSPECIFIED",
"USE_ORCHESTRATOR",
"DO_NOT_USE_ORCHESTRATOR"
],
"description": "The option of whether running each test within its own invocation of instrumentation with Android Test Orchestrator or not. ** Orchestrator is only compatible with AndroidJUnitRunner version 1.0 or higher! ** Orchestrator offers the following benefits: - No shared state - Crashes are isolated - Logs are scoped per test See for more information about Android Test Orchestrator. If not set, the test will be run without the orchestrator.",
"type": "string",
"enumDescriptions": [
"Default value: the server will choose the mode. Currently implies that the test will run without the orchestrator. In the future, all instrumentation tests will be run with the orchestrator. Using the orchestrator is highly encouraged because of all the benefits it offers.",
"Run test using orchestrator. ** Only compatible with AndroidJUnitRunner version 1.0 or higher! ** Recommended.",
"Run test without using orchestrator."
]
},
"appBundle": {
"description": "A multi-apk app bundle for the application under test.",
"$ref": "AppBundle"
},
"appApk": {
"description": "The APK for the application under test.",
"$ref": "FileReference"
},
"testRunnerClass": {
"type": "string",
"description": "The InstrumentationTestRunner class. The default value is determined by examining the application's manifest."
},
"appPackageId": {
"description": "The java package for the application under test. The default value is determined by examining the application's manifest.",
"type": "string"
},
"shardingOption": {
"$ref": "ShardingOption",
"description": "The option to run tests in multiple shards in parallel."
},
"testTargets": {
"description": "Each target must be fully qualified with the package name or class name, in one of these formats: - \"package package_name\" - \"class package_name.class_name\" - \"class package_name.class_name#method_name\" If empty, all targets in the module will be run.",
"type": "array",
"items": {
"type": "string"
}
},
"testPackageId": {
"description": "The java package for the test to be executed. The default value is determined by examining the application's manifest.",
"type": "string"
}
}
},
"AndroidTestLoop": {
"description": "A test of an Android Application with a Test Loop. The intent \\ will be implicitly added, since Games is the only user of this api, for the time being.",
"type": "object",
"properties": {
"appApk": {
"$ref": "FileReference",
"description": "The APK for the application under test."
},
"scenarioLabels": {
"description": "The list of scenario labels that should be run during the test. The scenario labels should map to labels defined in the application's manifest. For example, player_experience and com.google.test.loops.player_experience add all of the loops labeled in the manifest with the com.google.test.loops.player_experience name to the execution. Scenarios can also be specified in the scenarios field.",
"items": {
"type": "string"
},
"type": "array"
},
"appBundle": {
"$ref": "AppBundle",
"description": "A multi-apk app bundle for the application under test."
},
"appPackageId": {
"type": "string",
"description": "The java package for the application under test. The default is determined by examining the application's manifest."
},
"scenarios": {
"description": "The list of scenarios that should be run during the test. The default is all test loops, derived from the application's manifest.",
"type": "array",
"items": {
"type": "integer",
"format": "int32"
}
}
},
"id": "AndroidTestLoop"
},
"IntentFilter": {
"id": "IntentFilter",
"properties": {
"categoryNames": {
"items": {
"type": "string"
},
"type": "array",
"description": "The android:name value of the tag."
},
"mimeType": {
"type": "string",
"description": "The android:mimeType value of the tag."
},
"actionNames": {
"items": {
"type": "string"
},
"description": "The android:name value of the tag.",
"type": "array"
}
},
"type": "object",
"description": "The section of an tag. https://developer.android.com/guide/topics/manifest/intent-filter-element.html"
},
"Date": {
"type": "object",
"description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day value, with a zero year, such as an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, such as a credit card expiration date Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.",
"properties": {
"month": {
"type": "integer",
"description": "Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.",
"format": "int32"
},
"day": {
"type": "integer",
"description": "Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.",
"format": "int32"
},
"year": {
"description": "Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.",
"type": "integer",
"format": "int32"
}
},
"id": "Date"
},
"AndroidDeviceCatalog": {
"properties": {
"versions": {
"type": "array",
"description": "The set of supported Android OS versions.",
"items": {
"$ref": "AndroidVersion"
}
},
"runtimeConfiguration": {
"description": "The set of supported runtime configurations.",
"$ref": "AndroidRuntimeConfiguration"
},
"models": {
"type": "array",
"description": "The set of supported Android device models.",
"items": {
"$ref": "AndroidModel"
}
}
},
"description": "The currently supported Android devices.",
"id": "AndroidDeviceCatalog",
"type": "object"
},
"CancelTestMatrixResponse": {
"description": "Response containing the current state of the specified test matrix.",
"properties": {
"testState": {
"description": "The current rolled-up state of the test matrix. If this state is already final, then the cancelation request will have no effect.",
"type": "string",
"enum": [
"TEST_STATE_UNSPECIFIED",
"VALIDATING",
"PENDING",
"RUNNING",
"FINISHED",
"ERROR",
"UNSUPPORTED_ENVIRONMENT",
"INCOMPATIBLE_ENVIRONMENT",
"INCOMPATIBLE_ARCHITECTURE",
"CANCELLED",
"INVALID"
],
"enumDescriptions": [
"Do not use. For proto versioning only.",
"The execution or matrix is being validated.",
"The execution or matrix is waiting for resources to become available.",
"The execution is currently being processed. Can only be set on an execution.",
"The execution or matrix has terminated normally. On a matrix this means that the matrix level processing completed normally, but individual executions may be in an ERROR state.",
"The execution or matrix has stopped because it encountered an infrastructure failure.",
"The execution was not run because it corresponds to a unsupported environment. Can only be set on an execution.",
"The execution was not run because the provided inputs are incompatible with the requested environment. Example: requested AndroidVersion is lower than APK's minSdkVersion Can only be set on an execution.",
"The execution was not run because the provided inputs are incompatible with the requested architecture. Example: requested device does not support running the native code in the supplied APK Can only be set on an execution.",
"The user cancelled the execution. Can only be set on an execution.",
"The execution or matrix was not run because the provided inputs are not valid. Examples: input file is not of the expected type, is malformed/corrupt, or was flagged as malware"
]
}
},
"id": "CancelTestMatrixResponse",
"type": "object"
},
"RoboStartingIntent": {
"type": "object",
"properties": {
"timeout": {
"format": "google-duration",
"type": "string",
"description": "Timeout in seconds for each intent."
},
"launcherActivity": {
"description": "An intent that starts the main launcher activity.",
"$ref": "LauncherActivityIntent"
},
"startActivity": {
"$ref": "StartActivityIntent",
"description": "An intent that starts an activity with specific details."
}
},
"description": "Message for specifying the start activities to crawl.",
"id": "RoboStartingIntent"
},
"NetworkConfigurationCatalog": {
"id": "NetworkConfigurationCatalog",
"type": "object",
"properties": {
"configurations": {
"items": {
"$ref": "NetworkConfiguration"
},
"type": "array"
}
}
},
"GoogleCloudStorage": {
"properties": {
"gcsPath": {
"type": "string",
"description": "Required. The path to a directory in GCS that will eventually contain the results for this test. The requesting user must have write access on the bucket in the supplied path."
}
},
"description": "A storage location within Google cloud storage (GCS).",
"id": "GoogleCloudStorage",
"type": "object"
},
"TestSetup": {
"properties": {
"environmentVariables": {
"description": "Environment variables to set for the test (only applicable for instrumentation tests).",
"items": {
"$ref": "EnvironmentVariable"
},
"type": "array"
},
"systrace": {
"description": "Systrace configuration for the run. If set a systrace will be taken, starting on test start and lasting for the configured duration. The systrace file thus obtained is put in the results bucket together with the other artifacts from the run.",
"$ref": "SystraceSetup"
},
"account": {
"description": "The device will be logged in on this account for the duration of the test.",
"$ref": "Account"
},
"networkProfile": {
"type": "string",
"description": "The network traffic profile used for running the test. Available network profiles can be queried by using the NETWORK_CONFIGURATION environment type when calling TestEnvironmentDiscoveryService.GetTestEnvironmentCatalog."
},
"additionalApks": {
"type": "array",
"description": "APKs to install in addition to those being directly tested. Currently capped at 100.",
"items": {
"$ref": "Apk"
}
},
"dontAutograntPermissions": {
"description": "Whether to prevent all runtime permissions to be granted at app install",
"type": "boolean"
},
"directoriesToPull": {
"description": "List of directories on the device to upload to GCS at the end of the test; they must be absolute paths under /sdcard, /storage or /data/local/tmp. Path names are restricted to characters a-z A-Z 0-9 _ - . + and / Note: The paths /sdcard and /data will be made available and treated as implicit path substitutions. E.g. if /sdcard on a particular device does not map to external storage, the system will replace it with the external storage path prefix for that device.",
"type": "array",
"items": {
"type": "string"
}
},
"filesToPush": {
"type": "array",
"items": {
"$ref": "DeviceFile"
},
"description": "List of files to push to the device before starting the test."
}
},
"description": "A description of how to set up the Android device prior to running the test.",
"id": "TestSetup",
"type": "object"
},
"AndroidRoboTest": {
"properties": {
"roboScript": {
"$ref": "FileReference",
"description": "A JSON file with a sequence of actions Robo should perform as a prologue for the crawl."
},
"startingIntents": {
"items": {
"$ref": "RoboStartingIntent"
},
"description": "The intents used to launch the app for the crawl. If none are provided, then the main launcher activity is launched. If some are provided, then only those provided are launched (the main launcher activity must be provided explicitly).",
"type": "array"
},
"appInitialActivity": {
"type": "string",
"description": "The initial activity that should be used to start the app."
},
"maxDepth": {
"type": "integer",
"format": "int32",
"description": "The max depth of the traversal stack Robo can explore. Needs to be at least 2 to make Robo explore the app beyond the first activity. Default is 50."
},
"appBundle": {
"$ref": "AppBundle",
"description": "A multi-apk app bundle for the application under test."
},
"appApk": {
"description": "The APK for the application under test.",
"$ref": "FileReference"
},
"maxSteps": {
"description": "The max number of steps Robo can execute. Default is no limit.",
"type": "integer",
"format": "int32"
},
"appPackageId": {
"type": "string",
"description": "The java package for the application under test. The default value is determined by examining the application's manifest."
},
"roboDirectives": {
"description": "A set of directives Robo should apply during the crawl. This allows users to customize the crawl. For example, the username and password for a test account can be provided.",
"type": "array",
"items": {
"$ref": "RoboDirective"
}
}
},
"id": "AndroidRoboTest",
"type": "object",
"description": "A test of an android application that explores the application on a virtual or physical Android Device, finding culprits and crashes as it goes. Next tag: 30"
},
"DeviceFile": {
"id": "DeviceFile",
"properties": {
"obbFile": {
"$ref": "ObbFile",
"description": "A reference to an opaque binary blob file."
},
"regularFile": {
"$ref": "RegularFile",
"description": "A reference to a regular file."
}
},
"description": "A single device file description.",
"type": "object"
},
"EnvironmentMatrix": {
"id": "EnvironmentMatrix",
"description": "The matrix of environments in which the test is to be executed.",
"type": "object",
"properties": {
"androidMatrix": {
"$ref": "AndroidMatrix",
"description": "A matrix of Android devices."
},
"androidDeviceList": {
"$ref": "AndroidDeviceList",
"description": "A list of Android devices; the test will be run only on the specified devices."
},
"iosDeviceList": {
"$ref": "IosDeviceList",
"description": "A list of iOS devices."
}
}
},
"IosDeviceCatalog": {
"description": "The currently supported iOS devices.",
"type": "object",
"id": "IosDeviceCatalog",
"properties": {
"models": {
"items": {
"$ref": "IosModel"
},
"description": "The set of supported iOS device models.",
"type": "array"
},
"runtimeConfiguration": {
"description": "The set of supported runtime configurations.",
"$ref": "IosRuntimeConfiguration"
},
"xcodeVersions": {
"description": "The set of supported Xcode versions.",
"items": {
"$ref": "XcodeVersion"
},
"type": "array"
},
"versions": {
"description": "The set of supported iOS software versions.",
"type": "array",
"items": {
"$ref": "IosVersion"
}
}
}
},
"Locale": {
"properties": {
"tags": {
"description": "Tags for this dimension. Example: \"default\".",
"type": "array",
"items": {
"type": "string"
}
},
"region": {
"description": "A human-friendly string representing the region for this locale. Example: \"United States\". Not present for every locale.",
"type": "string"
},
"id": {
"type": "string",
"description": "The id for this locale. Example: \"en_US\"."
},
"name": {
"type": "string",
"description": "A human-friendly name for this language/locale. Example: \"English\"."
}
},
"id": "Locale",
"type": "object",
"description": "A location/region designation for language."
},
"ResultStorage": {
"id": "ResultStorage",
"description": "Locations where the results of running the test are stored.",
"properties": {
"toolResultsExecution": {
"$ref": "ToolResultsExecution",
"description": "Output only. The tool results execution that results are written to."
},
"resultsUrl": {
"type": "string",
"description": "Output only. URL to the results in the Firebase Web Console."
},
"toolResultsHistory": {
"description": "The tool results history that contains the tool results execution that results are written to. If not provided, the service will choose an appropriate value.",
"$ref": "ToolResultsHistory"
},
"googleCloudStorage": {
"$ref": "GoogleCloudStorage",
"description": "Required."
}
},
"type": "object"
},
"TestMatrix": {
"description": "TestMatrix captures all details about a test. It contains the environment configuration, test specification, test executions and overall state and outcome.",
"type": "object",
"id": "TestMatrix",
"properties": {
"state": {
"enumDescriptions": [
"Do not use. For proto versioning only.",
"The execution or matrix is being validated.",
"The execution or matrix is waiting for resources to become available.",
"The execution is currently being processed. Can only be set on an execution.",
"The execution or matrix has terminated normally. On a matrix this means that the matrix level processing completed normally, but individual executions may be in an ERROR state.",
"The execution or matrix has stopped because it encountered an infrastructure failure.",
"The execution was not run because it corresponds to a unsupported environment. Can only be set on an execution.",
"The execution was not run because the provided inputs are incompatible with the requested environment. Example: requested AndroidVersion is lower than APK's minSdkVersion Can only be set on an execution.",
"The execution was not run because the provided inputs are incompatible with the requested architecture. Example: requested device does not support running the native code in the supplied APK Can only be set on an execution.",
"The user cancelled the execution. Can only be set on an execution.",
"The execution or matrix was not run because the provided inputs are not valid. Examples: input file is not of the expected type, is malformed/corrupt, or was flagged as malware"
],
"enum": [
"TEST_STATE_UNSPECIFIED",
"VALIDATING",
"PENDING",
"RUNNING",
"FINISHED",
"ERROR",
"UNSUPPORTED_ENVIRONMENT",
"INCOMPATIBLE_ENVIRONMENT",
"INCOMPATIBLE_ARCHITECTURE",
"CANCELLED",
"INVALID"
],
"type": "string",
"description": "Output only. Indicates the current progress of the test matrix."
},
"resultStorage": {
"$ref": "ResultStorage",
"description": "Required. Where the results for the matrix are written."
},
"outcomeSummary": {
"description": "Output Only. The overall outcome of the test. Only set when the test matrix state is FINISHED.",
"type": "string",
"enum": [
"OUTCOME_SUMMARY_UNSPECIFIED",
"SUCCESS",
"FAILURE",
"INCONCLUSIVE",
"SKIPPED"
],
"enumDescriptions": [
"Do not use. For proto versioning only.",
"The test matrix run was successful, for instance: - All the test cases passed. - Robo did not detect a crash of the application under test.",
"A run failed, for instance: - One or more test case failed. - A test timed out. - The application under test crashed.",
"Something unexpected happened. The run should still be considered unsuccessful but this is likely a transient problem and re-running the test might be successful.",
"All tests were skipped, for instance: - All device configurations were incompatible."
]
},
"timestamp": {
"description": "Output only. The time this test matrix was initially created.",
"type": "string",
"format": "google-datetime"
},
"invalidMatrixDetails": {
"description": "Output only. Describes why the matrix is considered invalid. Only useful for matrices in the INVALID state.",
"enumDescriptions": [
"Do not use. For proto versioning only.",
"The matrix is INVALID, but there are no further details available.",
"The input app APK could not be parsed.",
"The input test APK could not be parsed.",
"The AndroidManifest.xml could not be found.",
"The APK manifest does not declare a package name.",
"The APK application ID (aka package name) is invalid. See also https://developer.android.com/studio/build/application-id",
"The test package and app package are the same.",
"The test apk does not declare an instrumentation.",
"The input app apk does not have a signature.",
"The test runner class specified by user or in the test APK's manifest file is not compatible with Android Test Orchestrator. Orchestrator is only compatible with AndroidJUnitRunner version 1.0 or higher. Orchestrator can be disabled by using DO_NOT_USE_ORCHESTRATOR OrchestratorOption.",
"The test APK does not contain the test runner class specified by user or in the manifest file. This can be caused by either of the following reasons: - the user provided a runner class name that's incorrect, or - the test runner isn't built into the test APK (might be in the app APK instead).",
"A main launcher activity could not be found.",
"The app declares one or more permissions that are not allowed.",
"There is a conflict in the provided robo_directives.",
"There is at least one invalid resource name in the provided robo directives",
"Invalid definition of action in the robo directives (e.g. a click or ignore action includes an input text field)",
"There is no test loop intent filter, or the one that is given is not formatted correctly.",
"The request contains a scenario label that was not declared in the manifest.",
"There was an error when parsing a label's value.",
"The request contains a scenario number that was not declared in the manifest.",
"Device administrator applications are not allowed.",
"The zipped XCTest was malformed. The zip did not contain a single .xctestrun file and the contents of the DerivedData/Build/Products directory.",
"The zipped XCTest was built for the iOS simulator rather than for a physical device.",
"The .xctestrun file did not specify any test targets.",
"One or more of the test targets defined in the .xctestrun file specifies \"UseDestinationArtifacts\", which is disallowed.",
"XC tests which run on physical devices must have \"IsAppHostedTestBundle\" == \"true\" in the xctestrun file.",
"An Info.plist file in the XCTest zip could not be parsed.",
"The APK is marked as \"testOnly\". Deprecated and not currently used.",
"The input IPA could not be parsed.",
"The application doesn't register the game loop URL scheme.",
"The iOS application bundle (.app) couldn't be processed.",
"APK contains no code. See also https://developer.android.com/guide/topics/manifest/application-element.html#code",
"Either the provided input APK path was malformed, the APK file does not exist, or the user does not have permission to access the APK file.",
"APK is built for a preview SDK which is unsupported"
],
"enum": [
"INVALID_MATRIX_DETAILS_UNSPECIFIED",
"DETAILS_UNAVAILABLE",
"MALFORMED_APK",
"MALFORMED_TEST_APK",
"NO_MANIFEST",
"NO_PACKAGE_NAME",
"INVALID_PACKAGE_NAME",
"TEST_SAME_AS_APP",
"NO_INSTRUMENTATION",
"NO_SIGNATURE",
"INSTRUMENTATION_ORCHESTRATOR_INCOMPATIBLE",
"NO_TEST_RUNNER_CLASS",
"NO_LAUNCHER_ACTIVITY",
"FORBIDDEN_PERMISSIONS",
"INVALID_ROBO_DIRECTIVES",
"INVALID_RESOURCE_NAME",
"INVALID_DIRECTIVE_ACTION",
"TEST_LOOP_INTENT_FILTER_NOT_FOUND",
"SCENARIO_LABEL_NOT_DECLARED",
"SCENARIO_LABEL_MALFORMED",
"SCENARIO_NOT_DECLARED",
"DEVICE_ADMIN_RECEIVER",
"MALFORMED_XC_TEST_ZIP",
"BUILT_FOR_IOS_SIMULATOR",
"NO_TESTS_IN_XC_TEST_ZIP",
"USE_DESTINATION_ARTIFACTS",
"TEST_NOT_APP_HOSTED",
"PLIST_CANNOT_BE_PARSED",
"TEST_ONLY_APK",
"MALFORMED_IPA",
"MISSING_URL_SCHEME",
"MALFORMED_APP_BUNDLE",
"NO_CODE_APK",
"INVALID_INPUT_APK",
"INVALID_APK_PREVIEW_SDK"
],
"type": "string"
},
"testMatrixId": {
"type": "string",
"description": "Output only. Unique id set by the service."
},
"testExecutions": {
"items": {
"$ref": "TestExecution"
},
"description": "Output only. The list of test executions that the service creates for this matrix.",
"type": "array"
},
"clientInfo": {
"description": "Information about the client which invoked the test.",
"$ref": "ClientInfo"
},
"testSpecification": {
"description": "Required. How to run the test.",
"$ref": "TestSpecification"
},
"failFast": {
"type": "boolean",
"description": "If true, only a single attempt at most will be made to run each execution/shard in the matrix. Flaky test attempts are not affected. Normally, 2 or more attempts are made if a potential infrastructure issue is detected. This feature is for latency sensitive workloads. The incidence of execution failures may be significantly greater for fail-fast matrices and support is more limited because of that expectation."
},
"projectId": {
"type": "string",
"description": "The cloud project that owns the test matrix."
},
"environmentMatrix": {
"description": "Required. The devices the tests are being executed on.",
"$ref": "EnvironmentMatrix"
},
"flakyTestAttempts": {
"format": "int32",
"type": "integer",
"description": "The number of times a TestExecution should be re-attempted if one or more of its test cases fail for any reason. The maximum number of reruns allowed is 10. Default is 0, which implies no reruns."
}
}
},
"ClientInfoDetail": {
"properties": {
"key": {
"type": "string",
"description": "Required. The key of detailed client information."
},
"value": {
"type": "string",
"description": "Required. The value of detailed client information."
}
},
"id": "ClientInfoDetail",
"type": "object",
"description": "Key-value pair of detailed information about the client which invoked the test. Examples: {'Version', '1.0'}, {'Release Track', 'BETA'}."
},
"AndroidDevice": {
"id": "AndroidDevice",
"properties": {
"locale": {
"description": "Required. The locale the test device used for testing. Use the TestEnvironmentDiscoveryService to get supported options.",
"type": "string"
},
"androidModelId": {
"type": "string",
"description": "Required. The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options."
},
"orientation": {
"type": "string",
"description": "Required. How the device is oriented during the test. Use the TestEnvironmentDiscoveryService to get supported options."
},
"androidVersionId": {
"type": "string",
"description": "Required. The id of the Android OS version to be used. Use the TestEnvironmentDiscoveryService to get supported options."
}
},
"type": "object",
"description": "A single Android device."
},
"StartActivityIntent": {
"properties": {
"action": {
"description": "Action name. Required for START_ACTIVITY.",
"type": "string"
},
"uri": {
"description": "URI for the action.",
"type": "string"
},
"categories": {
"items": {
"type": "string"
},
"description": "Intent categories to set on the intent.",
"type": "array"
}
},
"description": "A starting intent specified by an action, uri, and categories.",
"id": "StartActivityIntent",
"type": "object"
},
"FileReference": {
"properties": {
"gcsPath": {
"description": "A path to a file in Google Cloud Storage. Example: gs://build-app-1414623860166/app%40debug-unaligned.apk These paths are expected to be url encoded (percent encoding)",
"type": "string"
}
},
"id": "FileReference",
"description": "A reference to a file, used for user inputs.",
"type": "object"
},
"UniformSharding": {
"description": "Uniformly shards test cases given a total number of shards. For Instrumentation test, it will be translated to \"-e numShard\" \"-e shardIndex\" AndroidJUnitRunner arguments. With uniform sharding enabled, specifying these sharding arguments via environment_variables is invalid.",
"id": "UniformSharding",
"properties": {
"numShards": {
"type": "integer",
"description": "Required. Total number of shards. When any physical devices are selected, the number must be \u003e= 1 and \u003c= 50. When no physical devices are selected, the number must be \u003e= 1 and \u003c= 500.",
"format": "int32"
}
},
"type": "object"
},
"TestSpecification": {
"properties": {
"iosTestLoop": {
"description": "An iOS application with a test loop.",
"$ref": "IosTestLoop"
},
"androidRoboTest": {
"$ref": "AndroidRoboTest",
"description": "An Android robo test."
},
"androidTestLoop": {
"description": "An Android Application with a Test Loop.",
"$ref": "AndroidTestLoop"
},
"iosXcTest": {
"description": "An iOS XCTest, via an .xctestrun file.",
"$ref": "IosXcTest"
},
"disableVideoRecording": {
"type": "boolean",
"description": "Disables video recording. May reduce test latency."
},
"disablePerformanceMetrics": {
"type": "boolean",
"description": "Disables performance metrics recording. May reduce test latency."
},
"testSetup": {
"description": "Test setup requirements for Android e.g. files to install, bootstrap scripts.",
"$ref": "TestSetup"
},
"iosTestSetup": {
"description": "Test setup requirements for iOS.",
"$ref": "IosTestSetup"
},
"testTimeout": {
"description": "Max time a test execution is allowed to run before it is automatically cancelled. The default value is 5 min.",
"type": "string",
"format": "google-duration"
},
"androidInstrumentationTest": {
"description": "An Android instrumentation test.",
"$ref": "AndroidInstrumentationTest"
}
},
"type": "object",
"description": "A description of how to run the test.",
"id": "TestSpecification"
},
"TestEnvironmentCatalog": {
"id": "TestEnvironmentCatalog",
"properties": {
"androidDeviceCatalog": {
"description": "Supported Android devices.",
"$ref": "AndroidDeviceCatalog"
},
"softwareCatalog": {
"$ref": "ProvidedSoftwareCatalog",
"description": "The software test environment provided by TestExecutionService."
},
"networkConfigurationCatalog": {
"$ref": "NetworkConfigurationCatalog",
"description": "Supported network configurations."
},
"deviceIpBlockCatalog": {
"description": "The IP blocks used by devices in the test environment.",
"$ref": "DeviceIpBlockCatalog"
},
"iosDeviceCatalog": {
"description": "Supported iOS devices.",
"$ref": "IosDeviceCatalog"
}
},
"type": "object",
"description": "A description of a test environment."
},
"XcodeVersion": {
"id": "XcodeVersion",
"type": "object",
"description": "An Xcode version that an iOS version is compatible with.",
"properties": {
"tags": {
"description": "Tags for this Xcode version. Example: \"default\".",
"items": {
"type": "string"
},
"type": "array"
},
"version": {
"type": "string",
"description": "The id for this version. Example: \"9.2\"."
}
}
},
"SystraceSetup": {
"type": "object",
"properties": {
"durationSeconds": {
"type": "integer",
"format": "int32",
"description": "Systrace duration in seconds. Should be between 1 and 30 seconds. 0 disables systrace."
}
},
"id": "SystraceSetup"
},
"TestDetails": {
"id": "TestDetails",
"properties": {
"progressMessages": {
"description": "Output only. Human-readable, detailed descriptions of the test's progress. For example: \"Provisioning a device\", \"Starting Test\". During the course of execution new data may be appended to the end of progress_messages.",
"type": "array",
"items": {
"type": "string"
}
},
"errorMessage": {
"type": "string",
"description": "Output only. If the TestState is ERROR, then this string will contain human-readable details about the error."
}
},
"type": "object",
"description": "Additional details about the progress of the running test."
},
"ProvidedSoftwareCatalog": {
"type": "object",
"description": "The currently provided software environment on the devices under test.",
"properties": {
"orchestratorVersion": {
"type": "string",
"description": "A string representing the current version of Android Test Orchestrator that is provided by TestExecutionService. Example: \"1.0.2 beta\"."
}
},
"id": "ProvidedSoftwareCatalog"
},
"TestExecution": {
"id": "TestExecution",
"description": "A single test executed in a single environment.",
"properties": {
"matrixId": {
"description": "Output only. Id of the containing TestMatrix.",
"type": "string"
},
"testDetails": {
"$ref": "TestDetails",
"description": "Output only. Additional details about the running test."
},
"environment": {
"$ref": "Environment",
"description": "Output only. How the host machine(s) are configured."
},
"projectId": {
"description": "Output only. The cloud project that owns the test execution.",
"type": "string"
},
"timestamp": {
"format": "google-datetime",
"description": "Output only. The time this test execution was initially created.",
"type": "string"
},
"testSpecification": {
"$ref": "TestSpecification",
"description": "Output only. How to run the test."
},
"id": {
"description": "Output only. Unique id set by the service.",
"type": "string"
},
"shard": {
"description": "Output only. Details about the shard.",
"$ref": "Shard"
},
"toolResultsStep": {
"$ref": "ToolResultsStep",
"description": "Output only. Where the results for this execution are written."
},
"state": {
"type": "string",
"enumDescriptions": [
"Do not use. For proto versioning only.",
"The execution or matrix is being validated.",
"The execution or matrix is waiting for resources to become available.",
"The execution is currently being processed. Can only be set on an execution.",
"The execution or matrix has terminated normally. On a matrix this means that the matrix level processing completed normally, but individual executions may be in an ERROR state.",
"The execution or matrix has stopped because it encountered an infrastructure failure.",
"The execution was not run because it corresponds to a unsupported environment. Can only be set on an execution.",
"The execution was not run because the provided inputs are incompatible with the requested environment. Example: requested AndroidVersion is lower than APK's minSdkVersion Can only be set on an execution.",
"The execution was not run because the provided inputs are incompatible with the requested architecture. Example: requested device does not support running the native code in the supplied APK Can only be set on an execution.",
"The user cancelled the execution. Can only be set on an execution.",
"The execution or matrix was not run because the provided inputs are not valid. Examples: input file is not of the expected type, is malformed/corrupt, or was flagged as malware"
],
"enum": [
"TEST_STATE_UNSPECIFIED",
"VALIDATING",
"PENDING",
"RUNNING",
"FINISHED",
"ERROR",
"UNSUPPORTED_ENVIRONMENT",
"INCOMPATIBLE_ENVIRONMENT",
"INCOMPATIBLE_ARCHITECTURE",
"CANCELLED",
"INVALID"
],
"description": "Output only. Indicates the current progress of the test execution (e.g., FINISHED)."
}
},
"type": "object"
},
"Distribution": {
"id": "Distribution",
"description": "Data about the relative number of devices running a given configuration of the Android platform.",
"type": "object",
"properties": {
"marketShare": {
"description": "Output only. The estimated fraction (0-1) of the total market with this configuration.",
"type": "number",
"format": "double"
},
"measurementTime": {
"type": "string",
"description": "Output only. The time this distribution was measured.",
"format": "google-datetime"
}
}
},
"ClientInfo": {
"id": "ClientInfo",
"properties": {
"name": {
"description": "Required. Client name, such as gcloud.",
"type": "string"
},
"clientInfoDetails": {
"items": {
"$ref": "ClientInfoDetail"
},
"type": "array",
"description": "The list of detailed information about client."
}
},
"description": "Information about the client which invoked the test.",
"type": "object"
},
"ToolResultsStep": {
"type": "object",
"properties": {
"executionId": {
"type": "string",
"description": "Output only. A tool results execution ID."
},
"historyId": {
"type": "string",
"description": "Output only. A tool results history ID."
},
"projectId": {
"type": "string",
"description": "Output only. The cloud project that owns the tool results step."
},
"stepId": {
"type": "string",
"description": "Output only. A tool results step ID."
}
},
"id": "ToolResultsStep",
"description": "Represents a tool results step resource. This has the results of a TestExecution."
},
"IosXcTest": {
"id": "IosXcTest",
"type": "object",
"description": "A test of an iOS application that uses the XCTest framework. Xcode supports the option to \"build for testing\", which generates an .xctestrun file that contains a test specification (arguments, test methods, etc). This test type accepts a zip file containing the .xctestrun file and the corresponding contents of the Build/Products directory that contains all the binaries needed to run the tests.",
"properties": {
"xctestrun": {
"$ref": "FileReference",
"description": "An .xctestrun file that will override the .xctestrun file in the tests zip. Because the .xctestrun file contains environment variables along with test methods to run and/or ignore, this can be useful for sharding tests. Default is taken from the tests zip."
},
"appBundleId": {
"description": "Output only. The bundle id for the application under test.",
"type": "string"
},
"testSpecialEntitlements": {
"description": "The option to test special app entitlements. Setting this would re-sign the app having special entitlements with an explicit application-identifier. Currently supports testing aps-environment entitlement.",
"type": "boolean"
},
"testsZip": {
"$ref": "FileReference",
"description": "Required. The .zip containing the .xctestrun file and the contents of the DerivedData/Build/Products directory. The .xctestrun file in this zip is ignored if the xctestrun field is specified."
},
"xcodeVersion": {
"description": "The Xcode version that should be used for the test. Use the TestEnvironmentDiscoveryService to get supported options. Defaults to the latest Xcode version Firebase Test Lab supports.",
"type": "string"
}
}
},
"IosTestLoop": {
"properties": {
"appBundleId": {
"type": "string",
"description": "Output only. The bundle id for the application under test."
},
"scenarios": {
"items": {
"type": "integer",
"format": "int32"
},
"description": "The list of scenarios that should be run during the test. Defaults to the single scenario 0 if unspecified.",
"type": "array"
},
"appIpa": {
"$ref": "FileReference",
"description": "Required. The .ipa of the application to test."
}
},
"id": "IosTestLoop",
"description": "A test of an iOS application that implements one or more game loop scenarios. This test type accepts an archived application (.ipa file) and a list of integer scenarios that will be executed on the app sequentially.",
"type": "object"
},
"TrafficRule": {
"type": "object",
"properties": {
"delay": {
"format": "google-duration",
"type": "string",
"description": "Packet delay, must be \u003e= 0."
},
"burst": {
"description": "Burst size in kbits.",
"format": "float",
"type": "number"
},
"bandwidth": {
"type": "number",
"description": "Bandwidth in kbits/second.",
"format": "float"
},
"packetDuplicationRatio": {
"type": "number",
"description": "Packet duplication ratio (0.0 - 1.0).",
"format": "float"
},
"packetLossRatio": {
"format": "float",
"description": "Packet loss ratio (0.0 - 1.0).",
"type": "number"
}
},
"id": "TrafficRule",
"description": "Network emulation parameters."
},
"RoboDirective": {
"description": "Directs Robo to interact with a specific UI element if it is encountered during the crawl. Currently, Robo can perform text entry or element click.",
"properties": {
"inputText": {
"description": "The text that Robo is directed to set. If left empty, the directive will be treated as a CLICK on the element matching the resource_name.",
"type": "string"
},
"resourceName": {
"type": "string",
"description": "Required. The android resource name of the target UI element. For example, in Java: R.string.foo in xml: @string/foo Only the \"foo\" part is needed. Reference doc: https://developer.android.com/guide/topics/resources/accessing-resources.html"
},
"actionType": {
"description": "Required. The type of action that Robo should perform on the specified element.",
"type": "string",
"enum": [
"ACTION_TYPE_UNSPECIFIED",
"SINGLE_CLICK",
"ENTER_TEXT",
"IGNORE"
],
"enumDescriptions": [
"DO NOT USE. For proto versioning only.",
"Direct Robo to click on the specified element. No-op if specified element is not clickable.",
"Direct Robo to enter text on the specified element. No-op if specified element is not enabled or does not allow text entry.",
"Direct Robo to ignore interactions with a specific element."
]
}
},
"id": "RoboDirective",
"type": "object"
},
"GoogleAuto": {
"type": "object",
"id": "GoogleAuto",
"description": "Enables automatic Google account login. If set, the service automatically generates a Google test account and adds it to the device, before executing the test. Note that test accounts might be reused. Many applications show their full set of functionalities when an account is present on the device. Logging into the device with these generated accounts allows testing more functionalities.",
"properties": {}
},
"Apk": {
"description": "An Android package file to install.",
"properties": {
"packageName": {
"description": "The java package for the APK to be installed. Value is determined by examining the application's manifest.",
"type": "string"
},
"location": {
"$ref": "FileReference",
"description": "The path to an APK to be installed on the device before the test begins."
}
},
"id": "Apk",
"type": "object"
},
"NetworkConfiguration": {
"id": "NetworkConfiguration",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The unique opaque id for this network traffic configuration."
},
"downRule": {
"$ref": "TrafficRule",
"description": "The emulation rule applying to the download traffic."
},
"upRule": {
"description": "The emulation rule applying to the upload traffic.",
"$ref": "TrafficRule"
}
}
},
"AndroidRuntimeConfiguration": {
"properties": {
"orientations": {
"items": {
"$ref": "Orientation"
},
"description": "The set of available orientations.",
"type": "array"
},
"locales": {
"type": "array",
"items": {
"$ref": "Locale"
},
"description": "The set of available locales."
}
},
"id": "AndroidRuntimeConfiguration",
"type": "object",
"description": "Android configuration that can be selected at the time a test is run."
},
"ObbFile": {
"properties": {
"obbFileName": {
"description": "Required. OBB file name which must conform to the format as specified by Android e.g. [main|patch].0300110.com.example.android.obb which will be installed into \\/Android/obb/\\/ on the device.",
"type": "string"
},
"obb": {
"$ref": "FileReference",
"description": "Required. Opaque Binary Blob (OBB) file(s) to install on the device."
}
},
"description": "An opaque binary blob file to install on the device before the test starts.",
"id": "ObbFile",
"type": "object"
},
"ToolResultsHistory": {
"type": "object",
"properties": {
"historyId": {
"type": "string",
"description": "Required. A tool results history ID."
},
"projectId": {
"description": "Required. The cloud project that owns the tool results history.",
"type": "string"
}
},
"description": "Represents a tool results history resource.",
"id": "ToolResultsHistory"
},
"IosDeviceList": {
"id": "IosDeviceList",
"description": "A list of iOS device configurations in which the test is to be executed.",
"type": "object",
"properties": {
"iosDevices": {
"description": "Required. A list of iOS devices.",
"items": {
"$ref": "IosDevice"
},
"type": "array"
}
}
},
"DeviceIpBlock": {
"properties": {
"form": {
"description": "Whether this block is used by physical or virtual devices",
"type": "string",
"enum": [
"DEVICE_FORM_UNSPECIFIED",
"VIRTUAL",
"PHYSICAL",
"EMULATOR"
],
"enumDescriptions": [
"Do not use. For proto versioning only.",
"Android virtual device using Compute Engine native virtualization. Firebase Test Lab only.",
"Actual hardware.",
"Android virtual device using emulator in nested virtualization. Equivalent to Android Studio."
]
},
"block": {
"type": "string",
"description": "An IP address block in CIDR notation eg: 34.68.194.64/29"
},
"addedDate": {
"description": "The date this block was added to Firebase Test Lab",
"$ref": "Date"
}
},
"description": "A single device IP block",
"type": "object",
"id": "DeviceIpBlock"
},
"Account": {
"type": "object",
"description": "Identifies an account and how to log into it.",
"id": "Account",
"properties": {
"googleAuto": {
"description": "An automatic google login account.",
"$ref": "GoogleAuto"
}
}
}
},
"kind": "discovery#restDescription",
"parameters": {
"alt": {
"type": "string",
"default": "json",
"enum": [
"json",
"media",
"proto"
],
"enumDescriptions": [
"Responses with Content-Type of application/json",
"Media download with context-dependent Content-Type",
"Responses with Content-Type of application/x-protobuf"
],
"location": "query",
"description": "Data format for response."
},
"callback": {
"type": "string",
"location": "query",
"description": "JSONP"
},
"$.xgafv": {
"enum": [
"1",
"2"
],
"location": "query",
"type": "string",
"enumDescriptions": [
"v1 error format",
"v2 error format"
],
"description": "V1 error format."
},
"fields": {
"description": "Selector specifying which fields to include in a partial response.",
"type": "string",
"location": "query"
},
"access_token": {
"location": "query",
"type": "string",
"description": "OAuth access token."
},
"oauth_token": {
"description": "OAuth 2.0 token for the current user.",
"type": "string",
"location": "query"
},
"upload_protocol": {
"location": "query",
"type": "string",
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\")."
},
"quotaUser": {
"location": "query",
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
"type": "string"
},
"uploadType": {
"location": "query",
"type": "string",
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\")."
},
"key": {
"location": "query",
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"type": "string"
},
"prettyPrint": {
"description": "Returns response with indentations and line breaks.",
"default": "true",
"type": "boolean",
"location": "query"
}
},
"basePath": "",
"description": "Allows developers to run automated tests for their mobile applications on Google infrastructure.",
"id": "testing:v1",
"version": "v1",
"resources": {
"projects": {
"resources": {
"testMatrices": {
"methods": {
"cancel": {
"id": "testing.projects.testMatrices.cancel",
"parameters": {
"projectId": {
"type": "string",
"location": "path",
"description": "Cloud project that owns the test.",
"required": true
},
"testMatrixId": {
"description": "Test matrix that will be canceled.",
"location": "path",
"required": true,
"type": "string"
}
},
"flatPath": "v1/projects/{projectId}/testMatrices/{testMatrixId}:cancel",
"response": {
"$ref": "CancelTestMatrixResponse"
},
"parameterOrder": [
"projectId",
"testMatrixId"
],
"path": "v1/projects/{projectId}/testMatrices/{testMatrixId}:cancel",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"httpMethod": "POST",
"description": "Cancels unfinished test executions in a test matrix. This call returns immediately and cancellation proceeds asynchronously. If the matrix is already final, this operation will have no effect. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to read project - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the Test Matrix does not exist"
},
"get": {
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only"
],
"path": "v1/projects/{projectId}/testMatrices/{testMatrixId}",
"parameters": {
"projectId": {
"location": "path",
"description": "Cloud project that owns the test matrix.",
"type": "string",
"required": true
},
"testMatrixId": {
"description": "Unique test matrix id which was assigned by the service.",
"required": true,
"location": "path",
"type": "string"
}
},
"id": "testing.projects.testMatrices.get",
"description": "Checks the status of a test matrix. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to read project - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the Test Matrix does not exist",
"parameterOrder": [
"projectId",
"testMatrixId"
],
"response": {
"$ref": "TestMatrix"
},
"httpMethod": "GET",
"flatPath": "v1/projects/{projectId}/testMatrices/{testMatrixId}"
},
"create": {
"httpMethod": "POST",
"parameterOrder": [
"projectId"
],
"id": "testing.projects.testMatrices.create",
"path": "v1/projects/{projectId}/testMatrices",
"request": {
"$ref": "TestMatrix"
},
"description": "Creates and runs a matrix of tests according to the given specifications. Unsupported environments will be returned in the state UNSUPPORTED. A test matrix is limited to use at most 2000 devices in parallel. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to write to project - INVALID_ARGUMENT - if the request is malformed or if the matrix tries to use too many simultaneous devices.",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"response": {
"$ref": "TestMatrix"
},
"parameters": {
"projectId": {
"type": "string",
"description": "The GCE project under which this job will run.",
"required": true,
"location": "path"
},
"requestId": {
"location": "query",
"description": "A string id used to detect duplicated requests. Ids are automatically scoped to a project, so users should ensure the ID is unique per-project. A UUID is recommended. Optional, but strongly recommended.",
"type": "string"
}
},
"flatPath": "v1/projects/{projectId}/testMatrices"
}
}
}
}
},
"applicationDetailService": {
"methods": {
"getApkDetails": {
"flatPath": "v1/applicationDetailService/getApkDetails",
"id": "testing.applicationDetailService.getApkDetails",
"parameterOrder": [],
"response": {
"$ref": "GetApkDetailsResponse"
},
"httpMethod": "POST",
"description": "Gets the details of an Android application APK.",
"parameters": {},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"request": {
"$ref": "FileReference"
},
"path": "v1/applicationDetailService/getApkDetails"
}
}
},
"testEnvironmentCatalog": {
"methods": {
"get": {
"flatPath": "v1/testEnvironmentCatalog/{environmentType}",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only"
],
"httpMethod": "GET",
"response": {
"$ref": "TestEnvironmentCatalog"
},
"path": "v1/testEnvironmentCatalog/{environmentType}",
"parameterOrder": [
"environmentType"
],
"parameters": {
"environmentType": {
"enumDescriptions": [
"Do not use. For proto versioning only.",
"A device running a version of the Android OS.",
"A device running a version of iOS.",
"A network configuration to use when running a test.",
"The software environment provided by TestExecutionService.",
"The IP blocks used by devices in the test environment."
],
"enum": [
"ENVIRONMENT_TYPE_UNSPECIFIED",
"ANDROID",
"IOS",
"NETWORK_CONFIGURATION",
"PROVIDED_SOFTWARE",
"DEVICE_IP_BLOCKS"
],
"description": "Required. The type of environment that should be listed.",
"type": "string",
"required": true,
"location": "path"
},
"projectId": {
"location": "query",
"type": "string",
"description": "For authorization, the cloud project requesting the TestEnvironmentCatalog."
}
},
"description": "Gets the catalog of supported test environments. May return any of the following canonical error codes: - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the environment type does not exist - INTERNAL - if an internal error occurred",
"id": "testing.testEnvironmentCatalog.get"
}
}
}
},
"protocol": "rest",
"ownerName": "Google",
"icons": {
"x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif"
},
"title": "Cloud Testing API",
"discoveryVersion": "v1",
"baseUrl": "https://testing.googleapis.com/",
"rootUrl": "https://testing.googleapis.com/",
"name": "testing",
"auth": {
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/cloud-platform": {
"description": "View and manage your data across Google Cloud Platform services"
},
"https://www.googleapis.com/auth/cloud-platform.read-only": {
"description": "View your data across Google Cloud Platform services"
}
}
}
},
"revision": "20201019"
}