{ "discoveryVersion": "v1", "documentationLink": "https://firebase.google.com/docs/test-lab/", "icons": { "x16": "http://www.google.com/images/icons/product/search-16.gif", "x32": "http://www.google.com/images/icons/product/search-32.gif" }, "resources": { "projects": { "resources": { "testMatrices": { "methods": { "create": { "id": "testing.projects.testMatrices.create", "path": "v1/projects/{projectId}/testMatrices", "flatPath": "v1/projects/{projectId}/testMatrices", "httpMethod": "POST", "parameters": { "projectId": { "description": "The GCE project under which this job will run.", "location": "path", "required": true, "type": "string" }, "requestId": { "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.", "location": "query", "type": "string" } }, "parameterOrder": [ "projectId" ], "request": { "$ref": "TestMatrix" }, "response": { "$ref": "TestMatrix" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "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. The returned matrix will not yet contain the executions that will be created for this matrix. Execution creation happens later on and will require a call to GetTestMatrix. 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." }, "get": { "id": "testing.projects.testMatrices.get", "path": "v1/projects/{projectId}/testMatrices/{testMatrixId}", "flatPath": "v1/projects/{projectId}/testMatrices/{testMatrixId}", "httpMethod": "GET", "parameters": { "projectId": { "description": "Cloud project that owns the test matrix.", "location": "path", "required": true, "type": "string" }, "testMatrixId": { "description": "Unique test matrix id which was assigned by the service.", "location": "path", "required": true, "type": "string" } }, "parameterOrder": [ "projectId", "testMatrixId" ], "response": { "$ref": "TestMatrix" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/cloud-platform.read-only" ], "description": "Checks the status of a test matrix and the executions once they are created. The test matrix will contain the list of test executions to run if and only if the resultStorage.toolResultsExecution fields have been populated. Note: Flaky test executions may be added to the matrix at a later stage. 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" }, "cancel": { "id": "testing.projects.testMatrices.cancel", "path": "v1/projects/{projectId}/testMatrices/{testMatrixId}:cancel", "flatPath": "v1/projects/{projectId}/testMatrices/{testMatrixId}:cancel", "httpMethod": "POST", "parameters": { "projectId": { "description": "Cloud project that owns the test.", "location": "path", "required": true, "type": "string" }, "testMatrixId": { "description": "Test matrix that will be canceled.", "location": "path", "required": true, "type": "string" } }, "parameterOrder": [ "projectId", "testMatrixId" ], "response": { "$ref": "CancelTestMatrixResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "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" } } }, "deviceSessions": { "methods": { "create": { "id": "testing.projects.deviceSessions.create", "path": "v1/{+parent}/deviceSessions", "flatPath": "v1/projects/{projectsId}/deviceSessions", "httpMethod": "POST", "parameters": { "parent": { "description": "Required. The Compute Engine project under which this device will be allocated. \"projects/{project_id}\"", "pattern": "^projects/[^/]+$", "location": "path", "required": true, "type": "string" } }, "parameterOrder": [ "parent" ], "request": { "$ref": "DeviceSession" }, "response": { "$ref": "DeviceSession" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "description": "POST /v1/projects/{project_id}/deviceSessions" }, "list": { "id": "testing.projects.deviceSessions.list", "path": "v1/{+parent}/deviceSessions", "flatPath": "v1/projects/{projectsId}/deviceSessions", "httpMethod": "GET", "parameters": { "parent": { "description": "Required. The name of the parent to request, e.g. \"projects/{project_id}\"", "pattern": "^projects/[^/]+$", "location": "path", "required": true, "type": "string" }, "pageSize": { "description": "Optional. The maximum number of DeviceSessions to return.", "location": "query", "type": "integer", "format": "int32" }, "pageToken": { "description": "Optional. A continuation token for paging.", "location": "query", "type": "string" }, "filter": { "description": "Optional. If specified, responses will be filtered by the given filter. Allowed fields are: session_state.", "location": "query", "type": "string" } }, "parameterOrder": [ "parent" ], "response": { "$ref": "ListDeviceSessionsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "description": "GET /v1/projects/{project_id}/deviceSessions Lists device Sessions owned by the project user." }, "get": { "id": "testing.projects.deviceSessions.get", "path": "v1/{+name}", "flatPath": "v1/projects/{projectsId}/deviceSessions/{deviceSessionsId}", "httpMethod": "GET", "parameters": { "name": { "description": "Required. Name of the DeviceSession, e.g. \"projects/{project_id}/deviceSessions/{session_id}\"", "pattern": "^projects/[^/]+/deviceSessions/[^/]+$", "location": "path", "required": true, "type": "string" } }, "parameterOrder": [ "name" ], "response": { "$ref": "DeviceSession" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "description": "GET /v1/projects/{project_id}/deviceSessions/{device_session_id} Return a DeviceSession, which documents the allocation status and whether the device is allocated. Clients making requests from this API must poll GetDeviceSession." }, "cancel": { "id": "testing.projects.deviceSessions.cancel", "path": "v1/{+name}:cancel", "flatPath": "v1/projects/{projectsId}/deviceSessions/{deviceSessionsId}:cancel", "httpMethod": "POST", "parameters": { "name": { "description": "Required. Name of the DeviceSession, e.g. \"projects/{project_id}/deviceSessions/{session_id}\"", "pattern": "^projects/[^/]+/deviceSessions/[^/]+$", "location": "path", "required": true, "type": "string" } }, "parameterOrder": [ "name" ], "request": { "$ref": "CancelDeviceSessionRequest" }, "response": { "$ref": "Empty" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "description": "POST /v1/projects/{project_id}/deviceSessions/{device_session_id}:cancel Changes the DeviceSession to state FINISHED and terminates all connections. Canceled sessions are not deleted and can be retrieved or listed by the user until they expire based on the 28 day deletion policy." }, "patch": { "id": "testing.projects.deviceSessions.patch", "path": "v1/{+name}", "flatPath": "v1/projects/{projectsId}/deviceSessions/{deviceSessionsId}", "httpMethod": "PATCH", "parameters": { "name": { "description": "Optional. Name of the DeviceSession, e.g. \"projects/{project_id}/deviceSessions/{session_id}\"", "pattern": "^projects/[^/]+/deviceSessions/[^/]+$", "location": "path", "required": true, "type": "string" }, "updateMask": { "description": "Required. The list of fields to update.", "location": "query", "type": "string", "format": "google-fieldmask" } }, "parameterOrder": [ "name" ], "request": { "$ref": "DeviceSession" }, "response": { "$ref": "DeviceSession" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "description": "PATCH /v1/projects/{projectId}/deviceSessions/deviceSessionId}:updateDeviceSession Updates the current device session to the fields described by the update_mask." } } } } }, "applicationDetailService": { "methods": { "getApkDetails": { "id": "testing.applicationDetailService.getApkDetails", "path": "v1/applicationDetailService/getApkDetails", "flatPath": "v1/applicationDetailService/getApkDetails", "httpMethod": "POST", "parameters": { "bundleLocation.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)", "location": "query", "type": "string" } }, "parameterOrder": [], "request": { "$ref": "FileReference" }, "response": { "$ref": "GetApkDetailsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ], "description": "Gets the details of an Android application APK." } } }, "testEnvironmentCatalog": { "methods": { "get": { "id": "testing.testEnvironmentCatalog.get", "path": "v1/testEnvironmentCatalog/{environmentType}", "flatPath": "v1/testEnvironmentCatalog/{environmentType}", "httpMethod": "GET", "parameters": { "environmentType": { "description": "Required. The type of environment that should be listed.", "location": "path", "required": true, "type": "string", "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" ] }, "projectId": { "description": "For authorization, the cloud project requesting the TestEnvironmentCatalog.", "location": "query", "type": "string" } }, "parameterOrder": [ "environmentType" ], "response": { "$ref": "TestEnvironmentCatalog" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/cloud-platform.read-only" ], "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" } } } }, "ownerName": "Google", "title": "Cloud Testing API", "ownerDomain": "google.com", "basePath": "", "name": "testing", "revision": "20240315", "baseUrl": "https://testing.googleapis.com/", "batchPath": "batch", "parameters": { "access_token": { "type": "string", "description": "OAuth access token.", "location": "query" }, "alt": { "type": "string", "description": "Data format for response.", "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" }, "callback": { "type": "string", "description": "JSONP", "location": "query" }, "fields": { "type": "string", "description": "Selector specifying which fields to include in a partial response.", "location": "query" }, "key": { "type": "string", "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.", "location": "query" }, "oauth_token": { "type": "string", "description": "OAuth 2.0 token for the current user.", "location": "query" }, "prettyPrint": { "type": "boolean", "description": "Returns response with indentations and line breaks.", "default": "true", "location": "query" }, "quotaUser": { "type": "string", "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.", "location": "query" }, "upload_protocol": { "type": "string", "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", "location": "query" }, "uploadType": { "type": "string", "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", "location": "query" }, "$.xgafv": { "type": "string", "description": "V1 error format.", "enum": [ "1", "2" ], "enumDescriptions": [ "v1 error format", "v2 error format" ], "location": "query" } }, "protocol": "rest", "id": "testing:v1", "servicePath": "", "version": "v1", "description": "Allows developers to run automated tests for their mobile applications on Google infrastructure.", "mtlsRootUrl": "https://testing.mtls.googleapis.com/", "kind": "discovery#restDescription", "fullyEncodeReservedExpansion": true, "schemas": { "TestMatrix": { "id": "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", "properties": { "testMatrixId": { "description": "Output only. Unique id set by the service.", "type": "string" }, "projectId": { "description": "The cloud project that owns the test matrix.", "type": "string" }, "clientInfo": { "description": "Information about the client which invoked the test.", "$ref": "ClientInfo" }, "testSpecification": { "description": "Required. How to run the test.", "$ref": "TestSpecification" }, "environmentMatrix": { "description": "Required. The devices the tests are being executed on.", "$ref": "EnvironmentMatrix" }, "testExecutions": { "description": "Output only. The list of test executions that the service creates for this matrix.", "type": "array", "items": { "$ref": "TestExecution" } }, "resultStorage": { "description": "Required. Where the results for the matrix are written.", "$ref": "ResultStorage" }, "state": { "description": "Output only. Indicates the current progress of the test matrix.", "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" ] }, "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.", "type": "string", "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.1 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 the user or in the manifest file. This can be caused by one 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", "The matrix expanded to contain too many executions.", "Not enough test quota to run the executions in this matrix.", "A required cloud service api is not activated. See: https://firebase.google.com/docs/test-lab/android/continuous#requirements", "There was an unknown permission issue running this test." ], "enumDeprecated": [ false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, true, false, false, false, false, false, false, false, false, false, false ], "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", "MATRIX_TOO_LARGE", "TEST_QUOTA_EXCEEDED", "SERVICE_NOT_ACTIVATED", "UNKNOWN_PERMISSION_ERROR" ] }, "extendedInvalidMatrixDetails": { "description": "Output only. Details about why a matrix was deemed invalid. If multiple checks can be safely performed, they will be reported but no assumptions should be made about the length of this list.", "readOnly": true, "type": "array", "items": { "$ref": "MatrixErrorDetail" } }, "flakyTestAttempts": { "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.", "type": "integer", "format": "int32" }, "outcomeSummary": { "description": "Output Only. The overall outcome of the test. Only set when the test matrix state is FINISHED.", "type": "string", "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 cases 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." ], "enum": [ "OUTCOME_SUMMARY_UNSPECIFIED", "SUCCESS", "FAILURE", "INCONCLUSIVE", "SKIPPED" ] }, "failFast": { "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.", "type": "boolean" } } }, "ClientInfo": { "id": "ClientInfo", "description": "Information about the client which invoked the test.", "type": "object", "properties": { "name": { "description": "Required. Client name, such as gcloud.", "type": "string" }, "clientInfoDetails": { "description": "The list of detailed information about client.", "type": "array", "items": { "$ref": "ClientInfoDetail" } } } }, "ClientInfoDetail": { "id": "ClientInfoDetail", "description": "Key-value pair of detailed information about the client which invoked the test. Examples: {'Version', '1.0'}, {'Release Track', 'BETA'}.", "type": "object", "properties": { "key": { "description": "Required. The key of detailed client information.", "type": "string" }, "value": { "description": "Required. The value of detailed client information.", "type": "string" } } }, "TestSpecification": { "id": "TestSpecification", "description": "A description of how to run the test.", "type": "object", "properties": { "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" }, "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" }, "androidInstrumentationTest": { "description": "An Android instrumentation test.", "$ref": "AndroidInstrumentationTest" }, "androidRoboTest": { "description": "An Android robo test.", "$ref": "AndroidRoboTest" }, "androidTestLoop": { "description": "An Android Application with a Test Loop.", "$ref": "AndroidTestLoop" }, "iosXcTest": { "description": "An iOS XCTest, via an .xctestrun file.", "$ref": "IosXcTest" }, "iosTestLoop": { "description": "An iOS application with a test loop.", "$ref": "IosTestLoop" }, "iosRoboTest": { "description": "An iOS Robo test.", "$ref": "IosRoboTest" }, "disableVideoRecording": { "description": "Disables video recording. May reduce test latency.", "type": "boolean" }, "disablePerformanceMetrics": { "description": "Disables performance metrics recording. May reduce test latency.", "type": "boolean" } } }, "TestSetup": { "id": "TestSetup", "description": "A description of how to set up the Android device prior to running the test.", "type": "object", "properties": { "filesToPush": { "description": "List of files to push to the device before starting the test.", "type": "array", "items": { "$ref": "DeviceFile" } }, "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" } }, "initialSetupApks": { "description": "Optional. Initial setup APKs to install before the app under test is installed. Currently capped at 100.", "type": "array", "items": { "$ref": "Apk" } }, "additionalApks": { "description": "APKs to install in addition to those being directly tested. These will be installed after the app under test. Currently capped at 100.", "type": "array", "items": { "$ref": "Apk" } }, "account": { "description": "The device will be logged in on this account for the duration of the test.", "$ref": "Account" }, "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" }, "environmentVariables": { "description": "Environment variables to set for the test (only applicable for instrumentation tests).", "type": "array", "items": { "$ref": "EnvironmentVariable" } }, "systrace": { "description": "Systrace configuration for the run. Deprecated: Systrace used Python 2 which was sunsetted on 2020-01-01. Systrace is no longer supported in the Cloud Testing API, and no Systrace file will be provided in the results.", "deprecated": true, "$ref": "SystraceSetup" }, "dontAutograntPermissions": { "description": "Whether to prevent all runtime permissions to be granted at app install", "type": "boolean" } } }, "DeviceFile": { "id": "DeviceFile", "description": "A single device file description.", "type": "object", "properties": { "obbFile": { "description": "A reference to an opaque binary blob file.", "$ref": "ObbFile" }, "regularFile": { "description": "A reference to a regular file.", "$ref": "RegularFile" } } }, "ObbFile": { "id": "ObbFile", "description": "An opaque binary blob file to install on the device before the test starts.", "type": "object", "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": { "description": "Required. Opaque Binary Blob (OBB) file(s) to install on the device.", "$ref": "FileReference" } } }, "FileReference": { "id": "FileReference", "description": "A reference to a file, used for user inputs.", "type": "object", "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" } } }, "RegularFile": { "id": "RegularFile", "description": "A file or directory to install on the device before the test starts.", "type": "object", "properties": { "content": { "description": "Required. The source file.", "$ref": "FileReference" }, "devicePath": { "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.", "type": "string" } } }, "Apk": { "id": "Apk", "description": "An Android package file to install.", "type": "object", "properties": { "location": { "description": "The path to an APK to be installed on the device before the test begins.", "$ref": "FileReference" }, "packageName": { "description": "The java package for the APK to be installed. Value is determined by examining the application's manifest.", "type": "string" } } }, "Account": { "id": "Account", "description": "Identifies an account and how to log into it.", "type": "object", "properties": { "googleAuto": { "description": "An automatic google login account.", "$ref": "GoogleAuto" } } }, "GoogleAuto": { "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.", "type": "object", "properties": {} }, "EnvironmentVariable": { "id": "EnvironmentVariable", "description": "A key-value pair passed as an environment variable to the test.", "type": "object", "properties": { "key": { "description": "Key for the environment variable.", "type": "string" }, "value": { "description": "Value for the environment variable.", "type": "string" } } }, "SystraceSetup": { "id": "SystraceSetup", "type": "object", "properties": { "durationSeconds": { "description": "Systrace duration in seconds. Should be between 1 and 30 seconds. 0 disables systrace.", "deprecated": true, "type": "integer", "format": "int32" } } }, "IosTestSetup": { "id": "IosTestSetup", "description": "A description of how to set up an iOS device prior to running the test.", "type": "object", "properties": { "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": { "description": "iOS apps to install in addition to those being directly tested.", "type": "array", "items": { "$ref": "FileReference" } }, "pushFiles": { "description": "List of files to push to the device before starting the test.", "type": "array", "items": { "$ref": "IosDeviceFile" } }, "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 (such as /private/var/mobile/Media) or within an accessible directory inside the app's filesystem (such as /Documents) by specifying the bundle ID.", "type": "array", "items": { "$ref": "IosDeviceFile" } } } }, "IosDeviceFile": { "id": "IosDeviceFile", "description": "A file or directory to install on the device before the test starts.", "type": "object", "properties": { "content": { "description": "The source file", "$ref": "FileReference" }, "bundleId": { "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.", "type": "string" }, "devicePath": { "description": "Location of the file on the device, inside the app's sandboxed filesystem", "type": "string" } } }, "AndroidInstrumentationTest": { "id": "AndroidInstrumentationTest", "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.", "type": "object", "properties": { "appApk": { "description": "The APK for the application under test.", "$ref": "FileReference" }, "appBundle": { "description": "A multi-apk app bundle for the application under test.", "$ref": "AppBundle" }, "testApk": { "description": "Required. The APK containing the test code to be executed.", "$ref": "FileReference" }, "appPackageId": { "description": "The java package for the application under test. The default value is determined by examining the application's manifest.", "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" }, "testRunnerClass": { "description": "The InstrumentationTestRunner class. The default value is determined by examining the application's manifest.", "type": "string" }, "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" } }, "orchestratorOption": { "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.1 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.1 or higher! ** Recommended.", "Run test without using orchestrator." ], "enum": [ "ORCHESTRATOR_OPTION_UNSPECIFIED", "USE_ORCHESTRATOR", "DO_NOT_USE_ORCHESTRATOR" ] }, "shardingOption": { "description": "The option to run tests in multiple shards in parallel.", "$ref": "ShardingOption" } } }, "AppBundle": { "id": "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.", "type": "object", "properties": { "bundleLocation": { "description": ".aab file representing the app bundle under test.", "$ref": "FileReference" } } }, "ShardingOption": { "id": "ShardingOption", "description": "Options for enabling sharding.", "type": "object", "properties": { "uniformSharding": { "description": "Uniformly shards test cases given a total number of shards.", "$ref": "UniformSharding" }, "manualSharding": { "description": "Shards test cases into the specified groups of packages, classes, and/or methods.", "$ref": "ManualSharding" }, "smartSharding": { "description": "Shards test based on previous test case timing records.", "$ref": "SmartSharding" } } }, "UniformSharding": { "id": "UniformSharding", "description": "Uniformly shards test cases given a total number of shards. For instrumentation tests, it will be translated to \"-e numShard\" and \"-e shardIndex\" AndroidJUnitRunner arguments. With uniform sharding enabled, specifying either of these sharding arguments via `environment_variables` is invalid. Based on the sharding mechanism AndroidJUnitRunner uses, there is no guarantee that test cases will be distributed uniformly across all shards.", "type": "object", "properties": { "numShards": { "description": "Required. The total number of shards to create. This must always be a positive number that is no greater than the total number of test cases. When you select one or more physical devices, the number of shards must be \u003c= 50. When you select one or more ARM virtual devices, it must be \u003c= 200. When you select only x86 virtual devices, it must be \u003c= 500.", "type": "integer", "format": "int32" } } }, "ManualSharding": { "id": "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.", "type": "object", "properties": { "testTargetsForShard": { "description": "Required. Group of packages, classes, and/or test methods to be run for each manually-created shard. You must specify at least one shard if this field is present. When you select one or more physical devices, the number of repeated test_targets_for_shard must be \u003c= 50. When you select one or more ARM virtual devices, it must be \u003c= 200. When you select only x86 virtual devices, it must be \u003c= 500.", "type": "array", "items": { "$ref": "TestTargetsForShard" } } } }, "TestTargetsForShard": { "id": "TestTargetsForShard", "description": "Test targets for a shard.", "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 test_targets must be greater than 0.", "type": "array", "items": { "type": "string" } } } }, "SmartSharding": { "id": "SmartSharding", "description": "Shards test based on previous test case timing records.", "type": "object", "properties": { "targetedShardDuration": { "description": "The amount of time tests within a shard should take. Default: 300 seconds (5 minutes). The minimum allowed: 120 seconds (2 minutes). The shard count is dynamically set based on time, up to the maximum shard limit (described below). To guarantee at least one test case for each shard, the number of shards will not exceed the number of test cases. Shard duration will be exceeded if: - The maximum shard limit is reached and there is more calculated test time remaining to allocate into shards. - Any individual test is estimated to be longer than the targeted shard duration. Shard duration is not guaranteed because smart sharding uses test case history and default durations which may not be accurate. The rules for finding the test case timing records are: - If the service has processed a test case in the last 30 days, the record of the latest successful test case will be used. - For new test cases, the average duration of other known test cases will be used. - If there are no previous test case timing records available, the default test case duration is 15 seconds. Because the actual shard duration can exceed the targeted shard duration, we recommend that you set the targeted value at least 5 minutes less than the maximum allowed test timeout (45 minutes for physical devices and 60 minutes for virtual), or that you use the custom test timeout value that you set. This approach avoids cancelling the shard before all tests can finish. Note that there is a limit for maximum number of shards. When you select one or more physical devices, the number of shards must be \u003c= 50. When you select one or more ARM virtual devices, it must be \u003c= 200. When you select only x86 virtual devices, it must be \u003c= 500. To guarantee at least one test case for per shard, the number of shards will not exceed the number of test cases. Each shard created counts toward daily test quota.", "type": "string", "format": "google-duration" } } }, "AndroidRoboTest": { "id": "AndroidRoboTest", "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.", "type": "object", "properties": { "appApk": { "description": "The APK for the application under test.", "$ref": "FileReference" }, "appBundle": { "description": "A multi-apk app bundle for the application under test.", "$ref": "AppBundle" }, "appPackageId": { "description": "The java package for the application under test. The default value is determined by examining the application's manifest.", "type": "string" }, "appInitialActivity": { "description": "The initial activity that should be used to start the app.", "type": "string" }, "maxDepth": { "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.", "deprecated": true, "type": "integer", "format": "int32" }, "maxSteps": { "description": "The max number of steps Robo can execute. Default is no limit.", "deprecated": true, "type": "integer", "format": "int32" }, "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" } }, "roboMode": { "description": "The mode in which Robo should run. Most clients should allow the server to populate this field automatically.", "type": "string", "enumDescriptions": [ "This means that the server should choose the mode. Recommended.", "Runs Robo in UIAutomator-only mode without app resigning", "Runs Robo in standard Espresso with UIAutomator fallback" ], "enum": [ "ROBO_MODE_UNSPECIFIED", "ROBO_VERSION_1", "ROBO_VERSION_2" ] }, "roboScript": { "description": "A JSON file with a sequence of actions Robo should perform as a prologue for the crawl.", "$ref": "FileReference" }, "startingIntents": { "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", "items": { "$ref": "RoboStartingIntent" } } } }, "RoboDirective": { "id": "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.", "type": "object", "properties": { "resourceName": { "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", "type": "string" }, "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" }, "actionType": { "description": "Required. The type of action that Robo should perform on the specified element.", "type": "string", "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." ], "enum": [ "ACTION_TYPE_UNSPECIFIED", "SINGLE_CLICK", "ENTER_TEXT", "IGNORE" ] } } }, "RoboStartingIntent": { "id": "RoboStartingIntent", "description": "Message for specifying the start activities to crawl.", "type": "object", "properties": { "launcherActivity": { "description": "An intent that starts the main launcher activity.", "$ref": "LauncherActivityIntent" }, "startActivity": { "description": "An intent that starts an activity with specific details.", "$ref": "StartActivityIntent" }, "noActivity": { "description": "Skips the starting activity", "$ref": "NoActivityIntent" }, "timeout": { "description": "Timeout in seconds for each intent.", "type": "string", "format": "google-duration" } } }, "LauncherActivityIntent": { "id": "LauncherActivityIntent", "description": "Specifies an intent that starts the main launcher activity.", "type": "object", "properties": {} }, "StartActivityIntent": { "id": "StartActivityIntent", "description": "A starting intent specified by an action, uri, and categories.", "type": "object", "properties": { "action": { "description": "Action name. Required for START_ACTIVITY.", "type": "string" }, "uri": { "description": "URI for the action.", "type": "string" }, "categories": { "description": "Intent categories to set on the intent.", "type": "array", "items": { "type": "string" } } } }, "NoActivityIntent": { "id": "NoActivityIntent", "description": "Skips the starting activity", "type": "object", "properties": {} }, "AndroidTestLoop": { "id": "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": { "description": "The APK for the application under test.", "$ref": "FileReference" }, "appBundle": { "description": "A multi-apk app bundle for the application under test.", "$ref": "AppBundle" }, "appPackageId": { "description": "The java package for the application under test. The default is determined by examining the application's manifest.", "type": "string" }, "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" } }, "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.", "type": "array", "items": { "type": "string" } } } }, "IosXcTest": { "id": "IosXcTest", "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.", "type": "object", "properties": { "testsZip": { "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.", "$ref": "FileReference" }, "xctestrun": { "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.", "$ref": "FileReference" }, "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" }, "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" } } }, "IosTestLoop": { "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", "properties": { "appIpa": { "description": "Required. The .ipa of the application to test.", "$ref": "FileReference" }, "scenarios": { "description": "The list of scenarios that should be run during the test. Defaults to the single scenario 0 if unspecified.", "type": "array", "items": { "type": "integer", "format": "int32" } }, "appBundleId": { "description": "Output only. The bundle id for the application under test.", "type": "string" } } }, "IosRoboTest": { "id": "IosRoboTest", "description": "A test that explores an iOS application on an iOS device.", "type": "object", "properties": { "appIpa": { "description": "Required. The ipa stored at this file should be used to run the test.", "$ref": "FileReference" }, "appBundleId": { "description": "The bundle ID for the app-under-test. This is determined by examining the application's \"Info.plist\" file.", "type": "string" }, "roboScript": { "description": "An optional Roboscript to customize the crawl. See https://firebase.google.com/docs/test-lab/android/robo-scripts-reference for more information about Roboscripts.", "$ref": "FileReference" } } }, "EnvironmentMatrix": { "id": "EnvironmentMatrix", "description": "The matrix of environments in which the test is to be executed.", "type": "object", "properties": { "androidMatrix": { "description": "A matrix of Android devices.", "$ref": "AndroidMatrix" }, "androidDeviceList": { "description": "A list of Android devices; the test will be run only on the specified devices.", "$ref": "AndroidDeviceList" }, "iosDeviceList": { "description": "A list of iOS devices.", "$ref": "IosDeviceList" } } }, "AndroidMatrix": { "id": "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.", "type": "object", "properties": { "androidModelIds": { "description": "Required. The ids of the set of Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.", "type": "array", "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" } }, "locales": { "description": "Required. The set of locales the test device will enable for testing. Use the TestEnvironmentDiscoveryService to get supported options.", "type": "array", "items": { "type": "string" } }, "orientations": { "description": "Required. The set of orientations to test with. Use the TestEnvironmentDiscoveryService to get supported options.", "type": "array", "items": { "type": "string" } } } }, "AndroidDeviceList": { "id": "AndroidDeviceList", "description": "A list of Android device configurations in which the test is to be executed.", "type": "object", "properties": { "androidDevices": { "description": "Required. A list of Android devices.", "type": "array", "items": { "$ref": "AndroidDevice" } } } }, "AndroidDevice": { "id": "AndroidDevice", "description": "A single Android device.", "type": "object", "properties": { "androidModelId": { "description": "Required. The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.", "type": "string" }, "androidVersionId": { "description": "Required. The id of the Android OS version to be used. Use the TestEnvironmentDiscoveryService to get supported options.", "type": "string" }, "locale": { "description": "Required. The locale the test device used for testing. Use the TestEnvironmentDiscoveryService to get supported options.", "type": "string" }, "orientation": { "description": "Required. How the device is oriented during the test. Use the TestEnvironmentDiscoveryService to get supported options.", "type": "string" } } }, "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.", "type": "array", "items": { "$ref": "IosDevice" } } } }, "IosDevice": { "id": "IosDevice", "description": "A single iOS device.", "type": "object", "properties": { "iosModelId": { "description": "Required. The id of the iOS device to be used. Use the TestEnvironmentDiscoveryService to get supported options.", "type": "string" }, "iosVersionId": { "description": "Required. The id of the iOS major software version to be used. Use the TestEnvironmentDiscoveryService to get supported options.", "type": "string" }, "locale": { "description": "Required. The locale the test device used for testing. Use the TestEnvironmentDiscoveryService to get supported options.", "type": "string" }, "orientation": { "description": "Required. How the device is oriented during the test. Use the TestEnvironmentDiscoveryService to get supported options.", "type": "string" } } }, "TestExecution": { "id": "TestExecution", "description": "A single test executed in a single environment.", "type": "object", "properties": { "id": { "description": "Output only. Unique id set by the service.", "type": "string" }, "matrixId": { "description": "Output only. Id of the containing TestMatrix.", "type": "string" }, "projectId": { "description": "Output only. The cloud project that owns the test execution.", "type": "string" }, "testSpecification": { "description": "Output only. How to run the test.", "$ref": "TestSpecification" }, "shard": { "description": "Output only. Details about the shard.", "$ref": "Shard" }, "environment": { "description": "Output only. How the host machine(s) are configured.", "$ref": "Environment" }, "state": { "description": "Output only. Indicates the current progress of the test execution (e.g., FINISHED).", "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" ] }, "toolResultsStep": { "description": "Output only. Where the results for this execution are written.", "$ref": "ToolResultsStep" }, "timestamp": { "description": "Output only. The time this test execution was initially created.", "type": "string", "format": "google-datetime" }, "testDetails": { "description": "Output only. Additional details about the running test.", "$ref": "TestDetails" } } }, "Shard": { "id": "Shard", "description": "Output only. Details about the shard.", "type": "object", "properties": { "shardIndex": { "description": "Output only. The index of the shard among all the shards.", "readOnly": true, "type": "integer", "format": "int32" }, "numShards": { "description": "Output only. The total number of shards.", "readOnly": true, "type": "integer", "format": "int32" }, "testTargetsForShard": { "description": "Output only. Test targets for each shard. Only set for manual sharding.", "readOnly": true, "$ref": "TestTargetsForShard" }, "estimatedShardDuration": { "description": "Output only. The estimated shard duration based on previous test case timing records, if available.", "readOnly": true, "type": "string", "format": "google-duration" } } }, "Environment": { "id": "Environment", "description": "The environment in which the test is run.", "type": "object", "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" } } }, "ToolResultsStep": { "id": "ToolResultsStep", "description": "Represents a tool results step resource. This has the results of a TestExecution.", "type": "object", "properties": { "projectId": { "description": "Output only. The cloud project that owns the tool results step.", "type": "string" }, "historyId": { "description": "Output only. A tool results history ID.", "type": "string" }, "executionId": { "description": "Output only. A tool results execution ID.", "type": "string" }, "stepId": { "description": "Output only. A tool results step ID.", "type": "string" } } }, "TestDetails": { "id": "TestDetails", "description": "Additional details about the progress of the running test.", "type": "object", "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": { "description": "Output only. If the TestState is ERROR, then this string will contain human-readable details about the error.", "type": "string" } } }, "ResultStorage": { "id": "ResultStorage", "description": "Locations where the results of running the test are stored.", "type": "object", "properties": { "googleCloudStorage": { "description": "Required.", "$ref": "GoogleCloudStorage" }, "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" }, "toolResultsExecution": { "description": "Output only. The tool results execution that results are written to.", "$ref": "ToolResultsExecution" }, "resultsUrl": { "description": "Output only. URL to the results in the Firebase Web Console.", "type": "string" } } }, "GoogleCloudStorage": { "id": "GoogleCloudStorage", "description": "A storage location within Google cloud storage (GCS).", "type": "object", "properties": { "gcsPath": { "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.", "type": "string" } } }, "ToolResultsHistory": { "id": "ToolResultsHistory", "description": "Represents a tool results history resource.", "type": "object", "properties": { "projectId": { "description": "Required. The cloud project that owns the tool results history.", "type": "string" }, "historyId": { "description": "Required. A tool results history ID.", "type": "string" } } }, "ToolResultsExecution": { "id": "ToolResultsExecution", "description": "Represents a tool results execution resource. This has the results of a TestMatrix.", "type": "object", "properties": { "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" }, "executionId": { "description": "Output only. A tool results execution ID.", "type": "string" } } }, "MatrixErrorDetail": { "id": "MatrixErrorDetail", "description": "Describes a single error or issue with a matrix.", "type": "object", "properties": { "reason": { "description": "Output only. The reason for the error. This is a constant value in UPPER_SNAKE_CASE that identifies the cause of the error.", "readOnly": true, "type": "string" }, "message": { "description": "Output only. A human-readable message about how the error in the TestMatrix. Expands on the `reason` field with additional details and possible options to fix the issue.", "readOnly": true, "type": "string" } } }, "CancelTestMatrixResponse": { "id": "CancelTestMatrixResponse", "description": "Response containing the current state of the specified test matrix.", "type": "object", "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", "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" ] } } }, "GetApkDetailsResponse": { "id": "GetApkDetailsResponse", "description": "Response containing the details of the specified Android application.", "type": "object", "properties": { "apkDetail": { "description": "Details of the Android App.", "$ref": "ApkDetail" } } }, "ApkDetail": { "id": "ApkDetail", "description": "Android application details based on application manifest and archive contents.", "type": "object", "properties": { "apkManifest": { "$ref": "ApkManifest" } } }, "ApkManifest": { "id": "ApkManifest", "description": "An Android app manifest. See http://developer.android.com/guide/topics/manifest/manifest-intro.html", "type": "object", "properties": { "packageName": { "description": "Full Java-style package name for this application, e.g. \"com.example.foo\".", "type": "string" }, "minSdkVersion": { "description": "Minimum API level required for the application to run.", "type": "integer", "format": "int32" }, "maxSdkVersion": { "description": "Maximum API level on which the application is designed to run.", "type": "integer", "format": "int32" }, "targetSdkVersion": { "description": "Specifies the API Level on which the application is designed to run.", "type": "integer", "format": "int32" }, "applicationLabel": { "description": "User-readable name for the application.", "type": "string" }, "intentFilters": { "type": "array", "items": { "$ref": "IntentFilter" } }, "usesPermission": { "description": "Permissions declared to be used by the application", "type": "array", "items": { "type": "string" } }, "versionCode": { "description": "Version number used internally by the app.", "type": "string", "format": "int64" }, "versionName": { "description": "Version number shown to users.", "type": "string" }, "metadata": { "description": "Meta-data tags defined in the manifest.", "type": "array", "items": { "$ref": "Metadata" } }, "usesFeature": { "description": "Feature usage tags defined in the manifest.", "type": "array", "items": { "$ref": "UsesFeature" } }, "services": { "description": "Services contained in the tag.", "type": "array", "items": { "$ref": "Service" } } } }, "IntentFilter": { "id": "IntentFilter", "description": "The section of an tag. https://developer.android.com/guide/topics/manifest/intent-filter-element.html", "type": "object", "properties": { "actionNames": { "description": "The android:name value of the tag.", "type": "array", "items": { "type": "string" } }, "categoryNames": { "description": "The android:name value of the tag.", "type": "array", "items": { "type": "string" } }, "mimeType": { "description": "The android:mimeType value of the tag.", "type": "string" } } }, "Metadata": { "id": "Metadata", "description": "A tag within a manifest. https://developer.android.com/guide/topics/manifest/meta-data-element.html", "type": "object", "properties": { "name": { "description": "The android:name value", "type": "string" }, "value": { "description": "The android:value value", "type": "string" } } }, "UsesFeature": { "id": "UsesFeature", "description": "A tag within a manifest. https://developer.android.com/guide/topics/manifest/uses-feature-element.html", "type": "object", "properties": { "name": { "description": "The android:name value", "type": "string" }, "isRequired": { "description": "The android:required value", "type": "boolean" } } }, "Service": { "id": "Service", "description": "The section of an tag. https://developer.android.com/guide/topics/manifest/service-element", "type": "object", "properties": { "name": { "description": "The android:name value", "type": "string" }, "intentFilter": { "description": "Intent filters in the service", "type": "array", "items": { "$ref": "IntentFilter" } } } }, "DeviceSession": { "id": "DeviceSession", "description": "Protobuf message describing the device message, used from several RPCs.", "type": "object", "properties": { "name": { "description": "Optional. Name of the DeviceSession, e.g. \"projects/{project_id}/deviceSessions/{session_id}\"", "type": "string" }, "displayName": { "description": "Output only. The title of the DeviceSession to be presented in the UI.", "readOnly": true, "type": "string" }, "state": { "description": "Output only. Current state of the DeviceSession.", "readOnly": true, "type": "string", "enumDescriptions": [ "Default value. This value is unused.", "Initial state of a session request. The session is being validated for correctness and a device is not yet requested.", "The session has been validated and is in the queue for a device.", "The session has been granted and the device is accepting connections.", "The session duration exceeded the device’s reservation time period and timed out automatically.", "The user is finished with the session and it was canceled by the user while the request was still getting allocated or after allocation and during device usage period.", "Unable to complete the session because the device was unavailable and it failed to allocate through the scheduler. For example, a device not in the catalog was requested or the request expired in the allocation queue.", "Unable to complete the session for an internal reason, such as an infrastructure failure." ], "enum": [ "SESSION_STATE_UNSPECIFIED", "REQUESTED", "PENDING", "ACTIVE", "EXPIRED", "FINISHED", "UNAVAILABLE", "ERROR" ] }, "stateHistories": { "description": "Output only. The historical state transitions of the session_state message including the current session state.", "readOnly": true, "type": "array", "items": { "$ref": "SessionStateEvent" } }, "ttl": { "description": "Optional. The amount of time that a device will be initially allocated for. This can eventually be extended with the UpdateDeviceSession RPC. Default: 15 minutes.", "type": "string", "format": "google-duration" }, "expireTime": { "description": "Optional. If the device is still in use at this time, any connections will be ended and the SessionState will transition from ACTIVE to FINISHED.", "type": "string", "format": "google-datetime" }, "inactivityTimeout": { "description": "Output only. The interval of time that this device must be interacted with before it transitions from ACTIVE to TIMEOUT_INACTIVITY.", "readOnly": true, "type": "string", "format": "google-duration" }, "createTime": { "description": "Output only. The time that the Session was created.", "readOnly": true, "type": "string", "format": "google-datetime" }, "activeStartTime": { "description": "Output only. The timestamp that the session first became ACTIVE.", "readOnly": true, "type": "string", "format": "google-datetime" }, "androidDevice": { "description": "Required. The requested device", "$ref": "AndroidDevice" } } }, "SessionStateEvent": { "id": "SessionStateEvent", "description": "A message encapsulating a series of Session states and the time that the DeviceSession first entered those states.", "type": "object", "properties": { "sessionState": { "description": "Output only. The session_state tracked by this event", "readOnly": true, "type": "string", "enumDescriptions": [ "Default value. This value is unused.", "Initial state of a session request. The session is being validated for correctness and a device is not yet requested.", "The session has been validated and is in the queue for a device.", "The session has been granted and the device is accepting connections.", "The session duration exceeded the device’s reservation time period and timed out automatically.", "The user is finished with the session and it was canceled by the user while the request was still getting allocated or after allocation and during device usage period.", "Unable to complete the session because the device was unavailable and it failed to allocate through the scheduler. For example, a device not in the catalog was requested or the request expired in the allocation queue.", "Unable to complete the session for an internal reason, such as an infrastructure failure." ], "enum": [ "SESSION_STATE_UNSPECIFIED", "REQUESTED", "PENDING", "ACTIVE", "EXPIRED", "FINISHED", "UNAVAILABLE", "ERROR" ] }, "eventTime": { "description": "Output only. The time that the session_state first encountered that state.", "readOnly": true, "type": "string", "format": "google-datetime" }, "stateMessage": { "description": "Output only. A human-readable message to explain the state.", "readOnly": true, "type": "string" } } }, "ListDeviceSessionsResponse": { "id": "ListDeviceSessionsResponse", "description": "A list of device sessions.", "type": "object", "properties": { "deviceSessions": { "description": "The sessions matching the specified filter in the given cloud project.", "type": "array", "items": { "$ref": "DeviceSession" } }, "nextPageToken": { "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", "type": "string" } } }, "CancelDeviceSessionRequest": { "id": "CancelDeviceSessionRequest", "description": "The request object for cancelling a Device Session.", "type": "object", "properties": {} }, "Empty": { "id": "Empty", "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "type": "object", "properties": {} }, "TestEnvironmentCatalog": { "id": "TestEnvironmentCatalog", "description": "A description of a test environment.", "type": "object", "properties": { "androidDeviceCatalog": { "description": "Supported Android devices.", "$ref": "AndroidDeviceCatalog" }, "iosDeviceCatalog": { "description": "Supported iOS devices.", "$ref": "IosDeviceCatalog" }, "networkConfigurationCatalog": { "description": "Supported network configurations.", "$ref": "NetworkConfigurationCatalog" }, "softwareCatalog": { "description": "The software test environment provided by TestExecutionService.", "$ref": "ProvidedSoftwareCatalog" }, "deviceIpBlockCatalog": { "description": "The IP blocks used by devices in the test environment.", "$ref": "DeviceIpBlockCatalog" } } }, "AndroidDeviceCatalog": { "id": "AndroidDeviceCatalog", "description": "The currently supported Android devices.", "type": "object", "properties": { "models": { "description": "The set of supported Android device models.", "type": "array", "items": { "$ref": "AndroidModel" } }, "versions": { "description": "The set of supported Android OS versions.", "type": "array", "items": { "$ref": "AndroidVersion" } }, "runtimeConfiguration": { "description": "The set of supported runtime configurations.", "$ref": "AndroidRuntimeConfiguration" } } }, "AndroidModel": { "id": "AndroidModel", "description": "A description of an Android device tests may be run on.", "type": "object", "properties": { "id": { "description": "The unique opaque id for this model. Use this for invoking the TestExecutionService.", "type": "string" }, "name": { "description": "The human-readable marketing name for this device model. Examples: \"Nexus 5\", \"Galaxy S5\".", "type": "string" }, "manufacturer": { "description": "The manufacturer of this device.", "type": "string" }, "brand": { "description": "The company that this device is branded with. Example: \"Google\", \"Samsung\".", "type": "string" }, "codename": { "description": "The name of the industrial design. This corresponds to android.os.Build.DEVICE.", "type": "string" }, "form": { "description": "Whether this device is virtual or physical.", "type": "string", "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." ], "enum": [ "DEVICE_FORM_UNSPECIFIED", "VIRTUAL", "PHYSICAL", "EMULATOR" ] }, "formFactor": { "description": "Whether this device is a phone, tablet, wearable, etc.", "type": "string", "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." ], "enum": [ "DEVICE_FORM_FACTOR_UNSPECIFIED", "PHONE", "TABLET", "WEARABLE" ] }, "perVersionInfo": { "description": "Version-specific information of an Android model.", "type": "array", "items": { "$ref": "PerAndroidVersionInfo" } }, "screenX": { "description": "Screen size in the horizontal (X) dimension measured in pixels.", "type": "integer", "format": "int32" }, "screenY": { "description": "Screen size in the vertical (Y) dimension measured in pixels.", "type": "integer", "format": "int32" }, "screenDensity": { "description": "Screen density in DPI. This corresponds to ro.sf.lcd_density", "type": "integer", "format": "int32" }, "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" }, "supportedVersionIds": { "description": "The set of Android versions this device supports.", "type": "array", "items": { "type": "string" } }, "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" } }, "tags": { "description": "Tags for this dimension. Examples: \"default\", \"preview\", \"deprecated\".", "type": "array", "items": { "type": "string" } }, "thumbnailUrl": { "description": "URL of a thumbnail image (photo) of the device.", "type": "string" } } }, "PerAndroidVersionInfo": { "id": "PerAndroidVersionInfo", "description": "A version-specific information of an Android model.", "type": "object", "properties": { "versionId": { "description": "An Android version.", "type": "string" }, "deviceCapacity": { "description": "The number of online devices for an Android version.", "type": "string", "enumDescriptions": [ "The value of device capacity is unknown or unset.", "Devices that are high in capacity (The lab has a large number of these devices). These devices are generally suggested for running a large number of simultaneous tests (e.g. more than 100 tests). Please note that high capacity devices do not guarantee short wait times due to several factors: 1. Traffic (how heavily they are used at any given moment) 2. High capacity devices are prioritized for certain usages, which may cause user tests to be slower than selecting other similar device types.", "Devices that are medium in capacity (The lab has a decent number of these devices, though not as many as high capacity devices). These devices are suitable for fewer test runs (e.g. fewer than 100 tests) and only for low shard counts (e.g. less than 10 shards).", "Devices that are low in capacity (The lab has a small number of these devices). These devices may be used if users need to test on this specific device model and version. Please note that due to low capacity, the tests may take much longer to finish, especially if a large number of tests are invoked at once. These devices are not suitable for test sharding.", "Devices that are completely missing from the lab. These devices are unavailable either temporarily or permanently and should not be requested. If the device is also marked as deprecated, this state is very likely permanent." ], "enum": [ "DEVICE_CAPACITY_UNSPECIFIED", "DEVICE_CAPACITY_HIGH", "DEVICE_CAPACITY_MEDIUM", "DEVICE_CAPACITY_LOW", "DEVICE_CAPACITY_NONE" ] }, "interactiveDeviceAvailabilityEstimate": { "description": "Output only. The estimated wait time for a single interactive device session using Direct Access.", "readOnly": true, "type": "string", "format": "google-duration" }, "directAccessVersionInfo": { "description": "Output only. Identifies supported clients for DirectAccess for this Android version.", "readOnly": true, "$ref": "DirectAccessVersionInfo" } } }, "DirectAccessVersionInfo": { "id": "DirectAccessVersionInfo", "description": "Denotes whether Direct Access is supported, and by which client versions. DirectAccessService is currently available as a preview to select developers. You can register today on behalf of you and your team at https://developer.android.com/studio/preview/android-device-streaming", "type": "object", "properties": { "directAccessSupported": { "description": "Whether direct access is supported at all. Clients are expected to filter down the device list to only android models and versions which support Direct Access when that is the user intent.", "type": "boolean" }, "minimumAndroidStudioVersion": { "description": "Output only. Indicates client-device compatibility, where a device is known to work only with certain workarounds implemented in the Android Studio client. Expected format \"major.minor.micro.patch\", e.g. \"5921.22.2211.8881706\".", "type": "string" } } }, "AndroidVersion": { "id": "AndroidVersion", "description": "A version of the Android OS.", "type": "object", "properties": { "id": { "description": "An opaque id for this Android version. Use this id to invoke the TestExecutionService.", "type": "string" }, "versionString": { "description": "A string representing this version of the Android OS. Examples: \"4.3\", \"4.4\".", "type": "string" }, "apiLevel": { "description": "The API level for this Android version. Examples: 18, 19.", "type": "integer", "format": "int32" }, "codeName": { "description": "The code name for this Android version. Examples: \"JellyBean\", \"KitKat\".", "type": "string" }, "releaseDate": { "description": "The date this Android version became available in the market.", "$ref": "Date" }, "distribution": { "description": "Market share for this version.", "$ref": "Distribution" }, "tags": { "description": "Tags for this dimension. Examples: \"default\", \"preview\", \"deprecated\".", "type": "array", "items": { "type": "string" } } } }, "Date": { "id": "Date", "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, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", "type": "object", "properties": { "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" }, "month": { "description": "Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.", "type": "integer", "format": "int32" }, "day": { "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.", "type": "integer", "format": "int32" } } }, "Distribution": { "id": "Distribution", "description": "Data about the relative number of devices running a given configuration of the Android platform.", "type": "object", "properties": { "measurementTime": { "description": "Output only. The time this distribution was measured.", "type": "string", "format": "google-datetime" }, "marketShare": { "description": "Output only. The estimated fraction (0-1) of the total market with this configuration.", "type": "number", "format": "double" } } }, "AndroidRuntimeConfiguration": { "id": "AndroidRuntimeConfiguration", "description": "Android 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" } } } }, "Locale": { "id": "Locale", "description": "A location/region designation for language.", "type": "object", "properties": { "id": { "description": "The id for this locale. Example: \"en_US\".", "type": "string" }, "name": { "description": "A human-friendly name for this language/locale. Example: \"English\".", "type": "string" }, "region": { "description": "A human-friendly string representing the region for this locale. Example: \"United States\". Not present for every locale.", "type": "string" }, "tags": { "description": "Tags for this dimension. Example: \"default\".", "type": "array", "items": { "type": "string" } } } }, "Orientation": { "id": "Orientation", "description": "Screen orientation of the device.", "type": "object", "properties": { "id": { "description": "The id for this orientation. Example: \"portrait\".", "type": "string" }, "name": { "description": "A human-friendly name for this orientation. Example: \"portrait\".", "type": "string" }, "tags": { "description": "Tags for this dimension. Example: \"default\".", "type": "array", "items": { "type": "string" } } } }, "IosDeviceCatalog": { "id": "IosDeviceCatalog", "description": "The currently supported iOS devices.", "type": "object", "properties": { "models": { "description": "The set of supported iOS device models.", "type": "array", "items": { "$ref": "IosModel" } }, "versions": { "description": "The set of supported iOS software versions.", "type": "array", "items": { "$ref": "IosVersion" } }, "xcodeVersions": { "description": "The set of supported Xcode versions.", "type": "array", "items": { "$ref": "XcodeVersion" } }, "runtimeConfiguration": { "description": "The set of supported runtime configurations.", "$ref": "IosRuntimeConfiguration" } } }, "IosModel": { "id": "IosModel", "description": "A description of an iOS device tests may be run on.", "type": "object", "properties": { "id": { "description": "The unique opaque id for this model. Use this for invoking the TestExecutionService.", "type": "string" }, "name": { "description": "The human-readable name for this device model. Examples: \"iPhone 4s\", \"iPad Mini 2\".", "type": "string" }, "supportedVersionIds": { "description": "The set of iOS major software versions this device supports.", "type": "array", "items": { "type": "string" } }, "tags": { "description": "Tags for this dimension. Examples: \"default\", \"preview\", \"deprecated\".", "type": "array", "items": { "type": "string" } }, "deviceCapabilities": { "description": "Device capabilities. Copied from https://developer.apple.com/library/archive/documentation/DeviceInformation/Reference/iOSDeviceCompatibility/DeviceCompatibilityMatrix/DeviceCompatibilityMatrix.html", "type": "array", "items": { "type": "string" } }, "screenX": { "description": "Screen size in the horizontal (X) dimension measured in pixels.", "type": "integer", "format": "int32" }, "screenY": { "description": "Screen size in the vertical (Y) dimension measured in pixels.", "type": "integer", "format": "int32" }, "screenDensity": { "description": "Screen density in DPI.", "type": "integer", "format": "int32" }, "formFactor": { "description": "Whether this device is a phone, tablet, wearable, etc.", "type": "string", "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." ], "enum": [ "DEVICE_FORM_FACTOR_UNSPECIFIED", "PHONE", "TABLET", "WEARABLE" ] }, "perVersionInfo": { "description": "Version-specific information of an iOS model.", "type": "array", "items": { "$ref": "PerIosVersionInfo" } } } }, "PerIosVersionInfo": { "id": "PerIosVersionInfo", "description": "A version-specific information of an iOS model.", "type": "object", "properties": { "versionId": { "description": "An iOS version.", "type": "string" }, "deviceCapacity": { "description": "The number of online devices for an iOS version.", "type": "string", "enumDescriptions": [ "The value of device capacity is unknown or unset.", "Devices that are high in capacity (The lab has a large number of these devices). These devices are generally suggested for running a large number of simultaneous tests (e.g. more than 100 tests). Please note that high capacity devices do not guarantee short wait times due to several factors: 1. Traffic (how heavily they are used at any given moment) 2. High capacity devices are prioritized for certain usages, which may cause user tests to be slower than selecting other similar device types.", "Devices that are medium in capacity (The lab has a decent number of these devices, though not as many as high capacity devices). These devices are suitable for fewer test runs (e.g. fewer than 100 tests) and only for low shard counts (e.g. less than 10 shards).", "Devices that are low in capacity (The lab has a small number of these devices). These devices may be used if users need to test on this specific device model and version. Please note that due to low capacity, the tests may take much longer to finish, especially if a large number of tests are invoked at once. These devices are not suitable for test sharding.", "Devices that are completely missing from the lab. These devices are unavailable either temporarily or permanently and should not be requested. If the device is also marked as deprecated, this state is very likely permanent." ], "enum": [ "DEVICE_CAPACITY_UNSPECIFIED", "DEVICE_CAPACITY_HIGH", "DEVICE_CAPACITY_MEDIUM", "DEVICE_CAPACITY_LOW", "DEVICE_CAPACITY_NONE" ] } } }, "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": { "description": "An integer representing the major iOS version. Examples: \"8\", \"9\".", "type": "integer", "format": "int32" }, "minorVersion": { "description": "An integer representing the minor iOS version. Examples: \"1\", \"2\".", "type": "integer", "format": "int32" }, "tags": { "description": "Tags for this dimension. Examples: \"default\", \"preview\", \"deprecated\".", "type": "array", "items": { "type": "string" } }, "supportedXcodeVersionIds": { "description": "The available Xcode versions for this version.", "type": "array", "items": { "type": "string" } } } }, "XcodeVersion": { "id": "XcodeVersion", "description": "An Xcode version that an iOS version is compatible with.", "type": "object", "properties": { "version": { "description": "The id for this version. Example: \"9.2\".", "type": "string" }, "tags": { "description": "Tags for this Xcode version. Example: \"default\".", "type": "array", "items": { "type": "string" } } } }, "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" } } } }, "NetworkConfigurationCatalog": { "id": "NetworkConfigurationCatalog", "type": "object", "properties": { "configurations": { "type": "array", "items": { "$ref": "NetworkConfiguration" } } } }, "NetworkConfiguration": { "id": "NetworkConfiguration", "type": "object", "properties": { "id": { "description": "The unique opaque id for this network traffic configuration.", "type": "string" }, "upRule": { "description": "The emulation rule applying to the upload traffic.", "$ref": "TrafficRule" }, "downRule": { "description": "The emulation rule applying to the download traffic.", "$ref": "TrafficRule" } } }, "TrafficRule": { "id": "TrafficRule", "description": "Network emulation parameters.", "type": "object", "properties": { "delay": { "description": "Packet delay, must be \u003e= 0.", "type": "string", "format": "google-duration" }, "packetLossRatio": { "description": "Packet loss ratio (0.0 - 1.0).", "type": "number", "format": "float" }, "packetDuplicationRatio": { "description": "Packet duplication ratio (0.0 - 1.0).", "type": "number", "format": "float" }, "bandwidth": { "description": "Bandwidth in kbits/second.", "type": "number", "format": "float" }, "burst": { "description": "Burst size in kbits.", "type": "number", "format": "float" } } }, "ProvidedSoftwareCatalog": { "id": "ProvidedSoftwareCatalog", "description": "The currently provided software environment on the devices under test.", "type": "object", "properties": { "orchestratorVersion": { "description": "Deprecated: Use AndroidX Test Orchestrator going forward. A string representing the current version of Android Test Orchestrator that is used in the environment. The package is available at https://maven.google.com/web/index.html#com.android.support.test:orchestrator.", "deprecated": true, "type": "string" }, "androidxOrchestratorVersion": { "description": "A string representing the current version of AndroidX Test Orchestrator that is used in the environment. The package is available at https://maven.google.com/web/index.html#androidx.test:orchestrator.", "type": "string" } } }, "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" } } } }, "DeviceIpBlock": { "id": "DeviceIpBlock", "description": "A single device IP block", "type": "object", "properties": { "block": { "description": "An IP address block in CIDR notation eg: 34.68.194.64/29", "type": "string" }, "form": { "description": "Whether this block is used by physical or virtual devices", "type": "string", "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." ], "enum": [ "DEVICE_FORM_UNSPECIFIED", "VIRTUAL", "PHYSICAL", "EMULATOR" ] }, "addedDate": { "description": "The date this block was added to Firebase Test Lab", "$ref": "Date" } } } }, "auth": { "oauth2": { "scopes": { "https://www.googleapis.com/auth/cloud-platform": { "description": "See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account." }, "https://www.googleapis.com/auth/cloud-platform.read-only": { "description": "View your data across Google Cloud services and see the email address of your Google Account" } } } }, "rootUrl": "https://testing.googleapis.com/" }