blob: d5ddb7f310af3887ee6cbfbc65341f57f4d65ab8 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="testing_v1.html">Cloud Testing API</a> . <a href="testing_v1.projects.html">projects</a> . <a href="testing_v1.projects.testMatrices.html">testMatrices</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#cancel">cancel(projectId, testMatrixId, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070079<p class="firstline">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</p>
80<p class="toc_element">
81 <code><a href="#close">close()</a></code></p>
82<p class="firstline">Close httplib2 connections.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070083<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070084 <code><a href="#create">create(projectId, body=None, requestId=None, x__xgafv=None)</a></code></p>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070085<p class="firstline">Creates and runs a matrix of tests according to the given specifications. Unsupported environments will be returned in the state UNSUPPORTED. A test matrix is limited to use at most 2000 devices in parallel. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to write to project - INVALID_ARGUMENT - if the request is malformed or if the matrix tries to use too many simultaneous devices.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070086<p class="toc_element">
87 <code><a href="#get">get(projectId, testMatrixId, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070088<p class="firstline">Checks the status of a test matrix. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to read project - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the Test Matrix does not exist</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070089<h3>Method Details</h3>
90<div class="method">
91 <code class="details" id="cancel">cancel(projectId, testMatrixId, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070092 <pre>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
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070093
94Args:
95 projectId: string, Cloud project that owns the test. (required)
96 testMatrixId: string, Test matrix that will be canceled. (required)
97 x__xgafv: string, V1 error format.
98 Allowed values
99 1 - v1 error format
100 2 - v2 error format
101
102Returns:
103 An object of the form:
104
105 { # Response containing the current state of the specified test matrix.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700106 &quot;testState&quot;: &quot;A String&quot;, # The current rolled-up state of the test matrix. If this state is already final, then the cancelation request will have no effect.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700107 }</pre>
108</div>
109
110<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700111 <code class="details" id="close">close()</code>
112 <pre>Close httplib2 connections.</pre>
113</div>
114
115<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700116 <code class="details" id="create">create(projectId, body=None, requestId=None, x__xgafv=None)</code>
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700117 <pre>Creates and runs a matrix of tests according to the given specifications. Unsupported environments will be returned in the state UNSUPPORTED. A test matrix is limited to use at most 2000 devices in parallel. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to write to project - INVALID_ARGUMENT - if the request is malformed or if the matrix tries to use too many simultaneous devices.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700118
119Args:
120 projectId: string, The GCE project under which this job will run. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700121 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700122 The object takes the form of:
123
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700124{ # TestMatrix captures all details about a test. It contains the environment configuration, test specification, test executions and overall state and outcome.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800125 &quot;testMatrixId&quot;: &quot;A String&quot;, # Output only. Unique id set by the service.
126 &quot;timestamp&quot;: &quot;A String&quot;, # Output only. The time this test matrix was initially created.
127 &quot;invalidMatrixDetails&quot;: &quot;A String&quot;, # Output only. Describes why the matrix is considered invalid. Only useful for matrices in the INVALID state.
128 &quot;state&quot;: &quot;A String&quot;, # Output only. Indicates the current progress of the test matrix.
129 &quot;testSpecification&quot;: { # A description of how to run the test. # Required. How to run the test.
130 &quot;iosXcTest&quot;: { # A test of an iOS application that uses the XCTest framework. Xcode supports the option to &quot;build for testing&quot;, 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. # An iOS XCTest, via an .xctestrun file.
131 &quot;testSpecialEntitlements&quot;: True or False, # 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.
132 &quot;appBundleId&quot;: &quot;A String&quot;, # Output only. The bundle id for the application under test.
133 &quot;xcodeVersion&quot;: &quot;A String&quot;, # 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.
134 &quot;xctestrun&quot;: { # A reference to a file, used for user inputs. # 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.
135 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
136 },
137 &quot;testsZip&quot;: { # A reference to a file, used for user inputs. # 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.
138 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
139 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700140 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800141 &quot;iosTestSetup&quot;: { # A description of how to set up an iOS device prior to running the test. # Test setup requirements for iOS.
142 &quot;additionalIpas&quot;: [ # iOS apps to install in addition to those being directly tested.
143 { # A reference to a file, used for user inputs.
144 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700145 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800146 ],
147 &quot;pullDirectories&quot;: [ # List of directories on the device to upload to Cloud Storage at the end of the test. Directories should either be in a shared directory (e.g. /private/var/mobile/Media) or within an accessible directory inside the app&#x27;s filesystem (e.g. /Documents) by specifying the bundle id.
148 { # A file or directory to install on the device before the test starts.
149 &quot;bundleId&quot;: &quot;A String&quot;, # 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.
150 &quot;content&quot;: { # A reference to a file, used for user inputs. # The source file
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800151 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
152 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800153 &quot;devicePath&quot;: &quot;A String&quot;, # Location of the file on the device, inside the app&#x27;s sandboxed filesystem
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800154 },
155 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800156 &quot;pushFiles&quot;: [ # List of files to push to the device before starting the test.
157 { # A file or directory to install on the device before the test starts.
158 &quot;bundleId&quot;: &quot;A String&quot;, # 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.
159 &quot;content&quot;: { # A reference to a file, used for user inputs. # The source file
160 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
161 },
162 &quot;devicePath&quot;: &quot;A String&quot;, # Location of the file on the device, inside the app&#x27;s sandboxed filesystem
163 },
164 ],
165 &quot;networkProfile&quot;: &quot;A String&quot;, # 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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800166 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800167 &quot;androidRoboTest&quot;: { # A test of an android application that explores the application on a virtual or physical Android Device, finding culprits and crashes as it goes. Next tag: 30 # An Android robo test.
168 &quot;appPackageId&quot;: &quot;A String&quot;, # The java package for the application under test. The default value is determined by examining the application&#x27;s manifest.
169 &quot;roboScript&quot;: { # A reference to a file, used for user inputs. # A JSON file with a sequence of actions Robo should perform as a prologue for the crawl.
170 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800171 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800172 &quot;roboDirectives&quot;: [ # 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.
173 { # 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.
174 &quot;inputText&quot;: &quot;A String&quot;, # 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.
175 &quot;actionType&quot;: &quot;A String&quot;, # Required. The type of action that Robo should perform on the specified element.
176 &quot;resourceName&quot;: &quot;A String&quot;, # Required. The android resource name of the target UI element. For example, in Java: R.string.foo in xml: @string/foo Only the &quot;foo&quot; part is needed. Reference doc: https://developer.android.com/guide/topics/resources/accessing-resources.html
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800177 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800178 ],
179 &quot;maxSteps&quot;: 42, # The max number of steps Robo can execute. Default is no limit.
180 &quot;appInitialActivity&quot;: &quot;A String&quot;, # The initial activity that should be used to start the app.
181 &quot;maxDepth&quot;: 42, # 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.
182 &quot;startingIntents&quot;: [ # 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).
183 { # Message for specifying the start activities to crawl.
184 &quot;timeout&quot;: &quot;A String&quot;, # Timeout in seconds for each intent.
185 &quot;startActivity&quot;: { # A starting intent specified by an action, uri, and categories. # An intent that starts an activity with specific details.
186 &quot;uri&quot;: &quot;A String&quot;, # URI for the action.
187 &quot;action&quot;: &quot;A String&quot;, # Action name. Required for START_ACTIVITY.
188 &quot;categories&quot;: [ # Intent categories to set on the intent.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800189 &quot;A String&quot;,
190 ],
191 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800192 &quot;launcherActivity&quot;: { # Specifies an intent that starts the main launcher activity. # An intent that starts the main launcher activity.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800193 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800194 },
195 ],
196 &quot;appApk&quot;: { # A reference to a file, used for user inputs. # The APK for the application under test.
197 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
198 },
199 &quot;appBundle&quot;: { # 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. # A multi-apk app bundle for the application under test.
200 &quot;bundleLocation&quot;: { # A reference to a file, used for user inputs. # .aab file representing the app bundle under test.
201 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
202 },
203 },
204 },
205 &quot;disablePerformanceMetrics&quot;: True or False, # Disables performance metrics recording. May reduce test latency.
206 &quot;androidTestLoop&quot;: { # 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. # An Android Application with a Test Loop.
207 &quot;appApk&quot;: { # A reference to a file, used for user inputs. # The APK for the application under test.
208 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
209 },
210 &quot;appBundle&quot;: { # 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. # A multi-apk app bundle for the application under test.
211 &quot;bundleLocation&quot;: { # A reference to a file, used for user inputs. # .aab file representing the app bundle under test.
212 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
213 },
214 },
215 &quot;appPackageId&quot;: &quot;A String&quot;, # The java package for the application under test. The default is determined by examining the application&#x27;s manifest.
216 &quot;scenarioLabels&quot;: [ # The list of scenario labels that should be run during the test. The scenario labels should map to labels defined in the application&#x27;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.
217 &quot;A String&quot;,
218 ],
219 &quot;scenarios&quot;: [ # The list of scenarios that should be run during the test. The default is all test loops, derived from the application&#x27;s manifest.
220 42,
221 ],
222 },
223 &quot;testTimeout&quot;: &quot;A String&quot;, # Max time a test execution is allowed to run before it is automatically cancelled. The default value is 5 min.
224 &quot;disableVideoRecording&quot;: True or False, # Disables video recording. May reduce test latency.
225 &quot;iosTestLoop&quot;: { # 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. # An iOS application with a test loop.
226 &quot;appIpa&quot;: { # A reference to a file, used for user inputs. # Required. The .ipa of the application to test.
227 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
228 },
229 &quot;appBundleId&quot;: &quot;A String&quot;, # Output only. The bundle id for the application under test.
230 &quot;scenarios&quot;: [ # The list of scenarios that should be run during the test. Defaults to the single scenario 0 if unspecified.
231 42,
232 ],
233 },
234 &quot;androidInstrumentationTest&quot;: { # 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. # An Android instrumentation test.
235 &quot;orchestratorOption&quot;: &quot;A String&quot;, # The option of whether running each test within its own invocation of instrumentation with Android Test Orchestrator or not. ** Orchestrator is only compatible with AndroidJUnitRunner version 1.0 or higher! ** Orchestrator offers the following benefits: - No shared state - Crashes are isolated - Logs are scoped per test See for more information about Android Test Orchestrator. If not set, the test will be run without the orchestrator.
236 &quot;testRunnerClass&quot;: &quot;A String&quot;, # The InstrumentationTestRunner class. The default value is determined by examining the application&#x27;s manifest.
237 &quot;testPackageId&quot;: &quot;A String&quot;, # The java package for the test to be executed. The default value is determined by examining the application&#x27;s manifest.
238 &quot;testApk&quot;: { # A reference to a file, used for user inputs. # Required. The APK containing the test code to be executed.
239 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
240 },
241 &quot;appPackageId&quot;: &quot;A String&quot;, # The java package for the application under test. The default value is determined by examining the application&#x27;s manifest.
242 &quot;shardingOption&quot;: { # Options for enabling sharding. # The option to run tests in multiple shards in parallel.
243 &quot;uniformSharding&quot;: { # Uniformly shards test cases given a total number of shards. For Instrumentation test, it will be translated to &quot;-e numShard&quot; &quot;-e shardIndex&quot; AndroidJUnitRunner arguments. With uniform sharding enabled, specifying these sharding arguments via environment_variables is invalid. # Uniformly shards test cases given a total number of shards.
244 &quot;numShards&quot;: 42, # Required. Total number of shards. When any physical devices are selected, the number must be &gt;= 1 and &lt;= 50. When no physical devices are selected, the number must be &gt;= 1 and &lt;= 500.
245 },
246 &quot;manualSharding&quot;: { # 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. # Shards test cases into the specified groups of packages, classes, and/or methods.
247 &quot;testTargetsForShard&quot;: [ # Required. Group of packages, classes, and/or test methods to be run for each shard. When any physical devices are selected, the number of test_targets_for_shard must be &gt;= 1 and &lt;= 50. When no physical devices are selected, the number must be &gt;= 1 and &lt;= 500.
248 { # Test targets for a shard.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800249 &quot;testTargets&quot;: [ # 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, &quot;package com.my.packages&quot; &quot;class com.my.package.MyClass&quot;. The number of shard_test_targets must be greater than 0.
250 &quot;A String&quot;,
251 ],
252 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800253 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800254 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700255 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800256 &quot;testTargets&quot;: [ # Each target must be fully qualified with the package name or class name, in one of these formats: - &quot;package package_name&quot; - &quot;class package_name.class_name&quot; - &quot;class package_name.class_name#method_name&quot; If empty, all targets in the module will be run.
257 &quot;A String&quot;,
258 ],
259 &quot;appApk&quot;: { # A reference to a file, used for user inputs. # The APK for the application under test.
260 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
261 },
262 &quot;appBundle&quot;: { # 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. # A multi-apk app bundle for the application under test.
263 &quot;bundleLocation&quot;: { # A reference to a file, used for user inputs. # .aab file representing the app bundle under test.
264 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
265 },
266 },
267 },
268 &quot;testSetup&quot;: { # A description of how to set up the Android device prior to running the test. # Test setup requirements for Android e.g. files to install, bootstrap scripts.
269 &quot;systrace&quot;: { # Systrace configuration for the run. If set a systrace will be taken, starting on test start and lasting for the configured duration. The systrace file thus obtained is put in the results bucket together with the other artifacts from the run.
270 &quot;durationSeconds&quot;: 42, # Systrace duration in seconds. Should be between 1 and 30 seconds. 0 disables systrace.
271 },
272 &quot;account&quot;: { # Identifies an account and how to log into it. # The device will be logged in on this account for the duration of the test.
273 &quot;googleAuto&quot;: { # 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. # An automatic google login account.
274 },
275 },
276 &quot;dontAutograntPermissions&quot;: True or False, # Whether to prevent all runtime permissions to be granted at app install
277 &quot;directoriesToPull&quot;: [ # 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.
278 &quot;A String&quot;,
279 ],
280 &quot;additionalApks&quot;: [ # APKs to install in addition to those being directly tested. Currently capped at 100.
281 { # An Android package file to install.
282 &quot;packageName&quot;: &quot;A String&quot;, # The java package for the APK to be installed. Value is determined by examining the application&#x27;s manifest.
283 &quot;location&quot;: { # A reference to a file, used for user inputs. # The path to an APK to be installed on the device before the test begins.
284 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
285 },
286 },
287 ],
288 &quot;filesToPush&quot;: [ # List of files to push to the device before starting the test.
289 { # A single device file description.
290 &quot;obbFile&quot;: { # An opaque binary blob file to install on the device before the test starts. # A reference to an opaque binary blob file.
291 &quot;obbFileName&quot;: &quot;A String&quot;, # 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.
292 &quot;obb&quot;: { # A reference to a file, used for user inputs. # Required. Opaque Binary Blob (OBB) file(s) to install on the device.
293 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
294 },
295 },
296 &quot;regularFile&quot;: { # A file or directory to install on the device before the test starts. # A reference to a regular file.
297 &quot;devicePath&quot;: &quot;A String&quot;, # 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.
298 &quot;content&quot;: { # A reference to a file, used for user inputs. # Required. The source file.
299 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
300 },
301 },
302 },
303 ],
304 &quot;networkProfile&quot;: &quot;A String&quot;, # 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.
305 &quot;environmentVariables&quot;: [ # Environment variables to set for the test (only applicable for instrumentation tests).
306 { # A key-value pair passed as an environment variable to the test.
307 &quot;value&quot;: &quot;A String&quot;, # Value for the environment variable.
308 &quot;key&quot;: &quot;A String&quot;, # Key for the environment variable.
309 },
310 ],
311 },
312 },
313 &quot;outcomeSummary&quot;: &quot;A String&quot;, # Output Only. The overall outcome of the test. Only set when the test matrix state is FINISHED.
314 &quot;failFast&quot;: True or False, # 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.
315 &quot;testExecutions&quot;: [ # Output only. The list of test executions that the service creates for this matrix.
316 { # A single test executed in a single environment.
317 &quot;projectId&quot;: &quot;A String&quot;, # Output only. The cloud project that owns the test execution.
318 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique id set by the service.
319 &quot;environment&quot;: { # The environment in which the test is run. # Output only. How the host machine(s) are configured.
320 &quot;iosDevice&quot;: { # A single iOS device. # An iOS device which must be used with an iOS test.
321 &quot;iosModelId&quot;: &quot;A String&quot;, # Required. The id of the iOS device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
322 &quot;locale&quot;: &quot;A String&quot;, # Required. The locale the test device used for testing. Use the TestEnvironmentDiscoveryService to get supported options.
323 &quot;orientation&quot;: &quot;A String&quot;, # Required. How the device is oriented during the test. Use the TestEnvironmentDiscoveryService to get supported options.
324 &quot;iosVersionId&quot;: &quot;A String&quot;, # Required. The id of the iOS major software version to be used. Use the TestEnvironmentDiscoveryService to get supported options.
325 },
326 &quot;androidDevice&quot;: { # A single Android device. # An Android device which must be used with an Android test.
327 &quot;androidVersionId&quot;: &quot;A String&quot;, # Required. The id of the Android OS version to be used. Use the TestEnvironmentDiscoveryService to get supported options.
328 &quot;androidModelId&quot;: &quot;A String&quot;, # Required. The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
329 &quot;orientation&quot;: &quot;A String&quot;, # Required. How the device is oriented during the test. Use the TestEnvironmentDiscoveryService to get supported options.
330 &quot;locale&quot;: &quot;A String&quot;, # Required. The locale the test device used for testing. Use the TestEnvironmentDiscoveryService to get supported options.
331 },
332 },
333 &quot;testDetails&quot;: { # Additional details about the progress of the running test. # Output only. Additional details about the running test.
334 &quot;errorMessage&quot;: &quot;A String&quot;, # Output only. If the TestState is ERROR, then this string will contain human-readable details about the error.
335 &quot;progressMessages&quot;: [ # Output only. Human-readable, detailed descriptions of the test&#x27;s progress. For example: &quot;Provisioning a device&quot;, &quot;Starting Test&quot;. During the course of execution new data may be appended to the end of progress_messages.
336 &quot;A String&quot;,
337 ],
338 },
339 &quot;timestamp&quot;: &quot;A String&quot;, # Output only. The time this test execution was initially created.
340 &quot;state&quot;: &quot;A String&quot;, # Output only. Indicates the current progress of the test execution (e.g., FINISHED).
341 &quot;shard&quot;: { # Output only. Details about the shard. # Output only. Details about the shard.
342 &quot;testTargetsForShard&quot;: { # Test targets for a shard. # Output only. Test targets for each shard.
343 &quot;testTargets&quot;: [ # 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, &quot;package com.my.packages&quot; &quot;class com.my.package.MyClass&quot;. The number of shard_test_targets must be greater than 0.
344 &quot;A String&quot;,
345 ],
346 },
347 &quot;numShards&quot;: 42, # Output only. The total number of shards.
348 &quot;shardIndex&quot;: 42, # Output only. The index of the shard among all the shards.
349 },
350 &quot;matrixId&quot;: &quot;A String&quot;, # Output only. Id of the containing TestMatrix.
351 &quot;testSpecification&quot;: { # A description of how to run the test. # Output only. How to run the test.
352 &quot;iosXcTest&quot;: { # A test of an iOS application that uses the XCTest framework. Xcode supports the option to &quot;build for testing&quot;, 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. # An iOS XCTest, via an .xctestrun file.
353 &quot;testSpecialEntitlements&quot;: True or False, # 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.
354 &quot;appBundleId&quot;: &quot;A String&quot;, # Output only. The bundle id for the application under test.
355 &quot;xcodeVersion&quot;: &quot;A String&quot;, # 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.
356 &quot;xctestrun&quot;: { # A reference to a file, used for user inputs. # 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.
357 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
358 },
359 &quot;testsZip&quot;: { # A reference to a file, used for user inputs. # 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.
360 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
361 },
362 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800363 &quot;iosTestSetup&quot;: { # A description of how to set up an iOS device prior to running the test. # Test setup requirements for iOS.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800364 &quot;additionalIpas&quot;: [ # iOS apps to install in addition to those being directly tested.
365 { # A reference to a file, used for user inputs.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800366 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
367 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800368 ],
369 &quot;pullDirectories&quot;: [ # List of directories on the device to upload to Cloud Storage at the end of the test. Directories should either be in a shared directory (e.g. /private/var/mobile/Media) or within an accessible directory inside the app&#x27;s filesystem (e.g. /Documents) by specifying the bundle id.
370 { # A file or directory to install on the device before the test starts.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800371 &quot;bundleId&quot;: &quot;A String&quot;, # 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.
372 &quot;content&quot;: { # A reference to a file, used for user inputs. # The source file
373 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
374 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800375 &quot;devicePath&quot;: &quot;A String&quot;, # Location of the file on the device, inside the app&#x27;s sandboxed filesystem
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800376 },
377 ],
378 &quot;pushFiles&quot;: [ # List of files to push to the device before starting the test.
379 { # A file or directory to install on the device before the test starts.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800380 &quot;bundleId&quot;: &quot;A String&quot;, # 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.
381 &quot;content&quot;: { # A reference to a file, used for user inputs. # The source file
382 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
383 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800384 &quot;devicePath&quot;: &quot;A String&quot;, # Location of the file on the device, inside the app&#x27;s sandboxed filesystem
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800385 },
386 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800387 &quot;networkProfile&quot;: &quot;A String&quot;, # 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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800388 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800389 &quot;androidRoboTest&quot;: { # A test of an android application that explores the application on a virtual or physical Android Device, finding culprits and crashes as it goes. Next tag: 30 # An Android robo test.
390 &quot;appPackageId&quot;: &quot;A String&quot;, # The java package for the application under test. The default value is determined by examining the application&#x27;s manifest.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800391 &quot;roboScript&quot;: { # A reference to a file, used for user inputs. # A JSON file with a sequence of actions Robo should perform as a prologue for the crawl.
392 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
393 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800394 &quot;roboDirectives&quot;: [ # 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.
395 { # 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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800396 &quot;inputText&quot;: &quot;A String&quot;, # 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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800397 &quot;actionType&quot;: &quot;A String&quot;, # Required. The type of action that Robo should perform on the specified element.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800398 &quot;resourceName&quot;: &quot;A String&quot;, # Required. The android resource name of the target UI element. For example, in Java: R.string.foo in xml: @string/foo Only the &quot;foo&quot; part is needed. Reference doc: https://developer.android.com/guide/topics/resources/accessing-resources.html
399 },
400 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800401 &quot;maxSteps&quot;: 42, # The max number of steps Robo can execute. Default is no limit.
402 &quot;appInitialActivity&quot;: &quot;A String&quot;, # The initial activity that should be used to start the app.
403 &quot;maxDepth&quot;: 42, # 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.
404 &quot;startingIntents&quot;: [ # 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).
405 { # Message for specifying the start activities to crawl.
406 &quot;timeout&quot;: &quot;A String&quot;, # Timeout in seconds for each intent.
407 &quot;startActivity&quot;: { # A starting intent specified by an action, uri, and categories. # An intent that starts an activity with specific details.
408 &quot;uri&quot;: &quot;A String&quot;, # URI for the action.
409 &quot;action&quot;: &quot;A String&quot;, # Action name. Required for START_ACTIVITY.
410 &quot;categories&quot;: [ # Intent categories to set on the intent.
411 &quot;A String&quot;,
412 ],
413 },
414 &quot;launcherActivity&quot;: { # Specifies an intent that starts the main launcher activity. # An intent that starts the main launcher activity.
415 },
416 },
417 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800418 &quot;appApk&quot;: { # A reference to a file, used for user inputs. # The APK for the application under test.
419 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
420 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800421 &quot;appBundle&quot;: { # 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. # A multi-apk app bundle for the application under test.
422 &quot;bundleLocation&quot;: { # A reference to a file, used for user inputs. # .aab file representing the app bundle under test.
423 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
424 },
425 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800426 },
427 &quot;disablePerformanceMetrics&quot;: True or False, # Disables performance metrics recording. May reduce test latency.
428 &quot;androidTestLoop&quot;: { # 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. # An Android Application with a Test Loop.
429 &quot;appApk&quot;: { # A reference to a file, used for user inputs. # The APK for the application under test.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800430 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
431 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800432 &quot;appBundle&quot;: { # 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. # A multi-apk app bundle for the application under test.
433 &quot;bundleLocation&quot;: { # A reference to a file, used for user inputs. # .aab file representing the app bundle under test.
434 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
435 },
436 },
437 &quot;appPackageId&quot;: &quot;A String&quot;, # The java package for the application under test. The default is determined by examining the application&#x27;s manifest.
438 &quot;scenarioLabels&quot;: [ # The list of scenario labels that should be run during the test. The scenario labels should map to labels defined in the application&#x27;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.
439 &quot;A String&quot;,
440 ],
441 &quot;scenarios&quot;: [ # The list of scenarios that should be run during the test. The default is all test loops, derived from the application&#x27;s manifest.
442 42,
443 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800444 },
445 &quot;testTimeout&quot;: &quot;A String&quot;, # Max time a test execution is allowed to run before it is automatically cancelled. The default value is 5 min.
446 &quot;disableVideoRecording&quot;: True or False, # Disables video recording. May reduce test latency.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800447 &quot;iosTestLoop&quot;: { # 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. # An iOS application with a test loop.
448 &quot;appIpa&quot;: { # A reference to a file, used for user inputs. # Required. The .ipa of the application to test.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800449 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
450 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800451 &quot;appBundleId&quot;: &quot;A String&quot;, # Output only. The bundle id for the application under test.
452 &quot;scenarios&quot;: [ # The list of scenarios that should be run during the test. Defaults to the single scenario 0 if unspecified.
453 42,
454 ],
455 },
456 &quot;androidInstrumentationTest&quot;: { # 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. # An Android instrumentation test.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800457 &quot;orchestratorOption&quot;: &quot;A String&quot;, # The option of whether running each test within its own invocation of instrumentation with Android Test Orchestrator or not. ** Orchestrator is only compatible with AndroidJUnitRunner version 1.0 or higher! ** Orchestrator offers the following benefits: - No shared state - Crashes are isolated - Logs are scoped per test See for more information about Android Test Orchestrator. If not set, the test will be run without the orchestrator.
458 &quot;testRunnerClass&quot;: &quot;A String&quot;, # The InstrumentationTestRunner class. The default value is determined by examining the application&#x27;s manifest.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800459 &quot;testPackageId&quot;: &quot;A String&quot;, # The java package for the test to be executed. The default value is determined by examining the application&#x27;s manifest.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800460 &quot;testApk&quot;: { # A reference to a file, used for user inputs. # Required. The APK containing the test code to be executed.
461 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
462 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800463 &quot;appPackageId&quot;: &quot;A String&quot;, # The java package for the application under test. The default value is determined by examining the application&#x27;s manifest.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800464 &quot;shardingOption&quot;: { # Options for enabling sharding. # The option to run tests in multiple shards in parallel.
465 &quot;uniformSharding&quot;: { # Uniformly shards test cases given a total number of shards. For Instrumentation test, it will be translated to &quot;-e numShard&quot; &quot;-e shardIndex&quot; AndroidJUnitRunner arguments. With uniform sharding enabled, specifying these sharding arguments via environment_variables is invalid. # Uniformly shards test cases given a total number of shards.
466 &quot;numShards&quot;: 42, # Required. Total number of shards. When any physical devices are selected, the number must be &gt;= 1 and &lt;= 50. When no physical devices are selected, the number must be &gt;= 1 and &lt;= 500.
467 },
468 &quot;manualSharding&quot;: { # 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. # Shards test cases into the specified groups of packages, classes, and/or methods.
469 &quot;testTargetsForShard&quot;: [ # Required. Group of packages, classes, and/or test methods to be run for each shard. When any physical devices are selected, the number of test_targets_for_shard must be &gt;= 1 and &lt;= 50. When no physical devices are selected, the number must be &gt;= 1 and &lt;= 500.
470 { # Test targets for a shard.
471 &quot;testTargets&quot;: [ # 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, &quot;package com.my.packages&quot; &quot;class com.my.package.MyClass&quot;. The number of shard_test_targets must be greater than 0.
472 &quot;A String&quot;,
473 ],
474 },
475 ],
476 },
477 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800478 &quot;testTargets&quot;: [ # Each target must be fully qualified with the package name or class name, in one of these formats: - &quot;package package_name&quot; - &quot;class package_name.class_name&quot; - &quot;class package_name.class_name#method_name&quot; If empty, all targets in the module will be run.
479 &quot;A String&quot;,
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800480 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800481 &quot;appApk&quot;: { # A reference to a file, used for user inputs. # The APK for the application under test.
482 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
483 },
484 &quot;appBundle&quot;: { # 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. # A multi-apk app bundle for the application under test.
485 &quot;bundleLocation&quot;: { # A reference to a file, used for user inputs. # .aab file representing the app bundle under test.
486 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
487 },
488 },
489 },
490 &quot;testSetup&quot;: { # A description of how to set up the Android device prior to running the test. # Test setup requirements for Android e.g. files to install, bootstrap scripts.
491 &quot;systrace&quot;: { # Systrace configuration for the run. If set a systrace will be taken, starting on test start and lasting for the configured duration. The systrace file thus obtained is put in the results bucket together with the other artifacts from the run.
492 &quot;durationSeconds&quot;: 42, # Systrace duration in seconds. Should be between 1 and 30 seconds. 0 disables systrace.
493 },
494 &quot;account&quot;: { # Identifies an account and how to log into it. # The device will be logged in on this account for the duration of the test.
495 &quot;googleAuto&quot;: { # 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. # An automatic google login account.
496 },
497 },
498 &quot;dontAutograntPermissions&quot;: True or False, # Whether to prevent all runtime permissions to be granted at app install
499 &quot;directoriesToPull&quot;: [ # 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.
500 &quot;A String&quot;,
501 ],
502 &quot;additionalApks&quot;: [ # APKs to install in addition to those being directly tested. Currently capped at 100.
503 { # An Android package file to install.
504 &quot;packageName&quot;: &quot;A String&quot;, # The java package for the APK to be installed. Value is determined by examining the application&#x27;s manifest.
505 &quot;location&quot;: { # A reference to a file, used for user inputs. # The path to an APK to be installed on the device before the test begins.
506 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
507 },
508 },
509 ],
510 &quot;filesToPush&quot;: [ # List of files to push to the device before starting the test.
511 { # A single device file description.
512 &quot;obbFile&quot;: { # An opaque binary blob file to install on the device before the test starts. # A reference to an opaque binary blob file.
513 &quot;obbFileName&quot;: &quot;A String&quot;, # 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.
514 &quot;obb&quot;: { # A reference to a file, used for user inputs. # Required. Opaque Binary Blob (OBB) file(s) to install on the device.
515 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
516 },
517 },
518 &quot;regularFile&quot;: { # A file or directory to install on the device before the test starts. # A reference to a regular file.
519 &quot;devicePath&quot;: &quot;A String&quot;, # 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.
520 &quot;content&quot;: { # A reference to a file, used for user inputs. # Required. The source file.
521 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
522 },
523 },
524 },
525 ],
526 &quot;networkProfile&quot;: &quot;A String&quot;, # 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.
527 &quot;environmentVariables&quot;: [ # Environment variables to set for the test (only applicable for instrumentation tests).
528 { # A key-value pair passed as an environment variable to the test.
529 &quot;value&quot;: &quot;A String&quot;, # Value for the environment variable.
530 &quot;key&quot;: &quot;A String&quot;, # Key for the environment variable.
531 },
532 ],
533 },
534 },
535 &quot;toolResultsStep&quot;: { # Represents a tool results step resource. This has the results of a TestExecution. # Output only. Where the results for this execution are written.
536 &quot;executionId&quot;: &quot;A String&quot;, # Output only. A tool results execution ID.
537 &quot;historyId&quot;: &quot;A String&quot;, # Output only. A tool results history ID.
538 &quot;stepId&quot;: &quot;A String&quot;, # Output only. A tool results step ID.
539 &quot;projectId&quot;: &quot;A String&quot;, # Output only. The cloud project that owns the tool results step.
540 },
541 },
542 ],
543 &quot;projectId&quot;: &quot;A String&quot;, # The cloud project that owns the test matrix.
544 &quot;resultStorage&quot;: { # Locations where the results of running the test are stored. # Required. Where the results for the matrix are written.
545 &quot;toolResultsExecution&quot;: { # Represents a tool results execution resource. This has the results of a TestMatrix. # Output only. The tool results execution that results are written to.
546 &quot;historyId&quot;: &quot;A String&quot;, # Output only. A tool results history ID.
547 &quot;executionId&quot;: &quot;A String&quot;, # Output only. A tool results execution ID.
548 &quot;projectId&quot;: &quot;A String&quot;, # Output only. The cloud project that owns the tool results execution.
549 },
550 &quot;googleCloudStorage&quot;: { # A storage location within Google cloud storage (GCS). # Required.
551 &quot;gcsPath&quot;: &quot;A String&quot;, # 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.
552 },
553 &quot;resultsUrl&quot;: &quot;A String&quot;, # Output only. URL to the results in the Firebase Web Console.
554 &quot;toolResultsHistory&quot;: { # Represents a tool results history resource. # 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.
555 &quot;projectId&quot;: &quot;A String&quot;, # Required. The cloud project that owns the tool results history.
556 &quot;historyId&quot;: &quot;A String&quot;, # Required. A tool results history ID.
557 },
558 },
559 &quot;environmentMatrix&quot;: { # The matrix of environments in which the test is to be executed. # Required. The devices the tests are being executed on.
560 &quot;androidDeviceList&quot;: { # A list of Android device configurations in which the test is to be executed. # A list of Android devices; the test will be run only on the specified devices.
561 &quot;androidDevices&quot;: [ # Required. A list of Android devices.
562 { # A single Android device.
563 &quot;androidVersionId&quot;: &quot;A String&quot;, # Required. The id of the Android OS version to be used. Use the TestEnvironmentDiscoveryService to get supported options.
564 &quot;androidModelId&quot;: &quot;A String&quot;, # Required. The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
565 &quot;orientation&quot;: &quot;A String&quot;, # Required. How the device is oriented during the test. Use the TestEnvironmentDiscoveryService to get supported options.
566 &quot;locale&quot;: &quot;A String&quot;, # Required. The locale the test device used for testing. Use the TestEnvironmentDiscoveryService to get supported options.
567 },
568 ],
569 },
570 &quot;iosDeviceList&quot;: { # A list of iOS device configurations in which the test is to be executed. # A list of iOS devices.
571 &quot;iosDevices&quot;: [ # Required. A list of iOS devices.
572 { # A single iOS device.
573 &quot;iosModelId&quot;: &quot;A String&quot;, # Required. The id of the iOS device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
574 &quot;locale&quot;: &quot;A String&quot;, # Required. The locale the test device used for testing. Use the TestEnvironmentDiscoveryService to get supported options.
575 &quot;orientation&quot;: &quot;A String&quot;, # Required. How the device is oriented during the test. Use the TestEnvironmentDiscoveryService to get supported options.
576 &quot;iosVersionId&quot;: &quot;A String&quot;, # Required. The id of the iOS major software version to be used. Use the TestEnvironmentDiscoveryService to get supported options.
577 },
578 ],
579 },
580 &quot;androidMatrix&quot;: { # 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. # A matrix of Android devices.
581 &quot;locales&quot;: [ # Required. The set of locales the test device will enable for testing. Use the TestEnvironmentDiscoveryService to get supported options.
582 &quot;A String&quot;,
583 ],
584 &quot;orientations&quot;: [ # Required. The set of orientations to test with. Use the TestEnvironmentDiscoveryService to get supported options.
585 &quot;A String&quot;,
586 ],
587 &quot;androidModelIds&quot;: [ # Required. The ids of the set of Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
588 &quot;A String&quot;,
589 ],
590 &quot;androidVersionIds&quot;: [ # Required. The ids of the set of Android OS version to be used. Use the TestEnvironmentDiscoveryService to get supported options.
591 &quot;A String&quot;,
592 ],
593 },
594 },
595 &quot;flakyTestAttempts&quot;: 42, # 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.
596 &quot;clientInfo&quot;: { # Information about the client which invoked the test. # Information about the client which invoked the test.
597 &quot;name&quot;: &quot;A String&quot;, # Required. Client name, such as gcloud.
598 &quot;clientInfoDetails&quot;: [ # The list of detailed information about client.
599 { # Key-value pair of detailed information about the client which invoked the test. Examples: {&#x27;Version&#x27;, &#x27;1.0&#x27;}, {&#x27;Release Track&#x27;, &#x27;BETA&#x27;}.
600 &quot;key&quot;: &quot;A String&quot;, # Required. The key of detailed client information.
601 &quot;value&quot;: &quot;A String&quot;, # Required. The value of detailed client information.
602 },
603 ],
604 },
605}
606
607 requestId: string, 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.
608 x__xgafv: string, V1 error format.
609 Allowed values
610 1 - v1 error format
611 2 - v2 error format
612
613Returns:
614 An object of the form:
615
616 { # TestMatrix captures all details about a test. It contains the environment configuration, test specification, test executions and overall state and outcome.
617 &quot;testMatrixId&quot;: &quot;A String&quot;, # Output only. Unique id set by the service.
618 &quot;timestamp&quot;: &quot;A String&quot;, # Output only. The time this test matrix was initially created.
619 &quot;invalidMatrixDetails&quot;: &quot;A String&quot;, # Output only. Describes why the matrix is considered invalid. Only useful for matrices in the INVALID state.
620 &quot;state&quot;: &quot;A String&quot;, # Output only. Indicates the current progress of the test matrix.
621 &quot;testSpecification&quot;: { # A description of how to run the test. # Required. How to run the test.
622 &quot;iosXcTest&quot;: { # A test of an iOS application that uses the XCTest framework. Xcode supports the option to &quot;build for testing&quot;, 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. # An iOS XCTest, via an .xctestrun file.
623 &quot;testSpecialEntitlements&quot;: True or False, # 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.
624 &quot;appBundleId&quot;: &quot;A String&quot;, # Output only. The bundle id for the application under test.
625 &quot;xcodeVersion&quot;: &quot;A String&quot;, # 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.
626 &quot;xctestrun&quot;: { # A reference to a file, used for user inputs. # 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.
627 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
628 },
629 &quot;testsZip&quot;: { # A reference to a file, used for user inputs. # 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.
630 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
631 },
632 },
633 &quot;iosTestSetup&quot;: { # A description of how to set up an iOS device prior to running the test. # Test setup requirements for iOS.
634 &quot;additionalIpas&quot;: [ # iOS apps to install in addition to those being directly tested.
635 { # A reference to a file, used for user inputs.
636 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
637 },
638 ],
639 &quot;pullDirectories&quot;: [ # List of directories on the device to upload to Cloud Storage at the end of the test. Directories should either be in a shared directory (e.g. /private/var/mobile/Media) or within an accessible directory inside the app&#x27;s filesystem (e.g. /Documents) by specifying the bundle id.
640 { # A file or directory to install on the device before the test starts.
641 &quot;bundleId&quot;: &quot;A String&quot;, # 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.
642 &quot;content&quot;: { # A reference to a file, used for user inputs. # The source file
643 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
644 },
645 &quot;devicePath&quot;: &quot;A String&quot;, # Location of the file on the device, inside the app&#x27;s sandboxed filesystem
646 },
647 ],
648 &quot;pushFiles&quot;: [ # List of files to push to the device before starting the test.
649 { # A file or directory to install on the device before the test starts.
650 &quot;bundleId&quot;: &quot;A String&quot;, # 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.
651 &quot;content&quot;: { # A reference to a file, used for user inputs. # The source file
652 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
653 },
654 &quot;devicePath&quot;: &quot;A String&quot;, # Location of the file on the device, inside the app&#x27;s sandboxed filesystem
655 },
656 ],
657 &quot;networkProfile&quot;: &quot;A String&quot;, # 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.
658 },
659 &quot;androidRoboTest&quot;: { # A test of an android application that explores the application on a virtual or physical Android Device, finding culprits and crashes as it goes. Next tag: 30 # An Android robo test.
660 &quot;appPackageId&quot;: &quot;A String&quot;, # The java package for the application under test. The default value is determined by examining the application&#x27;s manifest.
661 &quot;roboScript&quot;: { # A reference to a file, used for user inputs. # A JSON file with a sequence of actions Robo should perform as a prologue for the crawl.
662 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
663 },
664 &quot;roboDirectives&quot;: [ # 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.
665 { # 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.
666 &quot;inputText&quot;: &quot;A String&quot;, # 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.
667 &quot;actionType&quot;: &quot;A String&quot;, # Required. The type of action that Robo should perform on the specified element.
668 &quot;resourceName&quot;: &quot;A String&quot;, # Required. The android resource name of the target UI element. For example, in Java: R.string.foo in xml: @string/foo Only the &quot;foo&quot; part is needed. Reference doc: https://developer.android.com/guide/topics/resources/accessing-resources.html
669 },
670 ],
671 &quot;maxSteps&quot;: 42, # The max number of steps Robo can execute. Default is no limit.
672 &quot;appInitialActivity&quot;: &quot;A String&quot;, # The initial activity that should be used to start the app.
673 &quot;maxDepth&quot;: 42, # 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.
674 &quot;startingIntents&quot;: [ # 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).
675 { # Message for specifying the start activities to crawl.
676 &quot;timeout&quot;: &quot;A String&quot;, # Timeout in seconds for each intent.
677 &quot;startActivity&quot;: { # A starting intent specified by an action, uri, and categories. # An intent that starts an activity with specific details.
678 &quot;uri&quot;: &quot;A String&quot;, # URI for the action.
679 &quot;action&quot;: &quot;A String&quot;, # Action name. Required for START_ACTIVITY.
680 &quot;categories&quot;: [ # Intent categories to set on the intent.
681 &quot;A String&quot;,
682 ],
683 },
684 &quot;launcherActivity&quot;: { # Specifies an intent that starts the main launcher activity. # An intent that starts the main launcher activity.
685 },
686 },
687 ],
688 &quot;appApk&quot;: { # A reference to a file, used for user inputs. # The APK for the application under test.
689 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
690 },
691 &quot;appBundle&quot;: { # 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. # A multi-apk app bundle for the application under test.
692 &quot;bundleLocation&quot;: { # A reference to a file, used for user inputs. # .aab file representing the app bundle under test.
693 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
694 },
695 },
696 },
697 &quot;disablePerformanceMetrics&quot;: True or False, # Disables performance metrics recording. May reduce test latency.
698 &quot;androidTestLoop&quot;: { # 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. # An Android Application with a Test Loop.
699 &quot;appApk&quot;: { # A reference to a file, used for user inputs. # The APK for the application under test.
700 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
701 },
702 &quot;appBundle&quot;: { # 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. # A multi-apk app bundle for the application under test.
703 &quot;bundleLocation&quot;: { # A reference to a file, used for user inputs. # .aab file representing the app bundle under test.
704 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
705 },
706 },
707 &quot;appPackageId&quot;: &quot;A String&quot;, # The java package for the application under test. The default is determined by examining the application&#x27;s manifest.
708 &quot;scenarioLabels&quot;: [ # The list of scenario labels that should be run during the test. The scenario labels should map to labels defined in the application&#x27;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.
709 &quot;A String&quot;,
710 ],
711 &quot;scenarios&quot;: [ # The list of scenarios that should be run during the test. The default is all test loops, derived from the application&#x27;s manifest.
712 42,
713 ],
714 },
715 &quot;testTimeout&quot;: &quot;A String&quot;, # Max time a test execution is allowed to run before it is automatically cancelled. The default value is 5 min.
716 &quot;disableVideoRecording&quot;: True or False, # Disables video recording. May reduce test latency.
717 &quot;iosTestLoop&quot;: { # 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. # An iOS application with a test loop.
718 &quot;appIpa&quot;: { # A reference to a file, used for user inputs. # Required. The .ipa of the application to test.
719 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
720 },
721 &quot;appBundleId&quot;: &quot;A String&quot;, # Output only. The bundle id for the application under test.
722 &quot;scenarios&quot;: [ # The list of scenarios that should be run during the test. Defaults to the single scenario 0 if unspecified.
723 42,
724 ],
725 },
726 &quot;androidInstrumentationTest&quot;: { # 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. # An Android instrumentation test.
727 &quot;orchestratorOption&quot;: &quot;A String&quot;, # The option of whether running each test within its own invocation of instrumentation with Android Test Orchestrator or not. ** Orchestrator is only compatible with AndroidJUnitRunner version 1.0 or higher! ** Orchestrator offers the following benefits: - No shared state - Crashes are isolated - Logs are scoped per test See for more information about Android Test Orchestrator. If not set, the test will be run without the orchestrator.
728 &quot;testRunnerClass&quot;: &quot;A String&quot;, # The InstrumentationTestRunner class. The default value is determined by examining the application&#x27;s manifest.
729 &quot;testPackageId&quot;: &quot;A String&quot;, # The java package for the test to be executed. The default value is determined by examining the application&#x27;s manifest.
730 &quot;testApk&quot;: { # A reference to a file, used for user inputs. # Required. The APK containing the test code to be executed.
731 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
732 },
733 &quot;appPackageId&quot;: &quot;A String&quot;, # The java package for the application under test. The default value is determined by examining the application&#x27;s manifest.
734 &quot;shardingOption&quot;: { # Options for enabling sharding. # The option to run tests in multiple shards in parallel.
735 &quot;uniformSharding&quot;: { # Uniformly shards test cases given a total number of shards. For Instrumentation test, it will be translated to &quot;-e numShard&quot; &quot;-e shardIndex&quot; AndroidJUnitRunner arguments. With uniform sharding enabled, specifying these sharding arguments via environment_variables is invalid. # Uniformly shards test cases given a total number of shards.
736 &quot;numShards&quot;: 42, # Required. Total number of shards. When any physical devices are selected, the number must be &gt;= 1 and &lt;= 50. When no physical devices are selected, the number must be &gt;= 1 and &lt;= 500.
737 },
738 &quot;manualSharding&quot;: { # 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. # Shards test cases into the specified groups of packages, classes, and/or methods.
739 &quot;testTargetsForShard&quot;: [ # Required. Group of packages, classes, and/or test methods to be run for each shard. When any physical devices are selected, the number of test_targets_for_shard must be &gt;= 1 and &lt;= 50. When no physical devices are selected, the number must be &gt;= 1 and &lt;= 500.
740 { # Test targets for a shard.
741 &quot;testTargets&quot;: [ # 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, &quot;package com.my.packages&quot; &quot;class com.my.package.MyClass&quot;. The number of shard_test_targets must be greater than 0.
742 &quot;A String&quot;,
743 ],
744 },
745 ],
746 },
747 },
748 &quot;testTargets&quot;: [ # Each target must be fully qualified with the package name or class name, in one of these formats: - &quot;package package_name&quot; - &quot;class package_name.class_name&quot; - &quot;class package_name.class_name#method_name&quot; If empty, all targets in the module will be run.
749 &quot;A String&quot;,
750 ],
751 &quot;appApk&quot;: { # A reference to a file, used for user inputs. # The APK for the application under test.
752 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
753 },
754 &quot;appBundle&quot;: { # 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. # A multi-apk app bundle for the application under test.
755 &quot;bundleLocation&quot;: { # A reference to a file, used for user inputs. # .aab file representing the app bundle under test.
756 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
757 },
758 },
759 },
760 &quot;testSetup&quot;: { # A description of how to set up the Android device prior to running the test. # Test setup requirements for Android e.g. files to install, bootstrap scripts.
761 &quot;systrace&quot;: { # Systrace configuration for the run. If set a systrace will be taken, starting on test start and lasting for the configured duration. The systrace file thus obtained is put in the results bucket together with the other artifacts from the run.
762 &quot;durationSeconds&quot;: 42, # Systrace duration in seconds. Should be between 1 and 30 seconds. 0 disables systrace.
763 },
764 &quot;account&quot;: { # Identifies an account and how to log into it. # The device will be logged in on this account for the duration of the test.
765 &quot;googleAuto&quot;: { # 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. # An automatic google login account.
766 },
767 },
768 &quot;dontAutograntPermissions&quot;: True or False, # Whether to prevent all runtime permissions to be granted at app install
769 &quot;directoriesToPull&quot;: [ # 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.
770 &quot;A String&quot;,
771 ],
772 &quot;additionalApks&quot;: [ # APKs to install in addition to those being directly tested. Currently capped at 100.
773 { # An Android package file to install.
774 &quot;packageName&quot;: &quot;A String&quot;, # The java package for the APK to be installed. Value is determined by examining the application&#x27;s manifest.
775 &quot;location&quot;: { # A reference to a file, used for user inputs. # The path to an APK to be installed on the device before the test begins.
776 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
777 },
778 },
779 ],
780 &quot;filesToPush&quot;: [ # List of files to push to the device before starting the test.
781 { # A single device file description.
782 &quot;obbFile&quot;: { # An opaque binary blob file to install on the device before the test starts. # A reference to an opaque binary blob file.
783 &quot;obbFileName&quot;: &quot;A String&quot;, # 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.
784 &quot;obb&quot;: { # A reference to a file, used for user inputs. # Required. Opaque Binary Blob (OBB) file(s) to install on the device.
785 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
786 },
787 },
788 &quot;regularFile&quot;: { # A file or directory to install on the device before the test starts. # A reference to a regular file.
789 &quot;devicePath&quot;: &quot;A String&quot;, # 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.
790 &quot;content&quot;: { # A reference to a file, used for user inputs. # Required. The source file.
791 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
792 },
793 },
794 },
795 ],
796 &quot;networkProfile&quot;: &quot;A String&quot;, # 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.
797 &quot;environmentVariables&quot;: [ # Environment variables to set for the test (only applicable for instrumentation tests).
798 { # A key-value pair passed as an environment variable to the test.
799 &quot;value&quot;: &quot;A String&quot;, # Value for the environment variable.
800 &quot;key&quot;: &quot;A String&quot;, # Key for the environment variable.
801 },
802 ],
803 },
804 },
805 &quot;outcomeSummary&quot;: &quot;A String&quot;, # Output Only. The overall outcome of the test. Only set when the test matrix state is FINISHED.
806 &quot;failFast&quot;: True or False, # 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.
807 &quot;testExecutions&quot;: [ # Output only. The list of test executions that the service creates for this matrix.
808 { # A single test executed in a single environment.
809 &quot;projectId&quot;: &quot;A String&quot;, # Output only. The cloud project that owns the test execution.
810 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique id set by the service.
811 &quot;environment&quot;: { # The environment in which the test is run. # Output only. How the host machine(s) are configured.
812 &quot;iosDevice&quot;: { # A single iOS device. # An iOS device which must be used with an iOS test.
813 &quot;iosModelId&quot;: &quot;A String&quot;, # Required. The id of the iOS device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
814 &quot;locale&quot;: &quot;A String&quot;, # Required. The locale the test device used for testing. Use the TestEnvironmentDiscoveryService to get supported options.
815 &quot;orientation&quot;: &quot;A String&quot;, # Required. How the device is oriented during the test. Use the TestEnvironmentDiscoveryService to get supported options.
816 &quot;iosVersionId&quot;: &quot;A String&quot;, # Required. The id of the iOS major software version to be used. Use the TestEnvironmentDiscoveryService to get supported options.
817 },
818 &quot;androidDevice&quot;: { # A single Android device. # An Android device which must be used with an Android test.
819 &quot;androidVersionId&quot;: &quot;A String&quot;, # Required. The id of the Android OS version to be used. Use the TestEnvironmentDiscoveryService to get supported options.
820 &quot;androidModelId&quot;: &quot;A String&quot;, # Required. The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
821 &quot;orientation&quot;: &quot;A String&quot;, # Required. How the device is oriented during the test. Use the TestEnvironmentDiscoveryService to get supported options.
822 &quot;locale&quot;: &quot;A String&quot;, # Required. The locale the test device used for testing. Use the TestEnvironmentDiscoveryService to get supported options.
823 },
824 },
825 &quot;testDetails&quot;: { # Additional details about the progress of the running test. # Output only. Additional details about the running test.
826 &quot;errorMessage&quot;: &quot;A String&quot;, # Output only. If the TestState is ERROR, then this string will contain human-readable details about the error.
827 &quot;progressMessages&quot;: [ # Output only. Human-readable, detailed descriptions of the test&#x27;s progress. For example: &quot;Provisioning a device&quot;, &quot;Starting Test&quot;. During the course of execution new data may be appended to the end of progress_messages.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800828 &quot;A String&quot;,
829 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800830 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800831 &quot;timestamp&quot;: &quot;A String&quot;, # Output only. The time this test execution was initially created.
832 &quot;state&quot;: &quot;A String&quot;, # Output only. Indicates the current progress of the test execution (e.g., FINISHED).
833 &quot;shard&quot;: { # Output only. Details about the shard. # Output only. Details about the shard.
834 &quot;testTargetsForShard&quot;: { # Test targets for a shard. # Output only. Test targets for each shard.
835 &quot;testTargets&quot;: [ # 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, &quot;package com.my.packages&quot; &quot;class com.my.package.MyClass&quot;. The number of shard_test_targets must be greater than 0.
836 &quot;A String&quot;,
837 ],
838 },
839 &quot;numShards&quot;: 42, # Output only. The total number of shards.
840 &quot;shardIndex&quot;: 42, # Output only. The index of the shard among all the shards.
841 },
842 &quot;matrixId&quot;: &quot;A String&quot;, # Output only. Id of the containing TestMatrix.
843 &quot;testSpecification&quot;: { # A description of how to run the test. # Output only. How to run the test.
844 &quot;iosXcTest&quot;: { # A test of an iOS application that uses the XCTest framework. Xcode supports the option to &quot;build for testing&quot;, 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. # An iOS XCTest, via an .xctestrun file.
845 &quot;testSpecialEntitlements&quot;: True or False, # 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.
846 &quot;appBundleId&quot;: &quot;A String&quot;, # Output only. The bundle id for the application under test.
847 &quot;xcodeVersion&quot;: &quot;A String&quot;, # 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.
848 &quot;xctestrun&quot;: { # A reference to a file, used for user inputs. # 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.
849 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
850 },
851 &quot;testsZip&quot;: { # A reference to a file, used for user inputs. # 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.
852 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
853 },
854 },
855 &quot;iosTestSetup&quot;: { # A description of how to set up an iOS device prior to running the test. # Test setup requirements for iOS.
856 &quot;additionalIpas&quot;: [ # iOS apps to install in addition to those being directly tested.
857 { # A reference to a file, used for user inputs.
858 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
859 },
860 ],
861 &quot;pullDirectories&quot;: [ # List of directories on the device to upload to Cloud Storage at the end of the test. Directories should either be in a shared directory (e.g. /private/var/mobile/Media) or within an accessible directory inside the app&#x27;s filesystem (e.g. /Documents) by specifying the bundle id.
862 { # A file or directory to install on the device before the test starts.
863 &quot;bundleId&quot;: &quot;A String&quot;, # 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.
864 &quot;content&quot;: { # A reference to a file, used for user inputs. # The source file
865 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
866 },
867 &quot;devicePath&quot;: &quot;A String&quot;, # Location of the file on the device, inside the app&#x27;s sandboxed filesystem
868 },
869 ],
870 &quot;pushFiles&quot;: [ # List of files to push to the device before starting the test.
871 { # A file or directory to install on the device before the test starts.
872 &quot;bundleId&quot;: &quot;A String&quot;, # 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.
873 &quot;content&quot;: { # A reference to a file, used for user inputs. # The source file
874 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
875 },
876 &quot;devicePath&quot;: &quot;A String&quot;, # Location of the file on the device, inside the app&#x27;s sandboxed filesystem
877 },
878 ],
879 &quot;networkProfile&quot;: &quot;A String&quot;, # 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.
880 },
881 &quot;androidRoboTest&quot;: { # A test of an android application that explores the application on a virtual or physical Android Device, finding culprits and crashes as it goes. Next tag: 30 # An Android robo test.
882 &quot;appPackageId&quot;: &quot;A String&quot;, # The java package for the application under test. The default value is determined by examining the application&#x27;s manifest.
883 &quot;roboScript&quot;: { # A reference to a file, used for user inputs. # A JSON file with a sequence of actions Robo should perform as a prologue for the crawl.
884 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
885 },
886 &quot;roboDirectives&quot;: [ # 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.
887 { # 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.
888 &quot;inputText&quot;: &quot;A String&quot;, # 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.
889 &quot;actionType&quot;: &quot;A String&quot;, # Required. The type of action that Robo should perform on the specified element.
890 &quot;resourceName&quot;: &quot;A String&quot;, # Required. The android resource name of the target UI element. For example, in Java: R.string.foo in xml: @string/foo Only the &quot;foo&quot; part is needed. Reference doc: https://developer.android.com/guide/topics/resources/accessing-resources.html
891 },
892 ],
893 &quot;maxSteps&quot;: 42, # The max number of steps Robo can execute. Default is no limit.
894 &quot;appInitialActivity&quot;: &quot;A String&quot;, # The initial activity that should be used to start the app.
895 &quot;maxDepth&quot;: 42, # 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.
896 &quot;startingIntents&quot;: [ # 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).
897 { # Message for specifying the start activities to crawl.
898 &quot;timeout&quot;: &quot;A String&quot;, # Timeout in seconds for each intent.
899 &quot;startActivity&quot;: { # A starting intent specified by an action, uri, and categories. # An intent that starts an activity with specific details.
900 &quot;uri&quot;: &quot;A String&quot;, # URI for the action.
901 &quot;action&quot;: &quot;A String&quot;, # Action name. Required for START_ACTIVITY.
902 &quot;categories&quot;: [ # Intent categories to set on the intent.
903 &quot;A String&quot;,
904 ],
905 },
906 &quot;launcherActivity&quot;: { # Specifies an intent that starts the main launcher activity. # An intent that starts the main launcher activity.
907 },
908 },
909 ],
910 &quot;appApk&quot;: { # A reference to a file, used for user inputs. # The APK for the application under test.
911 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
912 },
913 &quot;appBundle&quot;: { # 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. # A multi-apk app bundle for the application under test.
914 &quot;bundleLocation&quot;: { # A reference to a file, used for user inputs. # .aab file representing the app bundle under test.
915 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
916 },
917 },
918 },
919 &quot;disablePerformanceMetrics&quot;: True or False, # Disables performance metrics recording. May reduce test latency.
920 &quot;androidTestLoop&quot;: { # 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. # An Android Application with a Test Loop.
921 &quot;appApk&quot;: { # A reference to a file, used for user inputs. # The APK for the application under test.
922 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
923 },
924 &quot;appBundle&quot;: { # 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. # A multi-apk app bundle for the application under test.
925 &quot;bundleLocation&quot;: { # A reference to a file, used for user inputs. # .aab file representing the app bundle under test.
926 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
927 },
928 },
929 &quot;appPackageId&quot;: &quot;A String&quot;, # The java package for the application under test. The default is determined by examining the application&#x27;s manifest.
930 &quot;scenarioLabels&quot;: [ # The list of scenario labels that should be run during the test. The scenario labels should map to labels defined in the application&#x27;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.
931 &quot;A String&quot;,
932 ],
933 &quot;scenarios&quot;: [ # The list of scenarios that should be run during the test. The default is all test loops, derived from the application&#x27;s manifest.
934 42,
935 ],
936 },
937 &quot;testTimeout&quot;: &quot;A String&quot;, # Max time a test execution is allowed to run before it is automatically cancelled. The default value is 5 min.
938 &quot;disableVideoRecording&quot;: True or False, # Disables video recording. May reduce test latency.
939 &quot;iosTestLoop&quot;: { # 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. # An iOS application with a test loop.
940 &quot;appIpa&quot;: { # A reference to a file, used for user inputs. # Required. The .ipa of the application to test.
941 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
942 },
943 &quot;appBundleId&quot;: &quot;A String&quot;, # Output only. The bundle id for the application under test.
944 &quot;scenarios&quot;: [ # The list of scenarios that should be run during the test. Defaults to the single scenario 0 if unspecified.
945 42,
946 ],
947 },
948 &quot;androidInstrumentationTest&quot;: { # 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. # An Android instrumentation test.
949 &quot;orchestratorOption&quot;: &quot;A String&quot;, # The option of whether running each test within its own invocation of instrumentation with Android Test Orchestrator or not. ** Orchestrator is only compatible with AndroidJUnitRunner version 1.0 or higher! ** Orchestrator offers the following benefits: - No shared state - Crashes are isolated - Logs are scoped per test See for more information about Android Test Orchestrator. If not set, the test will be run without the orchestrator.
950 &quot;testRunnerClass&quot;: &quot;A String&quot;, # The InstrumentationTestRunner class. The default value is determined by examining the application&#x27;s manifest.
951 &quot;testPackageId&quot;: &quot;A String&quot;, # The java package for the test to be executed. The default value is determined by examining the application&#x27;s manifest.
952 &quot;testApk&quot;: { # A reference to a file, used for user inputs. # Required. The APK containing the test code to be executed.
953 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
954 },
955 &quot;appPackageId&quot;: &quot;A String&quot;, # The java package for the application under test. The default value is determined by examining the application&#x27;s manifest.
956 &quot;shardingOption&quot;: { # Options for enabling sharding. # The option to run tests in multiple shards in parallel.
957 &quot;uniformSharding&quot;: { # Uniformly shards test cases given a total number of shards. For Instrumentation test, it will be translated to &quot;-e numShard&quot; &quot;-e shardIndex&quot; AndroidJUnitRunner arguments. With uniform sharding enabled, specifying these sharding arguments via environment_variables is invalid. # Uniformly shards test cases given a total number of shards.
958 &quot;numShards&quot;: 42, # Required. Total number of shards. When any physical devices are selected, the number must be &gt;= 1 and &lt;= 50. When no physical devices are selected, the number must be &gt;= 1 and &lt;= 500.
959 },
960 &quot;manualSharding&quot;: { # 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. # Shards test cases into the specified groups of packages, classes, and/or methods.
961 &quot;testTargetsForShard&quot;: [ # Required. Group of packages, classes, and/or test methods to be run for each shard. When any physical devices are selected, the number of test_targets_for_shard must be &gt;= 1 and &lt;= 50. When no physical devices are selected, the number must be &gt;= 1 and &lt;= 500.
962 { # Test targets for a shard.
963 &quot;testTargets&quot;: [ # 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, &quot;package com.my.packages&quot; &quot;class com.my.package.MyClass&quot;. The number of shard_test_targets must be greater than 0.
964 &quot;A String&quot;,
965 ],
966 },
967 ],
968 },
969 },
970 &quot;testTargets&quot;: [ # Each target must be fully qualified with the package name or class name, in one of these formats: - &quot;package package_name&quot; - &quot;class package_name.class_name&quot; - &quot;class package_name.class_name#method_name&quot; If empty, all targets in the module will be run.
971 &quot;A String&quot;,
972 ],
973 &quot;appApk&quot;: { # A reference to a file, used for user inputs. # The APK for the application under test.
974 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
975 },
976 &quot;appBundle&quot;: { # 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. # A multi-apk app bundle for the application under test.
977 &quot;bundleLocation&quot;: { # A reference to a file, used for user inputs. # .aab file representing the app bundle under test.
978 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
979 },
980 },
981 },
982 &quot;testSetup&quot;: { # A description of how to set up the Android device prior to running the test. # Test setup requirements for Android e.g. files to install, bootstrap scripts.
983 &quot;systrace&quot;: { # Systrace configuration for the run. If set a systrace will be taken, starting on test start and lasting for the configured duration. The systrace file thus obtained is put in the results bucket together with the other artifacts from the run.
984 &quot;durationSeconds&quot;: 42, # Systrace duration in seconds. Should be between 1 and 30 seconds. 0 disables systrace.
985 },
986 &quot;account&quot;: { # Identifies an account and how to log into it. # The device will be logged in on this account for the duration of the test.
987 &quot;googleAuto&quot;: { # 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. # An automatic google login account.
988 },
989 },
990 &quot;dontAutograntPermissions&quot;: True or False, # Whether to prevent all runtime permissions to be granted at app install
991 &quot;directoriesToPull&quot;: [ # 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.
992 &quot;A String&quot;,
993 ],
994 &quot;additionalApks&quot;: [ # APKs to install in addition to those being directly tested. Currently capped at 100.
995 { # An Android package file to install.
996 &quot;packageName&quot;: &quot;A String&quot;, # The java package for the APK to be installed. Value is determined by examining the application&#x27;s manifest.
997 &quot;location&quot;: { # A reference to a file, used for user inputs. # The path to an APK to be installed on the device before the test begins.
998 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
999 },
1000 },
1001 ],
1002 &quot;filesToPush&quot;: [ # List of files to push to the device before starting the test.
1003 { # A single device file description.
1004 &quot;obbFile&quot;: { # An opaque binary blob file to install on the device before the test starts. # A reference to an opaque binary blob file.
1005 &quot;obbFileName&quot;: &quot;A String&quot;, # 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.
1006 &quot;obb&quot;: { # A reference to a file, used for user inputs. # Required. Opaque Binary Blob (OBB) file(s) to install on the device.
1007 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
1008 },
1009 },
1010 &quot;regularFile&quot;: { # A file or directory to install on the device before the test starts. # A reference to a regular file.
1011 &quot;devicePath&quot;: &quot;A String&quot;, # 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.
1012 &quot;content&quot;: { # A reference to a file, used for user inputs. # Required. The source file.
1013 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
1014 },
1015 },
1016 },
1017 ],
1018 &quot;networkProfile&quot;: &quot;A String&quot;, # 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.
1019 &quot;environmentVariables&quot;: [ # Environment variables to set for the test (only applicable for instrumentation tests).
1020 { # A key-value pair passed as an environment variable to the test.
1021 &quot;value&quot;: &quot;A String&quot;, # Value for the environment variable.
1022 &quot;key&quot;: &quot;A String&quot;, # Key for the environment variable.
1023 },
1024 ],
1025 },
1026 },
1027 &quot;toolResultsStep&quot;: { # Represents a tool results step resource. This has the results of a TestExecution. # Output only. Where the results for this execution are written.
1028 &quot;executionId&quot;: &quot;A String&quot;, # Output only. A tool results execution ID.
1029 &quot;historyId&quot;: &quot;A String&quot;, # Output only. A tool results history ID.
1030 &quot;stepId&quot;: &quot;A String&quot;, # Output only. A tool results step ID.
1031 &quot;projectId&quot;: &quot;A String&quot;, # Output only. The cloud project that owns the tool results step.
1032 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001033 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001034 ],
1035 &quot;projectId&quot;: &quot;A String&quot;, # The cloud project that owns the test matrix.
1036 &quot;resultStorage&quot;: { # Locations where the results of running the test are stored. # Required. Where the results for the matrix are written.
1037 &quot;toolResultsExecution&quot;: { # Represents a tool results execution resource. This has the results of a TestMatrix. # Output only. The tool results execution that results are written to.
1038 &quot;historyId&quot;: &quot;A String&quot;, # Output only. A tool results history ID.
1039 &quot;executionId&quot;: &quot;A String&quot;, # Output only. A tool results execution ID.
1040 &quot;projectId&quot;: &quot;A String&quot;, # Output only. The cloud project that owns the tool results execution.
1041 },
1042 &quot;googleCloudStorage&quot;: { # A storage location within Google cloud storage (GCS). # Required.
1043 &quot;gcsPath&quot;: &quot;A String&quot;, # 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.
1044 },
1045 &quot;resultsUrl&quot;: &quot;A String&quot;, # Output only. URL to the results in the Firebase Web Console.
1046 &quot;toolResultsHistory&quot;: { # Represents a tool results history resource. # 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.
1047 &quot;projectId&quot;: &quot;A String&quot;, # Required. The cloud project that owns the tool results history.
1048 &quot;historyId&quot;: &quot;A String&quot;, # Required. A tool results history ID.
1049 },
1050 },
1051 &quot;environmentMatrix&quot;: { # The matrix of environments in which the test is to be executed. # Required. The devices the tests are being executed on.
1052 &quot;androidDeviceList&quot;: { # A list of Android device configurations in which the test is to be executed. # A list of Android devices; the test will be run only on the specified devices.
1053 &quot;androidDevices&quot;: [ # Required. A list of Android devices.
1054 { # A single Android device.
1055 &quot;androidVersionId&quot;: &quot;A String&quot;, # Required. The id of the Android OS version to be used. Use the TestEnvironmentDiscoveryService to get supported options.
1056 &quot;androidModelId&quot;: &quot;A String&quot;, # Required. The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
1057 &quot;orientation&quot;: &quot;A String&quot;, # Required. How the device is oriented during the test. Use the TestEnvironmentDiscoveryService to get supported options.
1058 &quot;locale&quot;: &quot;A String&quot;, # Required. The locale the test device used for testing. Use the TestEnvironmentDiscoveryService to get supported options.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001059 },
1060 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001061 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001062 &quot;iosDeviceList&quot;: { # A list of iOS device configurations in which the test is to be executed. # A list of iOS devices.
1063 &quot;iosDevices&quot;: [ # Required. A list of iOS devices.
1064 { # A single iOS device.
1065 &quot;iosModelId&quot;: &quot;A String&quot;, # Required. The id of the iOS device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
1066 &quot;locale&quot;: &quot;A String&quot;, # Required. The locale the test device used for testing. Use the TestEnvironmentDiscoveryService to get supported options.
1067 &quot;orientation&quot;: &quot;A String&quot;, # Required. How the device is oriented during the test. Use the TestEnvironmentDiscoveryService to get supported options.
1068 &quot;iosVersionId&quot;: &quot;A String&quot;, # Required. The id of the iOS major software version to be used. Use the TestEnvironmentDiscoveryService to get supported options.
1069 },
1070 ],
1071 },
1072 &quot;androidMatrix&quot;: { # 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. # A matrix of Android devices.
1073 &quot;locales&quot;: [ # Required. The set of locales the test device will enable for testing. Use the TestEnvironmentDiscoveryService to get supported options.
1074 &quot;A String&quot;,
1075 ],
1076 &quot;orientations&quot;: [ # Required. The set of orientations to test with. Use the TestEnvironmentDiscoveryService to get supported options.
1077 &quot;A String&quot;,
1078 ],
1079 &quot;androidModelIds&quot;: [ # Required. The ids of the set of Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
1080 &quot;A String&quot;,
1081 ],
1082 &quot;androidVersionIds&quot;: [ # Required. The ids of the set of Android OS version to be used. Use the TestEnvironmentDiscoveryService to get supported options.
1083 &quot;A String&quot;,
1084 ],
1085 },
1086 },
1087 &quot;flakyTestAttempts&quot;: 42, # 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.
1088 &quot;clientInfo&quot;: { # Information about the client which invoked the test. # Information about the client which invoked the test.
1089 &quot;name&quot;: &quot;A String&quot;, # Required. Client name, such as gcloud.
1090 &quot;clientInfoDetails&quot;: [ # The list of detailed information about client.
1091 { # Key-value pair of detailed information about the client which invoked the test. Examples: {&#x27;Version&#x27;, &#x27;1.0&#x27;}, {&#x27;Release Track&#x27;, &#x27;BETA&#x27;}.
1092 &quot;key&quot;: &quot;A String&quot;, # Required. The key of detailed client information.
1093 &quot;value&quot;: &quot;A String&quot;, # Required. The value of detailed client information.
1094 },
1095 ],
1096 },
1097 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001098</div>
1099
1100<div class="method">
1101 <code class="details" id="get">get(projectId, testMatrixId, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001102 <pre>Checks the status of a test matrix. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to read project - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the Test Matrix does not exist
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001103
1104Args:
1105 projectId: string, Cloud project that owns the test matrix. (required)
1106 testMatrixId: string, Unique test matrix id which was assigned by the service. (required)
1107 x__xgafv: string, V1 error format.
1108 Allowed values
1109 1 - v1 error format
1110 2 - v2 error format
1111
1112Returns:
1113 An object of the form:
1114
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001115 { # TestMatrix captures all details about a test. It contains the environment configuration, test specification, test executions and overall state and outcome.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001116 &quot;testMatrixId&quot;: &quot;A String&quot;, # Output only. Unique id set by the service.
1117 &quot;timestamp&quot;: &quot;A String&quot;, # Output only. The time this test matrix was initially created.
1118 &quot;invalidMatrixDetails&quot;: &quot;A String&quot;, # Output only. Describes why the matrix is considered invalid. Only useful for matrices in the INVALID state.
1119 &quot;state&quot;: &quot;A String&quot;, # Output only. Indicates the current progress of the test matrix.
1120 &quot;testSpecification&quot;: { # A description of how to run the test. # Required. How to run the test.
1121 &quot;iosXcTest&quot;: { # A test of an iOS application that uses the XCTest framework. Xcode supports the option to &quot;build for testing&quot;, 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. # An iOS XCTest, via an .xctestrun file.
1122 &quot;testSpecialEntitlements&quot;: True or False, # 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.
1123 &quot;appBundleId&quot;: &quot;A String&quot;, # Output only. The bundle id for the application under test.
1124 &quot;xcodeVersion&quot;: &quot;A String&quot;, # 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.
1125 &quot;xctestrun&quot;: { # A reference to a file, used for user inputs. # 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.
1126 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
1127 },
1128 &quot;testsZip&quot;: { # A reference to a file, used for user inputs. # 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.
1129 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
1130 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001131 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001132 &quot;iosTestSetup&quot;: { # A description of how to set up an iOS device prior to running the test. # Test setup requirements for iOS.
1133 &quot;additionalIpas&quot;: [ # iOS apps to install in addition to those being directly tested.
1134 { # A reference to a file, used for user inputs.
1135 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001136 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001137 ],
1138 &quot;pullDirectories&quot;: [ # List of directories on the device to upload to Cloud Storage at the end of the test. Directories should either be in a shared directory (e.g. /private/var/mobile/Media) or within an accessible directory inside the app&#x27;s filesystem (e.g. /Documents) by specifying the bundle id.
1139 { # A file or directory to install on the device before the test starts.
1140 &quot;bundleId&quot;: &quot;A String&quot;, # 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.
1141 &quot;content&quot;: { # A reference to a file, used for user inputs. # The source file
1142 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001143 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001144 &quot;devicePath&quot;: &quot;A String&quot;, # Location of the file on the device, inside the app&#x27;s sandboxed filesystem
1145 },
1146 ],
1147 &quot;pushFiles&quot;: [ # List of files to push to the device before starting the test.
1148 { # A file or directory to install on the device before the test starts.
1149 &quot;bundleId&quot;: &quot;A String&quot;, # 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.
1150 &quot;content&quot;: { # A reference to a file, used for user inputs. # The source file
1151 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001152 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001153 &quot;devicePath&quot;: &quot;A String&quot;, # Location of the file on the device, inside the app&#x27;s sandboxed filesystem
1154 },
1155 ],
1156 &quot;networkProfile&quot;: &quot;A String&quot;, # 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.
1157 },
1158 &quot;androidRoboTest&quot;: { # A test of an android application that explores the application on a virtual or physical Android Device, finding culprits and crashes as it goes. Next tag: 30 # An Android robo test.
1159 &quot;appPackageId&quot;: &quot;A String&quot;, # The java package for the application under test. The default value is determined by examining the application&#x27;s manifest.
1160 &quot;roboScript&quot;: { # A reference to a file, used for user inputs. # A JSON file with a sequence of actions Robo should perform as a prologue for the crawl.
1161 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
1162 },
1163 &quot;roboDirectives&quot;: [ # 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.
1164 { # 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.
1165 &quot;inputText&quot;: &quot;A String&quot;, # 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.
1166 &quot;actionType&quot;: &quot;A String&quot;, # Required. The type of action that Robo should perform on the specified element.
1167 &quot;resourceName&quot;: &quot;A String&quot;, # Required. The android resource name of the target UI element. For example, in Java: R.string.foo in xml: @string/foo Only the &quot;foo&quot; part is needed. Reference doc: https://developer.android.com/guide/topics/resources/accessing-resources.html
1168 },
1169 ],
1170 &quot;maxSteps&quot;: 42, # The max number of steps Robo can execute. Default is no limit.
1171 &quot;appInitialActivity&quot;: &quot;A String&quot;, # The initial activity that should be used to start the app.
1172 &quot;maxDepth&quot;: 42, # 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.
1173 &quot;startingIntents&quot;: [ # 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).
1174 { # Message for specifying the start activities to crawl.
1175 &quot;timeout&quot;: &quot;A String&quot;, # Timeout in seconds for each intent.
1176 &quot;startActivity&quot;: { # A starting intent specified by an action, uri, and categories. # An intent that starts an activity with specific details.
1177 &quot;uri&quot;: &quot;A String&quot;, # URI for the action.
1178 &quot;action&quot;: &quot;A String&quot;, # Action name. Required for START_ACTIVITY.
1179 &quot;categories&quot;: [ # Intent categories to set on the intent.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001180 &quot;A String&quot;,
1181 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001182 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001183 &quot;launcherActivity&quot;: { # Specifies an intent that starts the main launcher activity. # An intent that starts the main launcher activity.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001184 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001185 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001186 ],
1187 &quot;appApk&quot;: { # A reference to a file, used for user inputs. # The APK for the application under test.
1188 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
1189 },
1190 &quot;appBundle&quot;: { # 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. # A multi-apk app bundle for the application under test.
1191 &quot;bundleLocation&quot;: { # A reference to a file, used for user inputs. # .aab file representing the app bundle under test.
1192 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
1193 },
1194 },
1195 },
1196 &quot;disablePerformanceMetrics&quot;: True or False, # Disables performance metrics recording. May reduce test latency.
1197 &quot;androidTestLoop&quot;: { # 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. # An Android Application with a Test Loop.
1198 &quot;appApk&quot;: { # A reference to a file, used for user inputs. # The APK for the application under test.
1199 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
1200 },
1201 &quot;appBundle&quot;: { # 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. # A multi-apk app bundle for the application under test.
1202 &quot;bundleLocation&quot;: { # A reference to a file, used for user inputs. # .aab file representing the app bundle under test.
1203 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
1204 },
1205 },
1206 &quot;appPackageId&quot;: &quot;A String&quot;, # The java package for the application under test. The default is determined by examining the application&#x27;s manifest.
1207 &quot;scenarioLabels&quot;: [ # The list of scenario labels that should be run during the test. The scenario labels should map to labels defined in the application&#x27;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.
1208 &quot;A String&quot;,
1209 ],
1210 &quot;scenarios&quot;: [ # The list of scenarios that should be run during the test. The default is all test loops, derived from the application&#x27;s manifest.
1211 42,
1212 ],
1213 },
1214 &quot;testTimeout&quot;: &quot;A String&quot;, # Max time a test execution is allowed to run before it is automatically cancelled. The default value is 5 min.
1215 &quot;disableVideoRecording&quot;: True or False, # Disables video recording. May reduce test latency.
1216 &quot;iosTestLoop&quot;: { # 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. # An iOS application with a test loop.
1217 &quot;appIpa&quot;: { # A reference to a file, used for user inputs. # Required. The .ipa of the application to test.
1218 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
1219 },
1220 &quot;appBundleId&quot;: &quot;A String&quot;, # Output only. The bundle id for the application under test.
1221 &quot;scenarios&quot;: [ # The list of scenarios that should be run during the test. Defaults to the single scenario 0 if unspecified.
1222 42,
1223 ],
1224 },
1225 &quot;androidInstrumentationTest&quot;: { # 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. # An Android instrumentation test.
1226 &quot;orchestratorOption&quot;: &quot;A String&quot;, # The option of whether running each test within its own invocation of instrumentation with Android Test Orchestrator or not. ** Orchestrator is only compatible with AndroidJUnitRunner version 1.0 or higher! ** Orchestrator offers the following benefits: - No shared state - Crashes are isolated - Logs are scoped per test See for more information about Android Test Orchestrator. If not set, the test will be run without the orchestrator.
1227 &quot;testRunnerClass&quot;: &quot;A String&quot;, # The InstrumentationTestRunner class. The default value is determined by examining the application&#x27;s manifest.
1228 &quot;testPackageId&quot;: &quot;A String&quot;, # The java package for the test to be executed. The default value is determined by examining the application&#x27;s manifest.
1229 &quot;testApk&quot;: { # A reference to a file, used for user inputs. # Required. The APK containing the test code to be executed.
1230 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
1231 },
1232 &quot;appPackageId&quot;: &quot;A String&quot;, # The java package for the application under test. The default value is determined by examining the application&#x27;s manifest.
1233 &quot;shardingOption&quot;: { # Options for enabling sharding. # The option to run tests in multiple shards in parallel.
1234 &quot;uniformSharding&quot;: { # Uniformly shards test cases given a total number of shards. For Instrumentation test, it will be translated to &quot;-e numShard&quot; &quot;-e shardIndex&quot; AndroidJUnitRunner arguments. With uniform sharding enabled, specifying these sharding arguments via environment_variables is invalid. # Uniformly shards test cases given a total number of shards.
1235 &quot;numShards&quot;: 42, # Required. Total number of shards. When any physical devices are selected, the number must be &gt;= 1 and &lt;= 50. When no physical devices are selected, the number must be &gt;= 1 and &lt;= 500.
1236 },
1237 &quot;manualSharding&quot;: { # 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. # Shards test cases into the specified groups of packages, classes, and/or methods.
1238 &quot;testTargetsForShard&quot;: [ # Required. Group of packages, classes, and/or test methods to be run for each shard. When any physical devices are selected, the number of test_targets_for_shard must be &gt;= 1 and &lt;= 50. When no physical devices are selected, the number must be &gt;= 1 and &lt;= 500.
1239 { # Test targets for a shard.
1240 &quot;testTargets&quot;: [ # 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, &quot;package com.my.packages&quot; &quot;class com.my.package.MyClass&quot;. The number of shard_test_targets must be greater than 0.
1241 &quot;A String&quot;,
1242 ],
1243 },
1244 ],
1245 },
1246 },
1247 &quot;testTargets&quot;: [ # Each target must be fully qualified with the package name or class name, in one of these formats: - &quot;package package_name&quot; - &quot;class package_name.class_name&quot; - &quot;class package_name.class_name#method_name&quot; If empty, all targets in the module will be run.
1248 &quot;A String&quot;,
1249 ],
1250 &quot;appApk&quot;: { # A reference to a file, used for user inputs. # The APK for the application under test.
1251 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
1252 },
1253 &quot;appBundle&quot;: { # 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. # A multi-apk app bundle for the application under test.
1254 &quot;bundleLocation&quot;: { # A reference to a file, used for user inputs. # .aab file representing the app bundle under test.
1255 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
1256 },
1257 },
1258 },
1259 &quot;testSetup&quot;: { # A description of how to set up the Android device prior to running the test. # Test setup requirements for Android e.g. files to install, bootstrap scripts.
1260 &quot;systrace&quot;: { # Systrace configuration for the run. If set a systrace will be taken, starting on test start and lasting for the configured duration. The systrace file thus obtained is put in the results bucket together with the other artifacts from the run.
1261 &quot;durationSeconds&quot;: 42, # Systrace duration in seconds. Should be between 1 and 30 seconds. 0 disables systrace.
1262 },
1263 &quot;account&quot;: { # Identifies an account and how to log into it. # The device will be logged in on this account for the duration of the test.
1264 &quot;googleAuto&quot;: { # 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. # An automatic google login account.
1265 },
1266 },
1267 &quot;dontAutograntPermissions&quot;: True or False, # Whether to prevent all runtime permissions to be granted at app install
1268 &quot;directoriesToPull&quot;: [ # 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.
1269 &quot;A String&quot;,
1270 ],
1271 &quot;additionalApks&quot;: [ # APKs to install in addition to those being directly tested. Currently capped at 100.
1272 { # An Android package file to install.
1273 &quot;packageName&quot;: &quot;A String&quot;, # The java package for the APK to be installed. Value is determined by examining the application&#x27;s manifest.
1274 &quot;location&quot;: { # A reference to a file, used for user inputs. # The path to an APK to be installed on the device before the test begins.
1275 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
1276 },
1277 },
1278 ],
1279 &quot;filesToPush&quot;: [ # List of files to push to the device before starting the test.
1280 { # A single device file description.
1281 &quot;obbFile&quot;: { # An opaque binary blob file to install on the device before the test starts. # A reference to an opaque binary blob file.
1282 &quot;obbFileName&quot;: &quot;A String&quot;, # 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.
1283 &quot;obb&quot;: { # A reference to a file, used for user inputs. # Required. Opaque Binary Blob (OBB) file(s) to install on the device.
1284 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
1285 },
1286 },
1287 &quot;regularFile&quot;: { # A file or directory to install on the device before the test starts. # A reference to a regular file.
1288 &quot;devicePath&quot;: &quot;A String&quot;, # 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.
1289 &quot;content&quot;: { # A reference to a file, used for user inputs. # Required. The source file.
1290 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
1291 },
1292 },
1293 },
1294 ],
1295 &quot;networkProfile&quot;: &quot;A String&quot;, # 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.
1296 &quot;environmentVariables&quot;: [ # Environment variables to set for the test (only applicable for instrumentation tests).
1297 { # A key-value pair passed as an environment variable to the test.
1298 &quot;value&quot;: &quot;A String&quot;, # Value for the environment variable.
1299 &quot;key&quot;: &quot;A String&quot;, # Key for the environment variable.
1300 },
1301 ],
1302 },
1303 },
1304 &quot;outcomeSummary&quot;: &quot;A String&quot;, # Output Only. The overall outcome of the test. Only set when the test matrix state is FINISHED.
1305 &quot;failFast&quot;: True or False, # 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.
1306 &quot;testExecutions&quot;: [ # Output only. The list of test executions that the service creates for this matrix.
1307 { # A single test executed in a single environment.
1308 &quot;projectId&quot;: &quot;A String&quot;, # Output only. The cloud project that owns the test execution.
1309 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique id set by the service.
1310 &quot;environment&quot;: { # The environment in which the test is run. # Output only. How the host machine(s) are configured.
1311 &quot;iosDevice&quot;: { # A single iOS device. # An iOS device which must be used with an iOS test.
1312 &quot;iosModelId&quot;: &quot;A String&quot;, # Required. The id of the iOS device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
1313 &quot;locale&quot;: &quot;A String&quot;, # Required. The locale the test device used for testing. Use the TestEnvironmentDiscoveryService to get supported options.
1314 &quot;orientation&quot;: &quot;A String&quot;, # Required. How the device is oriented during the test. Use the TestEnvironmentDiscoveryService to get supported options.
1315 &quot;iosVersionId&quot;: &quot;A String&quot;, # Required. The id of the iOS major software version to be used. Use the TestEnvironmentDiscoveryService to get supported options.
1316 },
1317 &quot;androidDevice&quot;: { # A single Android device. # An Android device which must be used with an Android test.
1318 &quot;androidVersionId&quot;: &quot;A String&quot;, # Required. The id of the Android OS version to be used. Use the TestEnvironmentDiscoveryService to get supported options.
1319 &quot;androidModelId&quot;: &quot;A String&quot;, # Required. The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
1320 &quot;orientation&quot;: &quot;A String&quot;, # Required. How the device is oriented during the test. Use the TestEnvironmentDiscoveryService to get supported options.
1321 &quot;locale&quot;: &quot;A String&quot;, # Required. The locale the test device used for testing. Use the TestEnvironmentDiscoveryService to get supported options.
1322 },
1323 },
1324 &quot;testDetails&quot;: { # Additional details about the progress of the running test. # Output only. Additional details about the running test.
1325 &quot;errorMessage&quot;: &quot;A String&quot;, # Output only. If the TestState is ERROR, then this string will contain human-readable details about the error.
1326 &quot;progressMessages&quot;: [ # Output only. Human-readable, detailed descriptions of the test&#x27;s progress. For example: &quot;Provisioning a device&quot;, &quot;Starting Test&quot;. During the course of execution new data may be appended to the end of progress_messages.
1327 &quot;A String&quot;,
1328 ],
1329 },
1330 &quot;timestamp&quot;: &quot;A String&quot;, # Output only. The time this test execution was initially created.
1331 &quot;state&quot;: &quot;A String&quot;, # Output only. Indicates the current progress of the test execution (e.g., FINISHED).
1332 &quot;shard&quot;: { # Output only. Details about the shard. # Output only. Details about the shard.
1333 &quot;testTargetsForShard&quot;: { # Test targets for a shard. # Output only. Test targets for each shard.
1334 &quot;testTargets&quot;: [ # 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, &quot;package com.my.packages&quot; &quot;class com.my.package.MyClass&quot;. The number of shard_test_targets must be greater than 0.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001335 &quot;A String&quot;,
1336 ],
1337 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001338 &quot;numShards&quot;: 42, # Output only. The total number of shards.
1339 &quot;shardIndex&quot;: 42, # Output only. The index of the shard among all the shards.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001340 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001341 &quot;matrixId&quot;: &quot;A String&quot;, # Output only. Id of the containing TestMatrix.
1342 &quot;testSpecification&quot;: { # A description of how to run the test. # Output only. How to run the test.
1343 &quot;iosXcTest&quot;: { # A test of an iOS application that uses the XCTest framework. Xcode supports the option to &quot;build for testing&quot;, 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. # An iOS XCTest, via an .xctestrun file.
1344 &quot;testSpecialEntitlements&quot;: True or False, # 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.
1345 &quot;appBundleId&quot;: &quot;A String&quot;, # Output only. The bundle id for the application under test.
1346 &quot;xcodeVersion&quot;: &quot;A String&quot;, # 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.
1347 &quot;xctestrun&quot;: { # A reference to a file, used for user inputs. # 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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001348 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
1349 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001350 &quot;testsZip&quot;: { # A reference to a file, used for user inputs. # 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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001351 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
1352 },
1353 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001354 &quot;iosTestSetup&quot;: { # A description of how to set up an iOS device prior to running the test. # Test setup requirements for iOS.
1355 &quot;additionalIpas&quot;: [ # iOS apps to install in addition to those being directly tested.
1356 { # A reference to a file, used for user inputs.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001357 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
1358 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001359 ],
1360 &quot;pullDirectories&quot;: [ # List of directories on the device to upload to Cloud Storage at the end of the test. Directories should either be in a shared directory (e.g. /private/var/mobile/Media) or within an accessible directory inside the app&#x27;s filesystem (e.g. /Documents) by specifying the bundle id.
1361 { # A file or directory to install on the device before the test starts.
1362 &quot;bundleId&quot;: &quot;A String&quot;, # 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.
1363 &quot;content&quot;: { # A reference to a file, used for user inputs. # The source file
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001364 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
1365 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001366 &quot;devicePath&quot;: &quot;A String&quot;, # Location of the file on the device, inside the app&#x27;s sandboxed filesystem
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001367 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001368 ],
1369 &quot;pushFiles&quot;: [ # List of files to push to the device before starting the test.
1370 { # A file or directory to install on the device before the test starts.
1371 &quot;bundleId&quot;: &quot;A String&quot;, # 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.
1372 &quot;content&quot;: { # A reference to a file, used for user inputs. # The source file
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001373 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
1374 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001375 &quot;devicePath&quot;: &quot;A String&quot;, # Location of the file on the device, inside the app&#x27;s sandboxed filesystem
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001376 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001377 ],
1378 &quot;networkProfile&quot;: &quot;A String&quot;, # 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.
1379 },
1380 &quot;androidRoboTest&quot;: { # A test of an android application that explores the application on a virtual or physical Android Device, finding culprits and crashes as it goes. Next tag: 30 # An Android robo test.
1381 &quot;appPackageId&quot;: &quot;A String&quot;, # The java package for the application under test. The default value is determined by examining the application&#x27;s manifest.
1382 &quot;roboScript&quot;: { # A reference to a file, used for user inputs. # A JSON file with a sequence of actions Robo should perform as a prologue for the crawl.
1383 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
1384 },
1385 &quot;roboDirectives&quot;: [ # 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.
1386 { # 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.
1387 &quot;inputText&quot;: &quot;A String&quot;, # 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.
1388 &quot;actionType&quot;: &quot;A String&quot;, # Required. The type of action that Robo should perform on the specified element.
1389 &quot;resourceName&quot;: &quot;A String&quot;, # Required. The android resource name of the target UI element. For example, in Java: R.string.foo in xml: @string/foo Only the &quot;foo&quot; part is needed. Reference doc: https://developer.android.com/guide/topics/resources/accessing-resources.html
1390 },
1391 ],
1392 &quot;maxSteps&quot;: 42, # The max number of steps Robo can execute. Default is no limit.
1393 &quot;appInitialActivity&quot;: &quot;A String&quot;, # The initial activity that should be used to start the app.
1394 &quot;maxDepth&quot;: 42, # 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.
1395 &quot;startingIntents&quot;: [ # 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).
1396 { # Message for specifying the start activities to crawl.
1397 &quot;timeout&quot;: &quot;A String&quot;, # Timeout in seconds for each intent.
1398 &quot;startActivity&quot;: { # A starting intent specified by an action, uri, and categories. # An intent that starts an activity with specific details.
1399 &quot;uri&quot;: &quot;A String&quot;, # URI for the action.
1400 &quot;action&quot;: &quot;A String&quot;, # Action name. Required for START_ACTIVITY.
1401 &quot;categories&quot;: [ # Intent categories to set on the intent.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001402 &quot;A String&quot;,
1403 ],
1404 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001405 &quot;launcherActivity&quot;: { # Specifies an intent that starts the main launcher activity. # An intent that starts the main launcher activity.
1406 },
1407 },
1408 ],
1409 &quot;appApk&quot;: { # A reference to a file, used for user inputs. # The APK for the application under test.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001410 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
1411 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001412 &quot;appBundle&quot;: { # 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. # A multi-apk app bundle for the application under test.
1413 &quot;bundleLocation&quot;: { # A reference to a file, used for user inputs. # .aab file representing the app bundle under test.
1414 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
1415 },
1416 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001417 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001418 &quot;disablePerformanceMetrics&quot;: True or False, # Disables performance metrics recording. May reduce test latency.
1419 &quot;androidTestLoop&quot;: { # 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. # An Android Application with a Test Loop.
1420 &quot;appApk&quot;: { # A reference to a file, used for user inputs. # The APK for the application under test.
1421 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
1422 },
1423 &quot;appBundle&quot;: { # 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. # A multi-apk app bundle for the application under test.
1424 &quot;bundleLocation&quot;: { # A reference to a file, used for user inputs. # .aab file representing the app bundle under test.
1425 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
1426 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001427 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001428 &quot;appPackageId&quot;: &quot;A String&quot;, # The java package for the application under test. The default is determined by examining the application&#x27;s manifest.
1429 &quot;scenarioLabels&quot;: [ # The list of scenario labels that should be run during the test. The scenario labels should map to labels defined in the application&#x27;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.
1430 &quot;A String&quot;,
1431 ],
1432 &quot;scenarios&quot;: [ # The list of scenarios that should be run during the test. The default is all test loops, derived from the application&#x27;s manifest.
1433 42,
1434 ],
1435 },
1436 &quot;testTimeout&quot;: &quot;A String&quot;, # Max time a test execution is allowed to run before it is automatically cancelled. The default value is 5 min.
1437 &quot;disableVideoRecording&quot;: True or False, # Disables video recording. May reduce test latency.
1438 &quot;iosTestLoop&quot;: { # 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. # An iOS application with a test loop.
1439 &quot;appIpa&quot;: { # A reference to a file, used for user inputs. # Required. The .ipa of the application to test.
1440 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
1441 },
1442 &quot;appBundleId&quot;: &quot;A String&quot;, # Output only. The bundle id for the application under test.
1443 &quot;scenarios&quot;: [ # The list of scenarios that should be run during the test. Defaults to the single scenario 0 if unspecified.
1444 42,
1445 ],
1446 },
1447 &quot;androidInstrumentationTest&quot;: { # 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. # An Android instrumentation test.
1448 &quot;orchestratorOption&quot;: &quot;A String&quot;, # The option of whether running each test within its own invocation of instrumentation with Android Test Orchestrator or not. ** Orchestrator is only compatible with AndroidJUnitRunner version 1.0 or higher! ** Orchestrator offers the following benefits: - No shared state - Crashes are isolated - Logs are scoped per test See for more information about Android Test Orchestrator. If not set, the test will be run without the orchestrator.
1449 &quot;testRunnerClass&quot;: &quot;A String&quot;, # The InstrumentationTestRunner class. The default value is determined by examining the application&#x27;s manifest.
1450 &quot;testPackageId&quot;: &quot;A String&quot;, # The java package for the test to be executed. The default value is determined by examining the application&#x27;s manifest.
1451 &quot;testApk&quot;: { # A reference to a file, used for user inputs. # Required. The APK containing the test code to be executed.
1452 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
1453 },
1454 &quot;appPackageId&quot;: &quot;A String&quot;, # The java package for the application under test. The default value is determined by examining the application&#x27;s manifest.
1455 &quot;shardingOption&quot;: { # Options for enabling sharding. # The option to run tests in multiple shards in parallel.
1456 &quot;uniformSharding&quot;: { # Uniformly shards test cases given a total number of shards. For Instrumentation test, it will be translated to &quot;-e numShard&quot; &quot;-e shardIndex&quot; AndroidJUnitRunner arguments. With uniform sharding enabled, specifying these sharding arguments via environment_variables is invalid. # Uniformly shards test cases given a total number of shards.
1457 &quot;numShards&quot;: 42, # Required. Total number of shards. When any physical devices are selected, the number must be &gt;= 1 and &lt;= 50. When no physical devices are selected, the number must be &gt;= 1 and &lt;= 500.
1458 },
1459 &quot;manualSharding&quot;: { # 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. # Shards test cases into the specified groups of packages, classes, and/or methods.
1460 &quot;testTargetsForShard&quot;: [ # Required. Group of packages, classes, and/or test methods to be run for each shard. When any physical devices are selected, the number of test_targets_for_shard must be &gt;= 1 and &lt;= 50. When no physical devices are selected, the number must be &gt;= 1 and &lt;= 500.
1461 { # Test targets for a shard.
1462 &quot;testTargets&quot;: [ # 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, &quot;package com.my.packages&quot; &quot;class com.my.package.MyClass&quot;. The number of shard_test_targets must be greater than 0.
1463 &quot;A String&quot;,
1464 ],
1465 },
1466 ],
1467 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001468 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001469 &quot;testTargets&quot;: [ # Each target must be fully qualified with the package name or class name, in one of these formats: - &quot;package package_name&quot; - &quot;class package_name.class_name&quot; - &quot;class package_name.class_name#method_name&quot; If empty, all targets in the module will be run.
1470 &quot;A String&quot;,
1471 ],
1472 &quot;appApk&quot;: { # A reference to a file, used for user inputs. # The APK for the application under test.
1473 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
1474 },
1475 &quot;appBundle&quot;: { # 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. # A multi-apk app bundle for the application under test.
1476 &quot;bundleLocation&quot;: { # A reference to a file, used for user inputs. # .aab file representing the app bundle under test.
1477 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
1478 },
1479 },
1480 },
1481 &quot;testSetup&quot;: { # A description of how to set up the Android device prior to running the test. # Test setup requirements for Android e.g. files to install, bootstrap scripts.
1482 &quot;systrace&quot;: { # Systrace configuration for the run. If set a systrace will be taken, starting on test start and lasting for the configured duration. The systrace file thus obtained is put in the results bucket together with the other artifacts from the run.
1483 &quot;durationSeconds&quot;: 42, # Systrace duration in seconds. Should be between 1 and 30 seconds. 0 disables systrace.
1484 },
1485 &quot;account&quot;: { # Identifies an account and how to log into it. # The device will be logged in on this account for the duration of the test.
1486 &quot;googleAuto&quot;: { # 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. # An automatic google login account.
1487 },
1488 },
1489 &quot;dontAutograntPermissions&quot;: True or False, # Whether to prevent all runtime permissions to be granted at app install
1490 &quot;directoriesToPull&quot;: [ # 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.
1491 &quot;A String&quot;,
1492 ],
1493 &quot;additionalApks&quot;: [ # APKs to install in addition to those being directly tested. Currently capped at 100.
1494 { # An Android package file to install.
1495 &quot;packageName&quot;: &quot;A String&quot;, # The java package for the APK to be installed. Value is determined by examining the application&#x27;s manifest.
1496 &quot;location&quot;: { # A reference to a file, used for user inputs. # The path to an APK to be installed on the device before the test begins.
1497 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
1498 },
1499 },
1500 ],
1501 &quot;filesToPush&quot;: [ # List of files to push to the device before starting the test.
1502 { # A single device file description.
1503 &quot;obbFile&quot;: { # An opaque binary blob file to install on the device before the test starts. # A reference to an opaque binary blob file.
1504 &quot;obbFileName&quot;: &quot;A String&quot;, # 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.
1505 &quot;obb&quot;: { # A reference to a file, used for user inputs. # Required. Opaque Binary Blob (OBB) file(s) to install on the device.
1506 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
1507 },
1508 },
1509 &quot;regularFile&quot;: { # A file or directory to install on the device before the test starts. # A reference to a regular file.
1510 &quot;devicePath&quot;: &quot;A String&quot;, # 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.
1511 &quot;content&quot;: { # A reference to a file, used for user inputs. # Required. The source file.
1512 &quot;gcsPath&quot;: &quot;A String&quot;, # 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)
1513 },
1514 },
1515 },
1516 ],
1517 &quot;networkProfile&quot;: &quot;A String&quot;, # 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.
1518 &quot;environmentVariables&quot;: [ # Environment variables to set for the test (only applicable for instrumentation tests).
1519 { # A key-value pair passed as an environment variable to the test.
1520 &quot;value&quot;: &quot;A String&quot;, # Value for the environment variable.
1521 &quot;key&quot;: &quot;A String&quot;, # Key for the environment variable.
1522 },
1523 ],
1524 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001525 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001526 &quot;toolResultsStep&quot;: { # Represents a tool results step resource. This has the results of a TestExecution. # Output only. Where the results for this execution are written.
1527 &quot;executionId&quot;: &quot;A String&quot;, # Output only. A tool results execution ID.
1528 &quot;historyId&quot;: &quot;A String&quot;, # Output only. A tool results history ID.
1529 &quot;stepId&quot;: &quot;A String&quot;, # Output only. A tool results step ID.
1530 &quot;projectId&quot;: &quot;A String&quot;, # Output only. The cloud project that owns the tool results step.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001531 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001532 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001533 ],
1534 &quot;projectId&quot;: &quot;A String&quot;, # The cloud project that owns the test matrix.
1535 &quot;resultStorage&quot;: { # Locations where the results of running the test are stored. # Required. Where the results for the matrix are written.
1536 &quot;toolResultsExecution&quot;: { # Represents a tool results execution resource. This has the results of a TestMatrix. # Output only. The tool results execution that results are written to.
1537 &quot;historyId&quot;: &quot;A String&quot;, # Output only. A tool results history ID.
1538 &quot;executionId&quot;: &quot;A String&quot;, # Output only. A tool results execution ID.
1539 &quot;projectId&quot;: &quot;A String&quot;, # Output only. The cloud project that owns the tool results execution.
1540 },
1541 &quot;googleCloudStorage&quot;: { # A storage location within Google cloud storage (GCS). # Required.
1542 &quot;gcsPath&quot;: &quot;A String&quot;, # 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.
1543 },
1544 &quot;resultsUrl&quot;: &quot;A String&quot;, # Output only. URL to the results in the Firebase Web Console.
1545 &quot;toolResultsHistory&quot;: { # Represents a tool results history resource. # 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.
1546 &quot;projectId&quot;: &quot;A String&quot;, # Required. The cloud project that owns the tool results history.
1547 &quot;historyId&quot;: &quot;A String&quot;, # Required. A tool results history ID.
1548 },
1549 },
1550 &quot;environmentMatrix&quot;: { # The matrix of environments in which the test is to be executed. # Required. The devices the tests are being executed on.
1551 &quot;androidDeviceList&quot;: { # A list of Android device configurations in which the test is to be executed. # A list of Android devices; the test will be run only on the specified devices.
1552 &quot;androidDevices&quot;: [ # Required. A list of Android devices.
1553 { # A single Android device.
1554 &quot;androidVersionId&quot;: &quot;A String&quot;, # Required. The id of the Android OS version to be used. Use the TestEnvironmentDiscoveryService to get supported options.
1555 &quot;androidModelId&quot;: &quot;A String&quot;, # Required. The id of the Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
1556 &quot;orientation&quot;: &quot;A String&quot;, # Required. How the device is oriented during the test. Use the TestEnvironmentDiscoveryService to get supported options.
1557 &quot;locale&quot;: &quot;A String&quot;, # Required. The locale the test device used for testing. Use the TestEnvironmentDiscoveryService to get supported options.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001558 },
1559 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001560 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001561 &quot;iosDeviceList&quot;: { # A list of iOS device configurations in which the test is to be executed. # A list of iOS devices.
1562 &quot;iosDevices&quot;: [ # Required. A list of iOS devices.
1563 { # A single iOS device.
1564 &quot;iosModelId&quot;: &quot;A String&quot;, # Required. The id of the iOS device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
1565 &quot;locale&quot;: &quot;A String&quot;, # Required. The locale the test device used for testing. Use the TestEnvironmentDiscoveryService to get supported options.
1566 &quot;orientation&quot;: &quot;A String&quot;, # Required. How the device is oriented during the test. Use the TestEnvironmentDiscoveryService to get supported options.
1567 &quot;iosVersionId&quot;: &quot;A String&quot;, # Required. The id of the iOS major software version to be used. Use the TestEnvironmentDiscoveryService to get supported options.
1568 },
1569 ],
1570 },
1571 &quot;androidMatrix&quot;: { # 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. # A matrix of Android devices.
1572 &quot;locales&quot;: [ # Required. The set of locales the test device will enable for testing. Use the TestEnvironmentDiscoveryService to get supported options.
1573 &quot;A String&quot;,
1574 ],
1575 &quot;orientations&quot;: [ # Required. The set of orientations to test with. Use the TestEnvironmentDiscoveryService to get supported options.
1576 &quot;A String&quot;,
1577 ],
1578 &quot;androidModelIds&quot;: [ # Required. The ids of the set of Android device to be used. Use the TestEnvironmentDiscoveryService to get supported options.
1579 &quot;A String&quot;,
1580 ],
1581 &quot;androidVersionIds&quot;: [ # Required. The ids of the set of Android OS version to be used. Use the TestEnvironmentDiscoveryService to get supported options.
1582 &quot;A String&quot;,
1583 ],
1584 },
1585 },
1586 &quot;flakyTestAttempts&quot;: 42, # 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.
1587 &quot;clientInfo&quot;: { # Information about the client which invoked the test. # Information about the client which invoked the test.
1588 &quot;name&quot;: &quot;A String&quot;, # Required. Client name, such as gcloud.
1589 &quot;clientInfoDetails&quot;: [ # The list of detailed information about client.
1590 { # Key-value pair of detailed information about the client which invoked the test. Examples: {&#x27;Version&#x27;, &#x27;1.0&#x27;}, {&#x27;Release Track&#x27;, &#x27;BETA&#x27;}.
1591 &quot;key&quot;: &quot;A String&quot;, # Required. The key of detailed client information.
1592 &quot;value&quot;: &quot;A String&quot;, # Required. The value of detailed client information.
1593 },
1594 ],
1595 },
1596 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001597</div>
1598
1599</body></html>