Service Client: Google::Devtools::Testing::V1::TestExecution::TestExecutionServiceClient
Client stub representing the remote TestExecutionService gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to devtools.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Devtools::Testing::V1::TestExecution - Compiled Protocol Buffers messages for google/devtools/testing/v1/test_execution.proto
SYNOPSIS
use Google::Devtools::Testing::V1::TestExecution;
my $msg = Google::Devtools::Testing::V1::TestExecution::TestMatrix->new({
test_matrix_id => $test_matrix_id,
project_id => $project_id,
client_info => $client_info,
test_specification => $test_specification,
});
# Read or update a field
my $val = $msg->test_matrix_id();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Devtools::Testing::V1::TestExecution::TestMatrix->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/devtools/testing/v1/test_execution.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Devtools::Testing::V1::TestExecution::TestMatrix
TestMatrix captures all details about a test. It contains the environment configuration, test specification, test executions and overall state and outcome.
Inherits from Protobuf::Message.
Accessors
$msg->test_matrix_id()/$msg->test_matrix_id($value)Type:
StringOutput only. Unique id set by the service.
$msg->project_id()/$msg->project_id($value)Type:
StringThe cloud project that owns the test matrix.
$msg->client_info()/$msg->client_info($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::ClientInfo)Information about the client which invoked the test.
$msg->test_specification()/$msg->test_specification($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::TestSpecification)Required. How to run the test.
$msg->environment_matrix()/$msg->environment_matrix($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::EnvironmentMatrix)Required. The devices the tests are being executed on.
$msg->test_executions()/$msg->test_executions($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::TestExecution)Output only. The list of test executions that the service creates for this matrix.
$msg->result_storage()/$msg->result_storage($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::ResultStorage)Required. Where the results for the matrix are written.
$msg->state()/$msg->state($value)Type:
Enum(Google::Devtools::Testing::V1::TestState)Output only. Indicates the current progress of the test matrix.
$msg->timestamp()/$msg->timestamp($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time this test matrix was initially created.
$msg->invalid_matrix_details()/$msg->invalid_matrix_details($value)Type:
Enum(Google::Devtools::Testing::V1::InvalidMatrixDetails)Output only. Describes why the matrix is considered invalid. Only useful for matrices in the INVALID state.
$msg->extended_invalid_matrix_details()/$msg->extended_invalid_matrix_details($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::MatrixErrorDetail)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.
$msg->flaky_test_attempts()/$msg->flaky_test_attempts($value)Type:
Int32The 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.
$msg->outcome_summary()/$msg->outcome_summary($value)Type:
Enum(Google::Devtools::Testing::V1::OutcomeSummary)Output Only. The overall outcome of the test. Only set when the test matrix state is FINISHED.
$msg->fail_fast()/$msg->fail_fast($value)Type:
BoolIf 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.
Google::Devtools::Testing::V1::TestExecution::MatrixErrorDetail
Describes a single error or issue with a matrix.
Inherits from Protobuf::Message.
Accessors
$msg->reason()/$msg->reason($value)Type:
StringOutput only. The reason for the error. This is a constant value in UPPER_SNAKE_CASE that identifies the cause of the error.
$msg->message()/$msg->message($value)Type:
StringOutput 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.
Google::Devtools::Testing::V1::TestExecution::TestExecution
A single test executed in a single environment.
Inherits from Protobuf::Message.
Accessors
$msg->id()/$msg->id($value)Type:
StringOutput only. Unique id set by the service.
$msg->matrix_id()/$msg->matrix_id($value)Type:
StringOutput only. Id of the containing TestMatrix.
$msg->project_id()/$msg->project_id($value)Type:
StringOutput only. The cloud project that owns the test execution.
$msg->test_specification()/$msg->test_specification($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::TestSpecification)Output only. How to run the test.
$msg->shard()/$msg->shard($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::Shard)Output only. Details about the shard.
$msg->environment()/$msg->environment($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::Environment)Output only. How the host machine(s) are configured.
$msg->state()/$msg->state($value)Type:
Enum(Google::Devtools::Testing::V1::TestState)Output only. Indicates the current progress of the test execution (e.g., FINISHED).
$msg->tool_results_step()/$msg->tool_results_step($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::ToolResultsStep)Output only. Where the results for this execution are written.
$msg->timestamp()/$msg->timestamp($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time this test execution was initially created.
$msg->test_details()/$msg->test_details($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::TestDetails)Output only. Additional details about the running test.
Google::Devtools::Testing::V1::TestExecution::TestSpecification
A description of how to run the test.
Inherits from Protobuf::Message.
Accessors
$msg->test_timeout()/$msg->test_timeout($value)Type:
Message(Google::Protobuf::Duration::Duration)Max time a test execution is allowed to run before it is automatically cancelled. The default value is 5 min.
$msg->test_setup()/$msg->test_setup($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::TestSetup)Test setup requirements for Android e.g. files to install, bootstrap scripts.
$msg->ios_test_setup()/$msg->ios_test_setup($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::IosTestSetup)Test setup requirements for iOS.
$msg->android_instrumentation_test()/$msg->android_instrumentation_test($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::AndroidInstrumentationTest)An Android instrumentation test.
$msg->android_robo_test()/$msg->android_robo_test($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::AndroidRoboTest)An Android robo test.
$msg->android_test_loop()/$msg->android_test_loop($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::AndroidTestLoop)An Android Application with a Test Loop.
$msg->ios_xc_test()/$msg->ios_xc_test($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::IosXcTest)An iOS XCTest, via an .xctestrun file.
$msg->ios_test_loop()/$msg->ios_test_loop($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::IosTestLoop)An iOS application with a test loop.
$msg->ios_robo_test()/$msg->ios_robo_test($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::IosRoboTest)An iOS Robo test.
$msg->disable_video_recording()/$msg->disable_video_recording($value)Type:
BoolDisables video recording. May reduce test latency.
$msg->disable_performance_metrics()/$msg->disable_performance_metrics($value)Type:
BoolDisables performance metrics recording. May reduce test latency.
Google::Devtools::Testing::V1::TestExecution::SystraceSetup
Inherits from Protobuf::Message.
Accessors
$msg->duration_seconds()/$msg->duration_seconds($value)Type:
Int32Systrace duration in seconds. Should be between 1 and 30 seconds. 0 disables systrace.
Google::Devtools::Testing::V1::TestExecution::TestSetup
A description of how to set up the Android device prior to running the test.
Inherits from Protobuf::Message.
Accessors
$msg->files_to_push()/$msg->files_to_push($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::DeviceFile)List of files to push to the device before starting the test.
$msg->directories_to_pull()/$msg->directories_to_pull($value)Type:
StringList 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.
$msg->initial_setup_apks()/$msg->initial_setup_apks($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::Apk)Optional. Initial setup APKs to install before the app under test is installed. Currently capped at 100.
$msg->additional_apks()/$msg->additional_apks($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::Apk)APKs to install in addition to those being directly tested. These will be installed after the app under test. Currently capped at 100.
$msg->account()/$msg->account($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::Account)The device will be logged in on this account for the duration of the test.
$msg->network_profile()/$msg->network_profile($value)Type:
StringThe 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.
$msg->environment_variables()/$msg->environment_variables($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::EnvironmentVariable)Environment variables to set for the test (only applicable for instrumentation tests).
$msg->systrace()/$msg->systrace($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::SystraceSetup)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.
$msg->dont_autogrant_permissions()/$msg->dont_autogrant_permissions($value)Type:
BoolWhether to prevent all runtime permissions to be granted at app install
Google::Devtools::Testing::V1::TestExecution::IosTestSetup
A description of how to set up an iOS device prior to running the test.
Inherits from Protobuf::Message.
Accessors
$msg->network_profile()/$msg->network_profile($value)Type:
StringThe 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.
$msg->additional_ipas()/$msg->additional_ipas($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::FileReference)iOS apps to install in addition to those being directly tested.
$msg->push_files()/$msg->push_files($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::IosDeviceFile)List of files to push to the device before starting the test.
$msg->pull_directories()/$msg->pull_directories($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::IosDeviceFile)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.
Google::Devtools::Testing::V1::TestExecution::EnvironmentVariable
A key-value pair passed as an environment variable to the test.
Inherits from Protobuf::Message.
Accessors
$msg->key()/$msg->key($value)Type:
StringKey for the environment variable.
$msg->value()/$msg->value($value)Type:
StringValue for the environment variable.
Google::Devtools::Testing::V1::TestExecution::Account
Identifies an account and how to log into it.
Inherits from Protobuf::Message.
Accessors
$msg->google_auto()/$msg->google_auto($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::GoogleAuto)An automatic google login account.
Google::Devtools::Testing::V1::TestExecution::GoogleAuto
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.
Inherits from Protobuf::Message.
Google::Devtools::Testing::V1::TestExecution::Apk
An Android package file to install.
Inherits from Protobuf::Message.
Accessors
$msg->location()/$msg->location($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::FileReference)The path to an APK to be installed on the device before the test begins.
$msg->package_name()/$msg->package_name($value)Type:
StringThe java package for the APK to be installed. Value is determined by examining the application's manifest.
Google::Devtools::Testing::V1::TestExecution::AppBundle
An Android App Bundle file format, containing a BundleConfig.pb file, a base module directory, zero or more dynamic feature module directories. <p>See https://developer.android.com/guide/app-bundle/build for guidance on building App Bundles.
Inherits from Protobuf::Message.
Accessors
$msg->bundle_location()/$msg->bundle_location($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::FileReference).aab file representing the app bundle under test.
Google::Devtools::Testing::V1::TestExecution::DeviceFile
A single device file description.
Inherits from Protobuf::Message.
Accessors
$msg->obb_file()/$msg->obb_file($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::ObbFile)A reference to an opaque binary blob file.
$msg->regular_file()/$msg->regular_file($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::RegularFile)A reference to a regular file.
Google::Devtools::Testing::V1::TestExecution::ObbFile
An opaque binary blob file to install on the device before the test starts.
Inherits from Protobuf::Message.
Accessors
$msg->obb_file_name()/$msg->obb_file_name($value)Type:
StringRequired. 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 \<shared-storage\>/Android/obb/\<package-name\>/ on the device.
$msg->obb()/$msg->obb($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::FileReference)Required. Opaque Binary Blob (OBB) file(s) to install on the device.
Google::Devtools::Testing::V1::TestExecution::RegularFile
A file or directory to install on the device before the test starts.
Inherits from Protobuf::Message.
Accessors
$msg->content()/$msg->content($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::FileReference)Required. The source file.
$msg->device_path()/$msg->device_path($value)Type:
StringRequired. 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: <p>${EXTERNAL_STORAGE}, /sdcard, or /storage</p> <p>${ANDROID_DATA}/local/tmp, or /data/local/tmp</p> <p>Specifying a path outside of these directory trees is invalid.
<p> 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.
<p> It is strongly advised to use the <a href= "http://developer.android.com/reference/android/os/Environment.html"> Environment AP/a in app and test code to access files on the device in a portable way.
Google::Devtools::Testing::V1::TestExecution::IosDeviceFile
A file or directory to install on the device before the test starts.
Inherits from Protobuf::Message.
Accessors
$msg->content()/$msg->content($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::FileReference)The source file
$msg->bundle_id()/$msg->bundle_id($value)Type:
StringThe 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.
$msg->device_path()/$msg->device_path($value)Type:
StringLocation of the file on the device, inside the app's sandboxed filesystem
Google::Devtools::Testing::V1::TestExecution::AndroidTestLoop
A test of an Android Application with a Test Loop. The intent \<intent-name\> will be implicitly added, since Games is the only user of this api, for the time being.
Inherits from Protobuf::Message.
Accessors
$msg->app_apk()/$msg->app_apk($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::FileReference)The APK for the application under test.
$msg->app_bundle()/$msg->app_bundle($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::AppBundle)A multi-apk app bundle for the application under test.
$msg->app_package_id()/$msg->app_package_id($value)Type:
StringThe java package for the application under test. The default is determined by examining the application's manifest.
$msg->scenarios()/$msg->scenarios($value)Type:
Int32The list of scenarios that should be run during the test. The default is all test loops, derived from the application's manifest.
$msg->scenario_labels()/$msg->scenario_labels($value)Type:
StringThe 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.
Google::Devtools::Testing::V1::TestExecution::IosXcTest
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.
Inherits from Protobuf::Message.
Accessors
$msg->tests_zip()/$msg->tests_zip($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::FileReference)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.
$msg->xctestrun()/$msg->xctestrun($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::FileReference)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.
$msg->xcode_version()/$msg->xcode_version($value)Type:
StringThe 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.
$msg->app_bundle_id()/$msg->app_bundle_id($value)Type:
StringOutput only. The bundle id for the application under test.
$msg->test_special_entitlements()/$msg->test_special_entitlements($value)Type:
BoolThe 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.
Google::Devtools::Testing::V1::TestExecution::IosTestLoop
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.
Inherits from Protobuf::Message.
Accessors
$msg->app_ipa()/$msg->app_ipa($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::FileReference)Required. The .ipa of the application to test.
$msg->scenarios()/$msg->scenarios($value)Type:
Int32The list of scenarios that should be run during the test. Defaults to the single scenario 0 if unspecified.
$msg->app_bundle_id()/$msg->app_bundle_id($value)Type:
StringOutput only. The bundle id for the application under test.
Google::Devtools::Testing::V1::TestExecution::IosRoboTest
A test that explores an iOS application on an iOS device.
Inherits from Protobuf::Message.
Accessors
$msg->app_ipa()/$msg->app_ipa($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::FileReference)Required. The ipa stored at this file should be used to run the test.
$msg->app_bundle_id()/$msg->app_bundle_id($value)Type:
StringThe bundle ID for the app-under-test. This is determined by examining the application's "Info.plist" file.
$msg->robo_script()/$msg->robo_script($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::FileReference)An optional Roboscript to customize the crawl. See https://firebase.google.com/docs/test-lab/android/robo-scripts-reference for more information about Roboscripts. The maximum allowed file size of the roboscript is 10MiB.
Google::Devtools::Testing::V1::TestExecution::AndroidInstrumentationTest
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 <https://developer.android.com/training/testing/fundamentals> for more information on types of Android tests.
Inherits from Protobuf::Message.
Accessors
$msg->app_apk()/$msg->app_apk($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::FileReference)The APK for the application under test.
$msg->app_bundle()/$msg->app_bundle($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::AppBundle)A multi-apk app bundle for the application under test.
$msg->test_apk()/$msg->test_apk($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::FileReference)Required. The APK containing the test code to be executed.
$msg->app_package_id()/$msg->app_package_id($value)Type:
StringThe java package for the application under test. The default value is determined by examining the application's manifest.
$msg->test_package_id()/$msg->test_package_id($value)Type:
StringThe java package for the test to be executed. The default value is determined by examining the application's manifest.
$msg->test_runner_class()/$msg->test_runner_class($value)Type:
StringThe InstrumentationTestRunner class. The default value is determined by examining the application's manifest.
$msg->test_targets()/$msg->test_targets($value)Type:
StringEach 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.
$msg->orchestrator_option()/$msg->orchestrator_option($value)Type:
Enum(Google::Devtools::Testing::V1::OrchestratorOption)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 testSee <https://developer.android.com/training/testing/junit-runner.html#using-android-test-orchestrator> for more information about Android Test Orchestrator.
If not set, the test will be run without the orchestrator.
$msg->sharding_option()/$msg->sharding_option($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::ShardingOption)The option to run tests in multiple shards in parallel.
Google::Devtools::Testing::V1::TestExecution::AndroidRoboTest
A test of an android application that explores the application on a virtual or physical Android Device, finding culprits and crashes as it goes.
Inherits from Protobuf::Message.
Accessors
$msg->app_apk()/$msg->app_apk($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::FileReference)The APK for the application under test.
$msg->app_bundle()/$msg->app_bundle($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::AppBundle)A multi-apk app bundle for the application under test.
$msg->app_package_id()/$msg->app_package_id($value)Type:
StringThe java package for the application under test. The default value is determined by examining the application's manifest.
$msg->app_initial_activity()/$msg->app_initial_activity($value)Type:
StringThe initial activity that should be used to start the app.
$msg->max_depth()/$msg->max_depth($value)Type:
Int32The 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.
$msg->max_steps()/$msg->max_steps($value)Type:
Int32The max number of steps Robo can execute. Default is no limit.
$msg->robo_directives()/$msg->robo_directives($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::RoboDirective)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.
$msg->robo_mode()/$msg->robo_mode($value)Type:
Enum(Google::Devtools::Testing::V1::RoboMode)The mode in which Robo should run. Most clients should allow the server to populate this field automatically.
$msg->robo_script()/$msg->robo_script($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::FileReference)A JSON file with a sequence of actions Robo should perform as a prologue for the crawl.
$msg->starting_intents()/$msg->starting_intents($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::RoboStartingIntent)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).
Google::Devtools::Testing::V1::TestExecution::RoboDirective
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.
Inherits from Protobuf::Message.
Accessors
$msg->resource_name()/$msg->resource_name($value)Type:
StringRequired. 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
$msg->input_text()/$msg->input_text($value)Type:
StringThe 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.
$msg->action_type()/$msg->action_type($value)Type:
Enum(Google::Devtools::Testing::V1::RoboActionType)Required. The type of action that Robo should perform on the specified element.
Google::Devtools::Testing::V1::TestExecution::RoboStartingIntent
Message for specifying the start activities to crawl.
Inherits from Protobuf::Message.
Accessors
$msg->launcher_activity()/$msg->launcher_activity($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::LauncherActivityIntent)An intent that starts the main launcher activity.
$msg->start_activity()/$msg->start_activity($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::StartActivityIntent)An intent that starts an activity with specific details.
$msg->no_activity()/$msg->no_activity($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::NoActivityIntent)Skips the starting activity
$msg->timeout()/$msg->timeout($value)Type:
Message(Google::Protobuf::Duration::Duration)Timeout in seconds for each intent.
Google::Devtools::Testing::V1::TestExecution::LauncherActivityIntent
Specifies an intent that starts the main launcher activity.
Inherits from Protobuf::Message.
Google::Devtools::Testing::V1::TestExecution::StartActivityIntent
A starting intent specified by an action, uri, and categories.
Inherits from Protobuf::Message.
Accessors
$msg->action()/$msg->action($value)Type:
StringAction name. Required for START_ACTIVITY.
$msg->uri()/$msg->uri($value)Type:
StringURI for the action.
$msg->categories()/$msg->categories($value)Type:
StringIntent categories to set on the intent.
Google::Devtools::Testing::V1::TestExecution::NoActivityIntent
Skips the starting activity
Inherits from Protobuf::Message.
Google::Devtools::Testing::V1::TestExecution::EnvironmentMatrix
The matrix of environments in which the test is to be executed.
Inherits from Protobuf::Message.
Accessors
$msg->android_matrix()/$msg->android_matrix($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::AndroidMatrix)A matrix of Android devices.
$msg->android_device_list()/$msg->android_device_list($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::AndroidDeviceList)A list of Android devices; the test will be run only on the specified devices.
$msg->ios_device_list()/$msg->ios_device_list($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::IosDeviceList)A list of iOS devices.
Google::Devtools::Testing::V1::TestExecution::AndroidDeviceList
A list of Android device configurations in which the test is to be executed.
Inherits from Protobuf::Message.
Accessors
$msg->android_devices()/$msg->android_devices($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::AndroidDevice)Required. A list of Android devices.
Google::Devtools::Testing::V1::TestExecution::IosDeviceList
A list of iOS device configurations in which the test is to be executed.
Inherits from Protobuf::Message.
Accessors
$msg->ios_devices()/$msg->ios_devices($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::IosDevice)Required. A list of iOS devices.
Google::Devtools::Testing::V1::TestExecution::AndroidMatrix
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.
Inherits from Protobuf::Message.
Accessors
$msg->android_model_ids()/$msg->android_model_ids($value)Type:
StringRequired. The ids of the set of Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
$msg->android_version_ids()/$msg->android_version_ids($value)Type:
StringRequired. The ids of the set of Android OS version to be used. Use the TestEnvironmentDiscoveryService to get supported options.
$msg->locales()/$msg->locales($value)Type:
StringRequired. The set of locales the test device will enable for testing. Use the TestEnvironmentDiscoveryService to get supported options.
$msg->orientations()/$msg->orientations($value)Type:
StringRequired. The set of orientations to test with. Use the TestEnvironmentDiscoveryService to get supported options.
Google::Devtools::Testing::V1::TestExecution::ClientInfo
Information about the client which invoked the test.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Client name, such as gcloud.
$msg->client_info_details()/$msg->client_info_details($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::ClientInfoDetail)The list of detailed information about client.
Google::Devtools::Testing::V1::TestExecution::ClientInfoDetail
Key-value pair of detailed information about the client which invoked the test. Examples: {'Version', '1.0'}, {'Release Track', 'BETA'}.
Inherits from Protobuf::Message.
Accessors
$msg->key()/$msg->key($value)Type:
StringRequired. The key of detailed client information.
$msg->value()/$msg->value($value)Type:
StringRequired. The value of detailed client information.
Google::Devtools::Testing::V1::TestExecution::ResultStorage
Locations where the results of running the test are stored.
Inherits from Protobuf::Message.
Accessors
$msg->google_cloud_storage()/$msg->google_cloud_storage($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::GoogleCloudStorage)Required.
$msg->tool_results_history()/$msg->tool_results_history($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::ToolResultsHistory)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.
$msg->tool_results_execution()/$msg->tool_results_execution($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::ToolResultsExecution)Output only. The tool results execution that results are written to.
$msg->results_url()/$msg->results_url($value)Type:
StringOutput only. URL to the results in the Firebase Web Console.
Google::Devtools::Testing::V1::TestExecution::ToolResultsHistory
Represents a tool results history resource.
Inherits from Protobuf::Message.
Accessors
$msg->project_id()/$msg->project_id($value)Type:
StringRequired. The cloud project that owns the tool results history.
$msg->history_id()/$msg->history_id($value)Type:
StringRequired. A tool results history ID.
Google::Devtools::Testing::V1::TestExecution::ToolResultsExecution
Represents a tool results execution resource.
This has the results of a TestMatrix.
Inherits from Protobuf::Message.
Accessors
$msg->project_id()/$msg->project_id($value)Type:
StringOutput only. The cloud project that owns the tool results execution.
$msg->history_id()/$msg->history_id($value)Type:
StringOutput only. A tool results history ID.
$msg->execution_id()/$msg->execution_id($value)Type:
StringOutput only. A tool results execution ID.
Google::Devtools::Testing::V1::TestExecution::ToolResultsStep
Represents a tool results step resource.
This has the results of a TestExecution.
Inherits from Protobuf::Message.
Accessors
$msg->project_id()/$msg->project_id($value)Type:
StringOutput only. The cloud project that owns the tool results step.
$msg->history_id()/$msg->history_id($value)Type:
StringOutput only. A tool results history ID.
$msg->execution_id()/$msg->execution_id($value)Type:
StringOutput only. A tool results execution ID.
$msg->step_id()/$msg->step_id($value)Type:
StringOutput only. A tool results step ID.
Google::Devtools::Testing::V1::TestExecution::GoogleCloudStorage
A storage location within Google cloud storage (GCS).
Inherits from Protobuf::Message.
Accessors
$msg->gcs_path()/$msg->gcs_path($value)Type:
StringRequired. 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.
Google::Devtools::Testing::V1::TestExecution::FileReference
A reference to a file, used for user inputs.
Inherits from Protobuf::Message.
Accessors
$msg->gcs_path()/$msg->gcs_path($value)Type:
StringA 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)
Google::Devtools::Testing::V1::TestExecution::Environment
The environment in which the test is run.
Inherits from Protobuf::Message.
Accessors
$msg->android_device()/$msg->android_device($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::AndroidDevice)An Android device which must be used with an Android test.
$msg->ios_device()/$msg->ios_device($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::IosDevice)An iOS device which must be used with an iOS test.
Google::Devtools::Testing::V1::TestExecution::AndroidDevice
A single Android device.
Inherits from Protobuf::Message.
Accessors
$msg->android_model_id()/$msg->android_model_id($value)Type:
StringRequired. The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
$msg->android_version_id()/$msg->android_version_id($value)Type:
StringRequired. The id of the Android OS version to be used. Use the TestEnvironmentDiscoveryService to get supported options.
$msg->locale()/$msg->locale($value)Type:
StringRequired. The locale the test device used for testing. Use the TestEnvironmentDiscoveryService to get supported options.
$msg->orientation()/$msg->orientation($value)Type:
StringRequired. How the device is oriented during the test. Use the TestEnvironmentDiscoveryService to get supported options.
Google::Devtools::Testing::V1::TestExecution::IosDevice
A single iOS device.
Inherits from Protobuf::Message.
Accessors
$msg->ios_model_id()/$msg->ios_model_id($value)Type:
StringRequired. The id of the iOS device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
$msg->ios_version_id()/$msg->ios_version_id($value)Type:
StringRequired. The id of the iOS major software version to be used. Use the TestEnvironmentDiscoveryService to get supported options.
$msg->locale()/$msg->locale($value)Type:
StringRequired. The locale the test device used for testing. Use the TestEnvironmentDiscoveryService to get supported options.
$msg->orientation()/$msg->orientation($value)Type:
StringRequired. How the device is oriented during the test. Use the TestEnvironmentDiscoveryService to get supported options.
Google::Devtools::Testing::V1::TestExecution::TestDetails
Additional details about the progress of the running test.
Inherits from Protobuf::Message.
Accessors
$msg->progress_messages()/$msg->progress_messages($value)Type:
StringOutput 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.
$msg->error_message()/$msg->error_message($value)Type:
StringOutput only. If the TestState is ERROR, then this string will contain human-readable details about the error.
Google::Devtools::Testing::V1::TestExecution::InvalidRequestDetail
Details behind an invalid request.
Inherits from Protobuf::Message.
Accessors
$msg->reason()/$msg->reason($value)Type:
Enum(Google::Devtools::Testing::V1::InvalidRequestDetail::Reason)The reason behind the error.
Enum: InvalidRequestDetail::Reason
REASON_UNSPECIFIED=>0REQUEST_INVALID=>1RESOURCE_TOO_BIG=>2RESOURCE_NOT_FOUND=>3UNSUPPORTED=>4NOT_IMPLEMENTED=>5RESULT_STORAGE_PERMISSION_DENIED=>6
Google::Devtools::Testing::V1::TestExecution::ShardingOption
Options for enabling sharding.
Inherits from Protobuf::Message.
Accessors
$msg->uniform_sharding()/$msg->uniform_sharding($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::UniformSharding)Uniformly shards test cases given a total number of shards.
$msg->manual_sharding()/$msg->manual_sharding($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::ManualSharding)Shards test cases into the specified groups of packages, classes, and/or methods.
$msg->smart_sharding()/$msg->smart_sharding($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::SmartSharding)Shards test based on previous test case timing records.
Google::Devtools::Testing::V1::TestExecution::UniformSharding
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.
Inherits from Protobuf::Message.
Accessors
$msg->num_shards()/$msg->num_shards($value)Type:
Int32Required. 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 <= 50. When you select one or more ARM virtual devices, it must be <= 200. When you select only x86 virtual devices, it must be <= 500.
Google::Devtools::Testing::V1::TestExecution::ManualSharding
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.
Inherits from Protobuf::Message.
Accessors
$msg->test_targets_for_shard()/$msg->test_targets_for_shard($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::TestTargetsForShard)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 <= 50. When you select one or more ARM virtual devices, it must be <= 200. When you select only x86 virtual devices, it must be <= 500.
Google::Devtools::Testing::V1::TestExecution::TestTargetsForShard
Test targets for a shard.
Inherits from Protobuf::Message.
Accessors
$msg->test_targets()/$msg->test_targets($value)Type:
StringGroup 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.
Google::Devtools::Testing::V1::TestExecution::SmartSharding
Shards test based on previous test case timing records.
Inherits from Protobuf::Message.
Accessors
$msg->targeted_shard_duration()/$msg->targeted_shard_duration($value)Type:
Message(Google::Protobuf::Duration::Duration)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 <= 50. When you select one or more ARM virtual devices, it must be <= 200. When you select only x86 virtual devices, it must be <= 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.
Google::Devtools::Testing::V1::TestExecution::Shard
Output only. Details about the shard.
Inherits from Protobuf::Message.
Accessors
$msg->shard_index()/$msg->shard_index($value)Type:
Int32Output only. The index of the shard among all the shards.
$msg->num_shards()/$msg->num_shards($value)Type:
Int32Output only. The total number of shards.
$msg->test_targets_for_shard()/$msg->test_targets_for_shard($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::TestTargetsForShard)Output only. Test targets for each shard. Only set for manual sharding.
$msg->estimated_shard_duration()/$msg->estimated_shard_duration($value)Type:
Message(Google::Protobuf::Duration::Duration)Output only. The estimated shard duration based on previous test case timing records, if available.
Google::Devtools::Testing::V1::TestExecution::CreateTestMatrixRequest
Request to submit a matrix of tests for execution.
Inherits from Protobuf::Message.
Accessors
$msg->project_id()/$msg->project_id($value)Type:
StringThe GCE project under which this job will run.
$msg->test_matrix()/$msg->test_matrix($value)Type:
Message(Google::Devtools::Testing::V1::TestExecution::TestMatrix)The matrix of tests that the user wants to run.
$msg->request_id()/$msg->request_id($value)Type:
StringA 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.
Google::Devtools::Testing::V1::TestExecution::GetTestMatrixRequest
Request to get the Test Matrix with the given id.
Inherits from Protobuf::Message.
Accessors
$msg->project_id()/$msg->project_id($value)Type:
StringCloud project that owns the test matrix.
$msg->test_matrix_id()/$msg->test_matrix_id($value)Type:
StringUnique test matrix id which was assigned by the service.
Google::Devtools::Testing::V1::TestExecution::CancelTestMatrixRequest
Request to stop running all of the tests in the specified matrix.
Inherits from Protobuf::Message.
Accessors
$msg->project_id()/$msg->project_id($value)Type:
StringCloud project that owns the test.
$msg->test_matrix_id()/$msg->test_matrix_id($value)Type:
StringTest matrix that will be canceled.
Google::Devtools::Testing::V1::TestExecution::CancelTestMatrixResponse
Response containing the current state of the specified test matrix.
Inherits from Protobuf::Message.
Accessors
$msg->test_state()/$msg->test_state($value)Type:
Enum(Google::Devtools::Testing::V1::TestState)The current rolled-up state of the test matrix. If this state is already final, then the cancelation request will have no effect.
SEE ALSO
Protobuf, Protobuf::Message, Google::Devtools::Testing::V1::TestExecution::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.