Debian Codegraph @

docs/dyn/firebaseappdistribution_v1alpha.projects.apps.releases.tests.html

raw
1 <html><body>
2 <style>
3
4 body, 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
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, 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="firebaseappdistribution_v1alpha.html">Firebase App Distribution API</a> . <a href="firebaseappdistribution_v1alpha.projects.html">projects</a> . <a href="firebaseappdistribution_v1alpha.projects.apps.html">apps</a> . <a href="firebaseappdistribution_v1alpha.projects.apps.releases.html">releases</a> . <a href="firebaseappdistribution_v1alpha.projects.apps.releases.tests.html">tests</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#cancel">cancel(name, x__xgafv=None)</a></code></p>
79 <p class="firstline">Abort automated test run on release.</p>
80 <p class="toc_element">
81 <code><a href="#close">close()</a></code></p>
82 <p class="firstline">Close httplib2 connections.</p>
83 <p class="toc_element">
84 <code><a href="#create">create(parent, body=None, releaseTestId=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">Run automated test(s) on release.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88 <p class="firstline">Get results for automated test run on release.</p>
89 <p class="toc_element">
90 <code><a href="#list">list(parent, pageSize=None, pageToken=None, view=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">List results for automated tests run on release.</p>
92 <p class="toc_element">
93 <code><a href="#list_next">list_next()</a></code></p>
94 <p class="firstline">Retrieves the next page of results.</p>
95 <h3>Method Details</h3>
96 <div class="method">
97 <code class="details" id="cancel">cancel(name, x__xgafv=None)</code>
98 <pre>Abort automated test run on release.
99
100 Args:
101 name: string, Required. The name of the release test resource. Format: `projects/{project_number}/apps/{app}/releases/{release}/tests/{test}` (required)
102 x__xgafv: string, V1 error format.
103 Allowed values
104 1 - v1 error format
105 2 - v2 error format
106
107 Returns:
108 An object of the form:
109
110 { # The (empty) response message for `CancelReleaseTest`.
111 }</pre>
112 </div>
113
114 <div class="method">
115 <code class="details" id="close">close()</code>
116 <pre>Close httplib2 connections.</pre>
117 </div>
118
119 <div class="method">
120 <code class="details" id="create">create(parent, body=None, releaseTestId=None, x__xgafv=None)</code>
121 <pre>Run automated test(s) on release.
122
123 Args:
124 parent: string, Required. The name of the release resource, which is the parent of the test Format: `projects/{project_number}/apps/{app}/releases/{release}` (required)
125 body: object, The request body.
126 The object takes the form of:
127
128 { # Instance of an automated test for a release.
129 &quot;aiInstructions&quot;: { # Optional. Instructions for AI driven test.
130 &quot;steps&quot;: [ # Required. Steps to be accomplished by the AI
131 { # A step to be accomplished by the AI
132 &quot;assertion&quot;: &quot;A String&quot;, # An assertion to be checked by the AI
133 &quot;goal&quot;: &quot;A String&quot;, # A goal to be accomplished by the AI
134 &quot;hint&quot;: &quot;A String&quot;, # Optional. Hint text containing suggestions to help the agent accomplish the goal
135 &quot;successCriteria&quot;: &quot;A String&quot;, # Optional. A visual description of the screen&#x27;s expected state after the step has been successfully completed. This is referred to as the &quot;final screen assertion&quot; in the Firebase console and CLI tools. This field must be provided for the last step in a test case, and is optional for all other steps.
136 &quot;testCase&quot;: &quot;A String&quot;, # Output only. The test case that contained this step. Note: The test case may have changed or been deleted since this step was created. Format: `projects/{project_number}/apps/{app}/testCases/{test_case}`
137 },
138 ],
139 },
140 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the test was run.
141 &quot;deviceExecutions&quot;: [ # Required. The results of the test on each device.
142 { # The results of running an automated test on a particular device.
143 &quot;aiStepResults&quot;: [ # Output only. Results of the AI steps if passed in
144 { # Captures the results of an AiStep
145 &quot;assertionDetails&quot;: { # Details for an assertion step. # Output only. Details for an assertion step.
146 &quot;explanation&quot;: &quot;A String&quot;, # Output only. An explanation justifying the assertion result.
147 &quot;result&quot;: True or False, # Output only. The result of the assertion.
148 &quot;screenshot&quot;: { # A device screenshot taken during a test. # Output only. The screenshot used in the context of this assertion.
149 &quot;height&quot;: 42, # Output only. The height of the screenshot, in pixels.
150 &quot;uri&quot;: &quot;A String&quot;, # Output only. The URI of the screenshot.
151 &quot;width&quot;: 42, # Output only. The width of the screenshot, in pixels.
152 },
153 },
154 &quot;goalDetails&quot;: { # Details for a goal step. # Output only. Details for a goal step.
155 &quot;goalActions&quot;: [ # Output only. The actions taken by the AI while attempting to accomplish the goal.
156 { # An action taken by the AI agent while attempting to accomplish a goal.
157 &quot;cachingType&quot;: &quot;A String&quot;, # Output only. The type of caching used to determine the action.
158 &quot;debugInfo&quot;: { # Information to help the customer understand why the agent took this action. # Output only. Debug information explaining why the agent to the specific action.
159 &quot;annotatedScreenshotUri&quot;: &quot;A String&quot;, # Output only. URI of the screenshot with elements labeled which was used by the agent.
160 &quot;jsonUri&quot;: &quot;A String&quot;, # Output only. Structured data explaining the agent&#x27;s choice.
161 },
162 &quot;deviceAction&quot;: { # A high level action taken by the AI on the device, potentially involving multiple taps, text entries, waits, etc. # Output only. A high level action taken by the AI on the device.
163 &quot;description&quot;: &quot;A String&quot;, # Output only. A short description of the high level action taken by the AI agent.
164 &quot;deviceInteractions&quot;: [ # Output only. The interactions made with the device as part of this higher level action taken by the agent, such as taps, text entries, waits, etc.
165 { # An interaction with the device, such as a tap, text entry, wait, etc.
166 &quot;backAction&quot;: { # A back action. # Output only. A back action.
167 },
168 &quot;dragAndDrop&quot;: { # A drag and drop action. # Output only. A drag and drop action.
169 &quot;end&quot;: { # Point for describing bounding boxes tap locations Top left is 0,0 # Output only. The end point of the drag and drop.
170 &quot;xCoordinate&quot;: 42,
171 &quot;yCoordinate&quot;: 42,
172 },
173 &quot;start&quot;: { # Point for describing bounding boxes tap locations Top left is 0,0 # Output only. The start point of the drag and drop.
174 &quot;xCoordinate&quot;: 42,
175 &quot;yCoordinate&quot;: 42,
176 },
177 },
178 &quot;enterText&quot;: { # A text entry action, that enters text into a particular text field, clearing any existing text in the field. # Output only. A text entry action, that enters text into a particular text field, clearing any existing text in the field. Unlike `text_input` this action does not require any other actions such as a tap to be performed before it can enter the text.
179 &quot;elementBounds&quot;: { # Rectangle for describing bounding boxes # Output only. The visible bounds of the element to enter text into.
180 &quot;bottom&quot;: 42,
181 &quot;left&quot;: 42,
182 &quot;right&quot;: 42,
183 &quot;top&quot;: 42,
184 },
185 &quot;text&quot;: &quot;A String&quot;, # Output only. The text to enter.
186 },
187 &quot;keyCode&quot;: &quot;A String&quot;, # Output only. Key code for a key event action.
188 &quot;longPress&quot;: { # Point for describing bounding boxes tap locations Top left is 0,0 # Output only. A long press (tap and hold) action.
189 &quot;xCoordinate&quot;: 42,
190 &quot;yCoordinate&quot;: 42,
191 },
192 &quot;screenshot&quot;: { # A device screenshot taken during a test. # Output only. The screenshot used in the context of this action. The screen may have changed before the action was actually taken.
193 &quot;height&quot;: 42, # Output only. The height of the screenshot, in pixels.
194 &quot;uri&quot;: &quot;A String&quot;, # Output only. The URI of the screenshot.
195 &quot;width&quot;: 42, # Output only. The width of the screenshot, in pixels.
196 },
197 &quot;swipe&quot;: { # A swipe action. # Output only. A swipe action.
198 &quot;end&quot;: { # Point for describing bounding boxes tap locations Top left is 0,0 # Output only. The end point of the swipe.
199 &quot;xCoordinate&quot;: 42,
200 &quot;yCoordinate&quot;: 42,
201 },
202 &quot;start&quot;: { # Point for describing bounding boxes tap locations Top left is 0,0 # Output only. The start point of the swipe.
203 &quot;xCoordinate&quot;: 42,
204 &quot;yCoordinate&quot;: 42,
205 },
206 },
207 &quot;tap&quot;: { # Point for describing bounding boxes tap locations Top left is 0,0 # Output only. A tap action.
208 &quot;xCoordinate&quot;: 42,
209 &quot;yCoordinate&quot;: 42,
210 },
211 &quot;targetFoldedState&quot;: &quot;A String&quot;, # Output only. The target folded state of the device in a set folded state action. The valid string values are device-dependent, and can be found using `adb shell cmd device_state print-states`.
212 &quot;targetOrientation&quot;: &quot;A String&quot;, # Output only. The target orientation of the device in a set orientation action.
213 &quot;textInput&quot;: &quot;A String&quot;, # Output only. A text input action, that types some text into whatever field is currently focused, if any. Unlike `enter_text` this action requires that the field be brought into focus first, for example by emitting a tap action before this one.
214 &quot;wait&quot;: { # A wait action. # Output only. A wait action.
215 &quot;duration&quot;: &quot;A String&quot;, # Output only. The duration of the wait.
216 },
217 },
218 ],
219 },
220 &quot;explanation&quot;: &quot;A String&quot;, # Output only. An explanation justifying why the action was taken.
221 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The time at which the action started.
222 &quot;terminalAction&quot;: { # An action taken by the AI to end the goal. # Output only. An action taken by the AI to end the goal.
223 &quot;reason&quot;: &quot;A String&quot;, # Output only. The reason why this goal was ended.
224 &quot;screenshot&quot;: { # A device screenshot taken during a test. # Output only. The screenshot used in the context of this terminal action.
225 &quot;height&quot;: 42, # Output only. The height of the screenshot, in pixels.
226 &quot;uri&quot;: &quot;A String&quot;, # Output only. The URI of the screenshot.
227 &quot;width&quot;: 42, # Output only. The width of the screenshot, in pixels.
228 },
229 },
230 },
231 ],
232 },
233 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the step
234 &quot;step&quot;: { # A step to be accomplished by the AI # Required. The step performed by the AI
235 &quot;assertion&quot;: &quot;A String&quot;, # An assertion to be checked by the AI
236 &quot;goal&quot;: &quot;A String&quot;, # A goal to be accomplished by the AI
237 &quot;hint&quot;: &quot;A String&quot;, # Optional. Hint text containing suggestions to help the agent accomplish the goal
238 &quot;successCriteria&quot;: &quot;A String&quot;, # Optional. A visual description of the screen&#x27;s expected state after the step has been successfully completed. This is referred to as the &quot;final screen assertion&quot; in the Firebase console and CLI tools. This field must be provided for the last step in a test case, and is optional for all other steps.
239 &quot;testCase&quot;: &quot;A String&quot;, # Output only. The test case that contained this step. Note: The test case may have changed or been deleted since this step was created. Format: `projects/{project_number}/apps/{app}/testCases/{test_case}`
240 },
241 },
242 ],
243 &quot;appCrash&quot;: { # An app crash that occurred during an automated test. # Output only. An app crash, if any occurred during the test.
244 &quot;message&quot;: &quot;A String&quot;, # Output only. The message associated with the crash.
245 &quot;stackTrace&quot;: &quot;A String&quot;, # Output only. The raw stack trace.
246 },
247 &quot;crawlGraphUri&quot;: &quot;A String&quot;, # Output only. A URI to an image of the Robo crawl graph.
248 &quot;device&quot;: { # A device on which automated tests can be run. # Required. The device that the test was run on.
249 &quot;locale&quot;: &quot;A String&quot;, # Optional. The locale of the device (e.g. &quot;en_US&quot; for US English) during the test.
250 &quot;model&quot;: &quot;A String&quot;, # Required. The device model.
251 &quot;orientation&quot;: &quot;A String&quot;, # Optional. The orientation of the device during the test.
252 &quot;version&quot;: &quot;A String&quot;, # Required. The version of the device (API level on Android).
253 },
254 &quot;executionType&quot;: &quot;A String&quot;, # Output only. The type of execution for the test.
255 &quot;failedReason&quot;: &quot;A String&quot;, # Output only. The reason why the test failed.
256 &quot;finalAiAssertionMissing&quot;: True or False, # Output only. Indicates that the test replayed saved actions and concluded without a final AI assertion.
257 &quot;inconclusiveReason&quot;: &quot;A String&quot;, # Output only. The reason why the test was inconclusive.
258 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the device execution resource. Format: `projects/{project_number}/apps/{app}/releases/{release}/tests/{test}/deviceExecutions/{device_execution}`
259 &quot;originDeviceExecution&quot;: &quot;A String&quot;, # Output only. The device execution from which cached steps were used during this execution. Note: This field is only populated for ACTION_BASED_REPLAY executions. If the original device execution no longer exists, this field will be empty. Format: `projects/{project_number}/apps/{app}/releases/{release}/tests/{test}/deviceExecutions/{device_execution}`
260 &quot;resultsStoragePath&quot;: &quot;A String&quot;, # Output only. The path to a directory in Cloud Storage that will eventually contain the results for this execution. For example, gs://bucket/Nexus5-18-en-portrait.
261 &quot;roboStats&quot;: { # Statistics collected during a Robo test. # Output only. The statistics collected during the Robo test.
262 &quot;actionsPerformed&quot;: 42, # Output only. Number of actions that crawler performed.
263 &quot;crawlDuration&quot;: &quot;A String&quot;, # Output only. Duration of crawl.
264 &quot;distinctVisitedScreens&quot;: 42, # Output only. Number of distinct screens visited.
265 &quot;mainActivityCrawlTimedOut&quot;: True or False, # Output only. Whether the main activity crawl timed out.
266 },
267 &quot;screenshotUris&quot;: [ # Output only. A list of screenshot image URIs taken from the Robo crawl. The file names are numbered by the order in which they were taken.
268 &quot;A String&quot;,
269 ],
270 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the test.
271 &quot;videoStartTime&quot;: &quot;A String&quot;, # Output only. The time at which the video started recording.
272 &quot;videoUri&quot;: &quot;A String&quot;, # Output only. A URI to a video of the test run.
273 },
274 ],
275 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the release test. Required if the release test is created with multiple goals.
276 &quot;loginCredential&quot;: { # Login credential for automated tests # Optional. Input only. Login credentials for the test. Input only.
277 &quot;fieldHints&quot;: { # Hints to the crawler for identifying input fields # Optional. Hints to the crawler for identifying input fields
278 &quot;passwordResourceName&quot;: &quot;A String&quot;, # Required. The Android resource name of the password 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
279 &quot;usernameResourceName&quot;: &quot;A String&quot;, # Required. The Android resource name of the username 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
280 },
281 &quot;google&quot;: True or False, # Optional. Are these credentials for Google?
282 &quot;password&quot;: &quot;A String&quot;, # Optional. Password for automated tests
283 &quot;username&quot;: &quot;A String&quot;, # Optional. Username for automated tests
284 },
285 &quot;name&quot;: &quot;A String&quot;, # The name of the release test resource. Format: `projects/{project_number}/apps/{app}/releases/{release}/tests/{test}`
286 &quot;resultsBucket&quot;: &quot;A String&quot;, # Optional. Input only. The custom Cloud Storage bucket where test results are stored. Format: `projects/{project_number}/buckets/{bucket}` If not provided, the default test lab bucket is used.
287 &quot;testCase&quot;: &quot;A String&quot;, # Optional. The test case that was used to generate this release test. Note: The test case may have changed or been deleted since the release test was created. Format: `projects/{project_number}/apps/{app}/testCases/{test_case}`
288 &quot;testState&quot;: &quot;A String&quot;, # Output only. The state of the release test.
289 }
290
291 releaseTestId: string, Optional. The ID to use for the test, which will become the final component of the test&#x27;s resource name. This value should be 4-63 characters, and valid characters are /a-z-/. If it is not provided one will be automatically generated.
292 x__xgafv: string, V1 error format.
293 Allowed values
294 1 - v1 error format
295 2 - v2 error format
296
297 Returns:
298 An object of the form:
299
300 { # Instance of an automated test for a release.
301 &quot;aiInstructions&quot;: { # Optional. Instructions for AI driven test.
302 &quot;steps&quot;: [ # Required. Steps to be accomplished by the AI
303 { # A step to be accomplished by the AI
304 &quot;assertion&quot;: &quot;A String&quot;, # An assertion to be checked by the AI
305 &quot;goal&quot;: &quot;A String&quot;, # A goal to be accomplished by the AI
306 &quot;hint&quot;: &quot;A String&quot;, # Optional. Hint text containing suggestions to help the agent accomplish the goal
307 &quot;successCriteria&quot;: &quot;A String&quot;, # Optional. A visual description of the screen&#x27;s expected state after the step has been successfully completed. This is referred to as the &quot;final screen assertion&quot; in the Firebase console and CLI tools. This field must be provided for the last step in a test case, and is optional for all other steps.
308 &quot;testCase&quot;: &quot;A String&quot;, # Output only. The test case that contained this step. Note: The test case may have changed or been deleted since this step was created. Format: `projects/{project_number}/apps/{app}/testCases/{test_case}`
309 },
310 ],
311 },
312 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the test was run.
313 &quot;deviceExecutions&quot;: [ # Required. The results of the test on each device.
314 { # The results of running an automated test on a particular device.
315 &quot;aiStepResults&quot;: [ # Output only. Results of the AI steps if passed in
316 { # Captures the results of an AiStep
317 &quot;assertionDetails&quot;: { # Details for an assertion step. # Output only. Details for an assertion step.
318 &quot;explanation&quot;: &quot;A String&quot;, # Output only. An explanation justifying the assertion result.
319 &quot;result&quot;: True or False, # Output only. The result of the assertion.
320 &quot;screenshot&quot;: { # A device screenshot taken during a test. # Output only. The screenshot used in the context of this assertion.
321 &quot;height&quot;: 42, # Output only. The height of the screenshot, in pixels.
322 &quot;uri&quot;: &quot;A String&quot;, # Output only. The URI of the screenshot.
323 &quot;width&quot;: 42, # Output only. The width of the screenshot, in pixels.
324 },
325 },
326 &quot;goalDetails&quot;: { # Details for a goal step. # Output only. Details for a goal step.
327 &quot;goalActions&quot;: [ # Output only. The actions taken by the AI while attempting to accomplish the goal.
328 { # An action taken by the AI agent while attempting to accomplish a goal.
329 &quot;cachingType&quot;: &quot;A String&quot;, # Output only. The type of caching used to determine the action.
330 &quot;debugInfo&quot;: { # Information to help the customer understand why the agent took this action. # Output only. Debug information explaining why the agent to the specific action.
331 &quot;annotatedScreenshotUri&quot;: &quot;A String&quot;, # Output only. URI of the screenshot with elements labeled which was used by the agent.
332 &quot;jsonUri&quot;: &quot;A String&quot;, # Output only. Structured data explaining the agent&#x27;s choice.
333 },
334 &quot;deviceAction&quot;: { # A high level action taken by the AI on the device, potentially involving multiple taps, text entries, waits, etc. # Output only. A high level action taken by the AI on the device.
335 &quot;description&quot;: &quot;A String&quot;, # Output only. A short description of the high level action taken by the AI agent.
336 &quot;deviceInteractions&quot;: [ # Output only. The interactions made with the device as part of this higher level action taken by the agent, such as taps, text entries, waits, etc.
337 { # An interaction with the device, such as a tap, text entry, wait, etc.
338 &quot;backAction&quot;: { # A back action. # Output only. A back action.
339 },
340 &quot;dragAndDrop&quot;: { # A drag and drop action. # Output only. A drag and drop action.
341 &quot;end&quot;: { # Point for describing bounding boxes tap locations Top left is 0,0 # Output only. The end point of the drag and drop.
342 &quot;xCoordinate&quot;: 42,
343 &quot;yCoordinate&quot;: 42,
344 },
345 &quot;start&quot;: { # Point for describing bounding boxes tap locations Top left is 0,0 # Output only. The start point of the drag and drop.
346 &quot;xCoordinate&quot;: 42,
347 &quot;yCoordinate&quot;: 42,
348 },
349 },
350 &quot;enterText&quot;: { # A text entry action, that enters text into a particular text field, clearing any existing text in the field. # Output only. A text entry action, that enters text into a particular text field, clearing any existing text in the field. Unlike `text_input` this action does not require any other actions such as a tap to be performed before it can enter the text.
351 &quot;elementBounds&quot;: { # Rectangle for describing bounding boxes # Output only. The visible bounds of the element to enter text into.
352 &quot;bottom&quot;: 42,
353 &quot;left&quot;: 42,
354 &quot;right&quot;: 42,
355 &quot;top&quot;: 42,
356 },
357 &quot;text&quot;: &quot;A String&quot;, # Output only. The text to enter.
358 },
359 &quot;keyCode&quot;: &quot;A String&quot;, # Output only. Key code for a key event action.
360 &quot;longPress&quot;: { # Point for describing bounding boxes tap locations Top left is 0,0 # Output only. A long press (tap and hold) action.
361 &quot;xCoordinate&quot;: 42,
362 &quot;yCoordinate&quot;: 42,
363 },
364 &quot;screenshot&quot;: { # A device screenshot taken during a test. # Output only. The screenshot used in the context of this action. The screen may have changed before the action was actually taken.
365 &quot;height&quot;: 42, # Output only. The height of the screenshot, in pixels.
366 &quot;uri&quot;: &quot;A String&quot;, # Output only. The URI of the screenshot.
367 &quot;width&quot;: 42, # Output only. The width of the screenshot, in pixels.
368 },
369 &quot;swipe&quot;: { # A swipe action. # Output only. A swipe action.
370 &quot;end&quot;: { # Point for describing bounding boxes tap locations Top left is 0,0 # Output only. The end point of the swipe.
371 &quot;xCoordinate&quot;: 42,
372 &quot;yCoordinate&quot;: 42,
373 },
374 &quot;start&quot;: { # Point for describing bounding boxes tap locations Top left is 0,0 # Output only. The start point of the swipe.
375 &quot;xCoordinate&quot;: 42,
376 &quot;yCoordinate&quot;: 42,
377 },
378 },
379 &quot;tap&quot;: { # Point for describing bounding boxes tap locations Top left is 0,0 # Output only. A tap action.
380 &quot;xCoordinate&quot;: 42,
381 &quot;yCoordinate&quot;: 42,
382 },
383 &quot;targetFoldedState&quot;: &quot;A String&quot;, # Output only. The target folded state of the device in a set folded state action. The valid string values are device-dependent, and can be found using `adb shell cmd device_state print-states`.
384 &quot;targetOrientation&quot;: &quot;A String&quot;, # Output only. The target orientation of the device in a set orientation action.
385 &quot;textInput&quot;: &quot;A String&quot;, # Output only. A text input action, that types some text into whatever field is currently focused, if any. Unlike `enter_text` this action requires that the field be brought into focus first, for example by emitting a tap action before this one.
386 &quot;wait&quot;: { # A wait action. # Output only. A wait action.
387 &quot;duration&quot;: &quot;A String&quot;, # Output only. The duration of the wait.
388 },
389 },
390 ],
391 },
392 &quot;explanation&quot;: &quot;A String&quot;, # Output only. An explanation justifying why the action was taken.
393 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The time at which the action started.
394 &quot;terminalAction&quot;: { # An action taken by the AI to end the goal. # Output only. An action taken by the AI to end the goal.
395 &quot;reason&quot;: &quot;A String&quot;, # Output only. The reason why this goal was ended.
396 &quot;screenshot&quot;: { # A device screenshot taken during a test. # Output only. The screenshot used in the context of this terminal action.
397 &quot;height&quot;: 42, # Output only. The height of the screenshot, in pixels.
398 &quot;uri&quot;: &quot;A String&quot;, # Output only. The URI of the screenshot.
399 &quot;width&quot;: 42, # Output only. The width of the screenshot, in pixels.
400 },
401 },
402 },
403 ],
404 },
405 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the step
406 &quot;step&quot;: { # A step to be accomplished by the AI # Required. The step performed by the AI
407 &quot;assertion&quot;: &quot;A String&quot;, # An assertion to be checked by the AI
408 &quot;goal&quot;: &quot;A String&quot;, # A goal to be accomplished by the AI
409 &quot;hint&quot;: &quot;A String&quot;, # Optional. Hint text containing suggestions to help the agent accomplish the goal
410 &quot;successCriteria&quot;: &quot;A String&quot;, # Optional. A visual description of the screen&#x27;s expected state after the step has been successfully completed. This is referred to as the &quot;final screen assertion&quot; in the Firebase console and CLI tools. This field must be provided for the last step in a test case, and is optional for all other steps.
411 &quot;testCase&quot;: &quot;A String&quot;, # Output only. The test case that contained this step. Note: The test case may have changed or been deleted since this step was created. Format: `projects/{project_number}/apps/{app}/testCases/{test_case}`
412 },
413 },
414 ],
415 &quot;appCrash&quot;: { # An app crash that occurred during an automated test. # Output only. An app crash, if any occurred during the test.
416 &quot;message&quot;: &quot;A String&quot;, # Output only. The message associated with the crash.
417 &quot;stackTrace&quot;: &quot;A String&quot;, # Output only. The raw stack trace.
418 },
419 &quot;crawlGraphUri&quot;: &quot;A String&quot;, # Output only. A URI to an image of the Robo crawl graph.
420 &quot;device&quot;: { # A device on which automated tests can be run. # Required. The device that the test was run on.
421 &quot;locale&quot;: &quot;A String&quot;, # Optional. The locale of the device (e.g. &quot;en_US&quot; for US English) during the test.
422 &quot;model&quot;: &quot;A String&quot;, # Required. The device model.
423 &quot;orientation&quot;: &quot;A String&quot;, # Optional. The orientation of the device during the test.
424 &quot;version&quot;: &quot;A String&quot;, # Required. The version of the device (API level on Android).
425 },
426 &quot;executionType&quot;: &quot;A String&quot;, # Output only. The type of execution for the test.
427 &quot;failedReason&quot;: &quot;A String&quot;, # Output only. The reason why the test failed.
428 &quot;finalAiAssertionMissing&quot;: True or False, # Output only. Indicates that the test replayed saved actions and concluded without a final AI assertion.
429 &quot;inconclusiveReason&quot;: &quot;A String&quot;, # Output only. The reason why the test was inconclusive.
430 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the device execution resource. Format: `projects/{project_number}/apps/{app}/releases/{release}/tests/{test}/deviceExecutions/{device_execution}`
431 &quot;originDeviceExecution&quot;: &quot;A String&quot;, # Output only. The device execution from which cached steps were used during this execution. Note: This field is only populated for ACTION_BASED_REPLAY executions. If the original device execution no longer exists, this field will be empty. Format: `projects/{project_number}/apps/{app}/releases/{release}/tests/{test}/deviceExecutions/{device_execution}`
432 &quot;resultsStoragePath&quot;: &quot;A String&quot;, # Output only. The path to a directory in Cloud Storage that will eventually contain the results for this execution. For example, gs://bucket/Nexus5-18-en-portrait.
433 &quot;roboStats&quot;: { # Statistics collected during a Robo test. # Output only. The statistics collected during the Robo test.
434 &quot;actionsPerformed&quot;: 42, # Output only. Number of actions that crawler performed.
435 &quot;crawlDuration&quot;: &quot;A String&quot;, # Output only. Duration of crawl.
436 &quot;distinctVisitedScreens&quot;: 42, # Output only. Number of distinct screens visited.
437 &quot;mainActivityCrawlTimedOut&quot;: True or False, # Output only. Whether the main activity crawl timed out.
438 },
439 &quot;screenshotUris&quot;: [ # Output only. A list of screenshot image URIs taken from the Robo crawl. The file names are numbered by the order in which they were taken.
440 &quot;A String&quot;,
441 ],
442 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the test.
443 &quot;videoStartTime&quot;: &quot;A String&quot;, # Output only. The time at which the video started recording.
444 &quot;videoUri&quot;: &quot;A String&quot;, # Output only. A URI to a video of the test run.
445 },
446 ],
447 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the release test. Required if the release test is created with multiple goals.
448 &quot;loginCredential&quot;: { # Login credential for automated tests # Optional. Input only. Login credentials for the test. Input only.
449 &quot;fieldHints&quot;: { # Hints to the crawler for identifying input fields # Optional. Hints to the crawler for identifying input fields
450 &quot;passwordResourceName&quot;: &quot;A String&quot;, # Required. The Android resource name of the password 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
451 &quot;usernameResourceName&quot;: &quot;A String&quot;, # Required. The Android resource name of the username 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
452 },
453 &quot;google&quot;: True or False, # Optional. Are these credentials for Google?
454 &quot;password&quot;: &quot;A String&quot;, # Optional. Password for automated tests
455 &quot;username&quot;: &quot;A String&quot;, # Optional. Username for automated tests
456 },
457 &quot;name&quot;: &quot;A String&quot;, # The name of the release test resource. Format: `projects/{project_number}/apps/{app}/releases/{release}/tests/{test}`
458 &quot;resultsBucket&quot;: &quot;A String&quot;, # Optional. Input only. The custom Cloud Storage bucket where test results are stored. Format: `projects/{project_number}/buckets/{bucket}` If not provided, the default test lab bucket is used.
459 &quot;testCase&quot;: &quot;A String&quot;, # Optional. The test case that was used to generate this release test. Note: The test case may have changed or been deleted since the release test was created. Format: `projects/{project_number}/apps/{app}/testCases/{test_case}`
460 &quot;testState&quot;: &quot;A String&quot;, # Output only. The state of the release test.
461 }</pre>
462 </div>
463
464 <div class="method">
465 <code class="details" id="get">get(name, x__xgafv=None)</code>
466 <pre>Get results for automated test run on release.
467
468 Args:
469 name: string, Required. The name of the release test resource. Format: `projects/{project_number}/apps/{app}/releases/{release}/tests/{test}` (required)
470 x__xgafv: string, V1 error format.
471 Allowed values
472 1 - v1 error format
473 2 - v2 error format
474
475 Returns:
476 An object of the form:
477
478 { # Instance of an automated test for a release.
479 &quot;aiInstructions&quot;: { # Optional. Instructions for AI driven test.
480 &quot;steps&quot;: [ # Required. Steps to be accomplished by the AI
481 { # A step to be accomplished by the AI
482 &quot;assertion&quot;: &quot;A String&quot;, # An assertion to be checked by the AI
483 &quot;goal&quot;: &quot;A String&quot;, # A goal to be accomplished by the AI
484 &quot;hint&quot;: &quot;A String&quot;, # Optional. Hint text containing suggestions to help the agent accomplish the goal
485 &quot;successCriteria&quot;: &quot;A String&quot;, # Optional. A visual description of the screen&#x27;s expected state after the step has been successfully completed. This is referred to as the &quot;final screen assertion&quot; in the Firebase console and CLI tools. This field must be provided for the last step in a test case, and is optional for all other steps.
486 &quot;testCase&quot;: &quot;A String&quot;, # Output only. The test case that contained this step. Note: The test case may have changed or been deleted since this step was created. Format: `projects/{project_number}/apps/{app}/testCases/{test_case}`
487 },
488 ],
489 },
490 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the test was run.
491 &quot;deviceExecutions&quot;: [ # Required. The results of the test on each device.
492 { # The results of running an automated test on a particular device.
493 &quot;aiStepResults&quot;: [ # Output only. Results of the AI steps if passed in
494 { # Captures the results of an AiStep
495 &quot;assertionDetails&quot;: { # Details for an assertion step. # Output only. Details for an assertion step.
496 &quot;explanation&quot;: &quot;A String&quot;, # Output only. An explanation justifying the assertion result.
497 &quot;result&quot;: True or False, # Output only. The result of the assertion.
498 &quot;screenshot&quot;: { # A device screenshot taken during a test. # Output only. The screenshot used in the context of this assertion.
499 &quot;height&quot;: 42, # Output only. The height of the screenshot, in pixels.
500 &quot;uri&quot;: &quot;A String&quot;, # Output only. The URI of the screenshot.
501 &quot;width&quot;: 42, # Output only. The width of the screenshot, in pixels.
502 },
503 },
504 &quot;goalDetails&quot;: { # Details for a goal step. # Output only. Details for a goal step.
505 &quot;goalActions&quot;: [ # Output only. The actions taken by the AI while attempting to accomplish the goal.
506 { # An action taken by the AI agent while attempting to accomplish a goal.
507 &quot;cachingType&quot;: &quot;A String&quot;, # Output only. The type of caching used to determine the action.
508 &quot;debugInfo&quot;: { # Information to help the customer understand why the agent took this action. # Output only. Debug information explaining why the agent to the specific action.
509 &quot;annotatedScreenshotUri&quot;: &quot;A String&quot;, # Output only. URI of the screenshot with elements labeled which was used by the agent.
510 &quot;jsonUri&quot;: &quot;A String&quot;, # Output only. Structured data explaining the agent&#x27;s choice.
511 },
512 &quot;deviceAction&quot;: { # A high level action taken by the AI on the device, potentially involving multiple taps, text entries, waits, etc. # Output only. A high level action taken by the AI on the device.
513 &quot;description&quot;: &quot;A String&quot;, # Output only. A short description of the high level action taken by the AI agent.
514 &quot;deviceInteractions&quot;: [ # Output only. The interactions made with the device as part of this higher level action taken by the agent, such as taps, text entries, waits, etc.
515 { # An interaction with the device, such as a tap, text entry, wait, etc.
516 &quot;backAction&quot;: { # A back action. # Output only. A back action.
517 },
518 &quot;dragAndDrop&quot;: { # A drag and drop action. # Output only. A drag and drop action.
519 &quot;end&quot;: { # Point for describing bounding boxes tap locations Top left is 0,0 # Output only. The end point of the drag and drop.
520 &quot;xCoordinate&quot;: 42,
521 &quot;yCoordinate&quot;: 42,
522 },
523 &quot;start&quot;: { # Point for describing bounding boxes tap locations Top left is 0,0 # Output only. The start point of the drag and drop.
524 &quot;xCoordinate&quot;: 42,
525 &quot;yCoordinate&quot;: 42,
526 },
527 },
528 &quot;enterText&quot;: { # A text entry action, that enters text into a particular text field, clearing any existing text in the field. # Output only. A text entry action, that enters text into a particular text field, clearing any existing text in the field. Unlike `text_input` this action does not require any other actions such as a tap to be performed before it can enter the text.
529 &quot;elementBounds&quot;: { # Rectangle for describing bounding boxes # Output only. The visible bounds of the element to enter text into.
530 &quot;bottom&quot;: 42,
531 &quot;left&quot;: 42,
532 &quot;right&quot;: 42,
533 &quot;top&quot;: 42,
534 },
535 &quot;text&quot;: &quot;A String&quot;, # Output only. The text to enter.
536 },
537 &quot;keyCode&quot;: &quot;A String&quot;, # Output only. Key code for a key event action.
538 &quot;longPress&quot;: { # Point for describing bounding boxes tap locations Top left is 0,0 # Output only. A long press (tap and hold) action.
539 &quot;xCoordinate&quot;: 42,
540 &quot;yCoordinate&quot;: 42,
541 },
542 &quot;screenshot&quot;: { # A device screenshot taken during a test. # Output only. The screenshot used in the context of this action. The screen may have changed before the action was actually taken.
543 &quot;height&quot;: 42, # Output only. The height of the screenshot, in pixels.
544 &quot;uri&quot;: &quot;A String&quot;, # Output only. The URI of the screenshot.
545 &quot;width&quot;: 42, # Output only. The width of the screenshot, in pixels.
546 },
547 &quot;swipe&quot;: { # A swipe action. # Output only. A swipe action.
548 &quot;end&quot;: { # Point for describing bounding boxes tap locations Top left is 0,0 # Output only. The end point of the swipe.
549 &quot;xCoordinate&quot;: 42,
550 &quot;yCoordinate&quot;: 42,
551 },
552 &quot;start&quot;: { # Point for describing bounding boxes tap locations Top left is 0,0 # Output only. The start point of the swipe.
553 &quot;xCoordinate&quot;: 42,
554 &quot;yCoordinate&quot;: 42,
555 },
556 },
557 &quot;tap&quot;: { # Point for describing bounding boxes tap locations Top left is 0,0 # Output only. A tap action.
558 &quot;xCoordinate&quot;: 42,
559 &quot;yCoordinate&quot;: 42,
560 },
561 &quot;targetFoldedState&quot;: &quot;A String&quot;, # Output only. The target folded state of the device in a set folded state action. The valid string values are device-dependent, and can be found using `adb shell cmd device_state print-states`.
562 &quot;targetOrientation&quot;: &quot;A String&quot;, # Output only. The target orientation of the device in a set orientation action.
563 &quot;textInput&quot;: &quot;A String&quot;, # Output only. A text input action, that types some text into whatever field is currently focused, if any. Unlike `enter_text` this action requires that the field be brought into focus first, for example by emitting a tap action before this one.
564 &quot;wait&quot;: { # A wait action. # Output only. A wait action.
565 &quot;duration&quot;: &quot;A String&quot;, # Output only. The duration of the wait.
566 },
567 },
568 ],
569 },
570 &quot;explanation&quot;: &quot;A String&quot;, # Output only. An explanation justifying why the action was taken.
571 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The time at which the action started.
572 &quot;terminalAction&quot;: { # An action taken by the AI to end the goal. # Output only. An action taken by the AI to end the goal.
573 &quot;reason&quot;: &quot;A String&quot;, # Output only. The reason why this goal was ended.
574 &quot;screenshot&quot;: { # A device screenshot taken during a test. # Output only. The screenshot used in the context of this terminal action.
575 &quot;height&quot;: 42, # Output only. The height of the screenshot, in pixels.
576 &quot;uri&quot;: &quot;A String&quot;, # Output only. The URI of the screenshot.
577 &quot;width&quot;: 42, # Output only. The width of the screenshot, in pixels.
578 },
579 },
580 },
581 ],
582 },
583 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the step
584 &quot;step&quot;: { # A step to be accomplished by the AI # Required. The step performed by the AI
585 &quot;assertion&quot;: &quot;A String&quot;, # An assertion to be checked by the AI
586 &quot;goal&quot;: &quot;A String&quot;, # A goal to be accomplished by the AI
587 &quot;hint&quot;: &quot;A String&quot;, # Optional. Hint text containing suggestions to help the agent accomplish the goal
588 &quot;successCriteria&quot;: &quot;A String&quot;, # Optional. A visual description of the screen&#x27;s expected state after the step has been successfully completed. This is referred to as the &quot;final screen assertion&quot; in the Firebase console and CLI tools. This field must be provided for the last step in a test case, and is optional for all other steps.
589 &quot;testCase&quot;: &quot;A String&quot;, # Output only. The test case that contained this step. Note: The test case may have changed or been deleted since this step was created. Format: `projects/{project_number}/apps/{app}/testCases/{test_case}`
590 },
591 },
592 ],
593 &quot;appCrash&quot;: { # An app crash that occurred during an automated test. # Output only. An app crash, if any occurred during the test.
594 &quot;message&quot;: &quot;A String&quot;, # Output only. The message associated with the crash.
595 &quot;stackTrace&quot;: &quot;A String&quot;, # Output only. The raw stack trace.
596 },
597 &quot;crawlGraphUri&quot;: &quot;A String&quot;, # Output only. A URI to an image of the Robo crawl graph.
598 &quot;device&quot;: { # A device on which automated tests can be run. # Required. The device that the test was run on.
599 &quot;locale&quot;: &quot;A String&quot;, # Optional. The locale of the device (e.g. &quot;en_US&quot; for US English) during the test.
600 &quot;model&quot;: &quot;A String&quot;, # Required. The device model.
601 &quot;orientation&quot;: &quot;A String&quot;, # Optional. The orientation of the device during the test.
602 &quot;version&quot;: &quot;A String&quot;, # Required. The version of the device (API level on Android).
603 },
604 &quot;executionType&quot;: &quot;A String&quot;, # Output only. The type of execution for the test.
605 &quot;failedReason&quot;: &quot;A String&quot;, # Output only. The reason why the test failed.
606 &quot;finalAiAssertionMissing&quot;: True or False, # Output only. Indicates that the test replayed saved actions and concluded without a final AI assertion.
607 &quot;inconclusiveReason&quot;: &quot;A String&quot;, # Output only. The reason why the test was inconclusive.
608 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the device execution resource. Format: `projects/{project_number}/apps/{app}/releases/{release}/tests/{test}/deviceExecutions/{device_execution}`
609 &quot;originDeviceExecution&quot;: &quot;A String&quot;, # Output only. The device execution from which cached steps were used during this execution. Note: This field is only populated for ACTION_BASED_REPLAY executions. If the original device execution no longer exists, this field will be empty. Format: `projects/{project_number}/apps/{app}/releases/{release}/tests/{test}/deviceExecutions/{device_execution}`
610 &quot;resultsStoragePath&quot;: &quot;A String&quot;, # Output only. The path to a directory in Cloud Storage that will eventually contain the results for this execution. For example, gs://bucket/Nexus5-18-en-portrait.
611 &quot;roboStats&quot;: { # Statistics collected during a Robo test. # Output only. The statistics collected during the Robo test.
612 &quot;actionsPerformed&quot;: 42, # Output only. Number of actions that crawler performed.
613 &quot;crawlDuration&quot;: &quot;A String&quot;, # Output only. Duration of crawl.
614 &quot;distinctVisitedScreens&quot;: 42, # Output only. Number of distinct screens visited.
615 &quot;mainActivityCrawlTimedOut&quot;: True or False, # Output only. Whether the main activity crawl timed out.
616 },
617 &quot;screenshotUris&quot;: [ # Output only. A list of screenshot image URIs taken from the Robo crawl. The file names are numbered by the order in which they were taken.
618 &quot;A String&quot;,
619 ],
620 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the test.
621 &quot;videoStartTime&quot;: &quot;A String&quot;, # Output only. The time at which the video started recording.
622 &quot;videoUri&quot;: &quot;A String&quot;, # Output only. A URI to a video of the test run.
623 },
624 ],
625 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the release test. Required if the release test is created with multiple goals.
626 &quot;loginCredential&quot;: { # Login credential for automated tests # Optional. Input only. Login credentials for the test. Input only.
627 &quot;fieldHints&quot;: { # Hints to the crawler for identifying input fields # Optional. Hints to the crawler for identifying input fields
628 &quot;passwordResourceName&quot;: &quot;A String&quot;, # Required. The Android resource name of the password 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
629 &quot;usernameResourceName&quot;: &quot;A String&quot;, # Required. The Android resource name of the username 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
630 },
631 &quot;google&quot;: True or False, # Optional. Are these credentials for Google?
632 &quot;password&quot;: &quot;A String&quot;, # Optional. Password for automated tests
633 &quot;username&quot;: &quot;A String&quot;, # Optional. Username for automated tests
634 },
635 &quot;name&quot;: &quot;A String&quot;, # The name of the release test resource. Format: `projects/{project_number}/apps/{app}/releases/{release}/tests/{test}`
636 &quot;resultsBucket&quot;: &quot;A String&quot;, # Optional. Input only. The custom Cloud Storage bucket where test results are stored. Format: `projects/{project_number}/buckets/{bucket}` If not provided, the default test lab bucket is used.
637 &quot;testCase&quot;: &quot;A String&quot;, # Optional. The test case that was used to generate this release test. Note: The test case may have changed or been deleted since the release test was created. Format: `projects/{project_number}/apps/{app}/testCases/{test_case}`
638 &quot;testState&quot;: &quot;A String&quot;, # Output only. The state of the release test.
639 }</pre>
640 </div>
641
642 <div class="method">
643 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, view=None, x__xgafv=None)</code>
644 <pre>List results for automated tests run on release.
645
646 Args:
647 parent: string, Required. The name of the release resource, which is the parent of the tests Format: `projects/{project_number}/apps/{app}/releases/{release}` (required)
648 pageSize: integer, Optional. The maximum number of tests to return. The service may return fewer than this value.
649 pageToken: string, Optional. A page token, received from a previous `ListReleaseTests` call. Provide this to retrieve the subsequent page.
650 view: string, Optional. The requested view on the returned ReleaseTests. Defaults to the basic view.
651 Allowed values
652 RELEASE_TEST_VIEW_UNSPECIFIED - The default / unset value. The default view depends on the RPC.
653 RELEASE_TEST_VIEW_BASIC - Include basic metadata about the release test and its status, but not the full result details. This is the default value for ListReleaseTests.
654 RELEASE_TEST_VIEW_FULL - Include everything.
655 x__xgafv: string, V1 error format.
656 Allowed values
657 1 - v1 error format
658 2 - v2 error format
659
660 Returns:
661 An object of the form:
662
663 { # The response message for `ListReleaseTests`.
664 &quot;nextPageToken&quot;: &quot;A String&quot;, # A short-lived token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted, there are no subsequent pages.
665 &quot;releaseTests&quot;: [ # The tests listed.
666 { # Instance of an automated test for a release.
667 &quot;aiInstructions&quot;: { # Optional. Instructions for AI driven test.
668 &quot;steps&quot;: [ # Required. Steps to be accomplished by the AI
669 { # A step to be accomplished by the AI
670 &quot;assertion&quot;: &quot;A String&quot;, # An assertion to be checked by the AI
671 &quot;goal&quot;: &quot;A String&quot;, # A goal to be accomplished by the AI
672 &quot;hint&quot;: &quot;A String&quot;, # Optional. Hint text containing suggestions to help the agent accomplish the goal
673 &quot;successCriteria&quot;: &quot;A String&quot;, # Optional. A visual description of the screen&#x27;s expected state after the step has been successfully completed. This is referred to as the &quot;final screen assertion&quot; in the Firebase console and CLI tools. This field must be provided for the last step in a test case, and is optional for all other steps.
674 &quot;testCase&quot;: &quot;A String&quot;, # Output only. The test case that contained this step. Note: The test case may have changed or been deleted since this step was created. Format: `projects/{project_number}/apps/{app}/testCases/{test_case}`
675 },
676 ],
677 },
678 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp when the test was run.
679 &quot;deviceExecutions&quot;: [ # Required. The results of the test on each device.
680 { # The results of running an automated test on a particular device.
681 &quot;aiStepResults&quot;: [ # Output only. Results of the AI steps if passed in
682 { # Captures the results of an AiStep
683 &quot;assertionDetails&quot;: { # Details for an assertion step. # Output only. Details for an assertion step.
684 &quot;explanation&quot;: &quot;A String&quot;, # Output only. An explanation justifying the assertion result.
685 &quot;result&quot;: True or False, # Output only. The result of the assertion.
686 &quot;screenshot&quot;: { # A device screenshot taken during a test. # Output only. The screenshot used in the context of this assertion.
687 &quot;height&quot;: 42, # Output only. The height of the screenshot, in pixels.
688 &quot;uri&quot;: &quot;A String&quot;, # Output only. The URI of the screenshot.
689 &quot;width&quot;: 42, # Output only. The width of the screenshot, in pixels.
690 },
691 },
692 &quot;goalDetails&quot;: { # Details for a goal step. # Output only. Details for a goal step.
693 &quot;goalActions&quot;: [ # Output only. The actions taken by the AI while attempting to accomplish the goal.
694 { # An action taken by the AI agent while attempting to accomplish a goal.
695 &quot;cachingType&quot;: &quot;A String&quot;, # Output only. The type of caching used to determine the action.
696 &quot;debugInfo&quot;: { # Information to help the customer understand why the agent took this action. # Output only. Debug information explaining why the agent to the specific action.
697 &quot;annotatedScreenshotUri&quot;: &quot;A String&quot;, # Output only. URI of the screenshot with elements labeled which was used by the agent.
698 &quot;jsonUri&quot;: &quot;A String&quot;, # Output only. Structured data explaining the agent&#x27;s choice.
699 },
700 &quot;deviceAction&quot;: { # A high level action taken by the AI on the device, potentially involving multiple taps, text entries, waits, etc. # Output only. A high level action taken by the AI on the device.
701 &quot;description&quot;: &quot;A String&quot;, # Output only. A short description of the high level action taken by the AI agent.
702 &quot;deviceInteractions&quot;: [ # Output only. The interactions made with the device as part of this higher level action taken by the agent, such as taps, text entries, waits, etc.
703 { # An interaction with the device, such as a tap, text entry, wait, etc.
704 &quot;backAction&quot;: { # A back action. # Output only. A back action.
705 },
706 &quot;dragAndDrop&quot;: { # A drag and drop action. # Output only. A drag and drop action.
707 &quot;end&quot;: { # Point for describing bounding boxes tap locations Top left is 0,0 # Output only. The end point of the drag and drop.
708 &quot;xCoordinate&quot;: 42,
709 &quot;yCoordinate&quot;: 42,
710 },
711 &quot;start&quot;: { # Point for describing bounding boxes tap locations Top left is 0,0 # Output only. The start point of the drag and drop.
712 &quot;xCoordinate&quot;: 42,
713 &quot;yCoordinate&quot;: 42,
714 },
715 },
716 &quot;enterText&quot;: { # A text entry action, that enters text into a particular text field, clearing any existing text in the field. # Output only. A text entry action, that enters text into a particular text field, clearing any existing text in the field. Unlike `text_input` this action does not require any other actions such as a tap to be performed before it can enter the text.
717 &quot;elementBounds&quot;: { # Rectangle for describing bounding boxes # Output only. The visible bounds of the element to enter text into.
718 &quot;bottom&quot;: 42,
719 &quot;left&quot;: 42,
720 &quot;right&quot;: 42,
721 &quot;top&quot;: 42,
722 },
723 &quot;text&quot;: &quot;A String&quot;, # Output only. The text to enter.
724 },
725 &quot;keyCode&quot;: &quot;A String&quot;, # Output only. Key code for a key event action.
726 &quot;longPress&quot;: { # Point for describing bounding boxes tap locations Top left is 0,0 # Output only. A long press (tap and hold) action.
727 &quot;xCoordinate&quot;: 42,
728 &quot;yCoordinate&quot;: 42,
729 },
730 &quot;screenshot&quot;: { # A device screenshot taken during a test. # Output only. The screenshot used in the context of this action. The screen may have changed before the action was actually taken.
731 &quot;height&quot;: 42, # Output only. The height of the screenshot, in pixels.
732 &quot;uri&quot;: &quot;A String&quot;, # Output only. The URI of the screenshot.
733 &quot;width&quot;: 42, # Output only. The width of the screenshot, in pixels.
734 },
735 &quot;swipe&quot;: { # A swipe action. # Output only. A swipe action.
736 &quot;end&quot;: { # Point for describing bounding boxes tap locations Top left is 0,0 # Output only. The end point of the swipe.
737 &quot;xCoordinate&quot;: 42,
738 &quot;yCoordinate&quot;: 42,
739 },
740 &quot;start&quot;: { # Point for describing bounding boxes tap locations Top left is 0,0 # Output only. The start point of the swipe.
741 &quot;xCoordinate&quot;: 42,
742 &quot;yCoordinate&quot;: 42,
743 },
744 },
745 &quot;tap&quot;: { # Point for describing bounding boxes tap locations Top left is 0,0 # Output only. A tap action.
746 &quot;xCoordinate&quot;: 42,
747 &quot;yCoordinate&quot;: 42,
748 },
749 &quot;targetFoldedState&quot;: &quot;A String&quot;, # Output only. The target folded state of the device in a set folded state action. The valid string values are device-dependent, and can be found using `adb shell cmd device_state print-states`.
750 &quot;targetOrientation&quot;: &quot;A String&quot;, # Output only. The target orientation of the device in a set orientation action.
751 &quot;textInput&quot;: &quot;A String&quot;, # Output only. A text input action, that types some text into whatever field is currently focused, if any. Unlike `enter_text` this action requires that the field be brought into focus first, for example by emitting a tap action before this one.
752 &quot;wait&quot;: { # A wait action. # Output only. A wait action.
753 &quot;duration&quot;: &quot;A String&quot;, # Output only. The duration of the wait.
754 },
755 },
756 ],
757 },
758 &quot;explanation&quot;: &quot;A String&quot;, # Output only. An explanation justifying why the action was taken.
759 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The time at which the action started.
760 &quot;terminalAction&quot;: { # An action taken by the AI to end the goal. # Output only. An action taken by the AI to end the goal.
761 &quot;reason&quot;: &quot;A String&quot;, # Output only. The reason why this goal was ended.
762 &quot;screenshot&quot;: { # A device screenshot taken during a test. # Output only. The screenshot used in the context of this terminal action.
763 &quot;height&quot;: 42, # Output only. The height of the screenshot, in pixels.
764 &quot;uri&quot;: &quot;A String&quot;, # Output only. The URI of the screenshot.
765 &quot;width&quot;: 42, # Output only. The width of the screenshot, in pixels.
766 },
767 },
768 },
769 ],
770 },
771 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the step
772 &quot;step&quot;: { # A step to be accomplished by the AI # Required. The step performed by the AI
773 &quot;assertion&quot;: &quot;A String&quot;, # An assertion to be checked by the AI
774 &quot;goal&quot;: &quot;A String&quot;, # A goal to be accomplished by the AI
775 &quot;hint&quot;: &quot;A String&quot;, # Optional. Hint text containing suggestions to help the agent accomplish the goal
776 &quot;successCriteria&quot;: &quot;A String&quot;, # Optional. A visual description of the screen&#x27;s expected state after the step has been successfully completed. This is referred to as the &quot;final screen assertion&quot; in the Firebase console and CLI tools. This field must be provided for the last step in a test case, and is optional for all other steps.
777 &quot;testCase&quot;: &quot;A String&quot;, # Output only. The test case that contained this step. Note: The test case may have changed or been deleted since this step was created. Format: `projects/{project_number}/apps/{app}/testCases/{test_case}`
778 },
779 },
780 ],
781 &quot;appCrash&quot;: { # An app crash that occurred during an automated test. # Output only. An app crash, if any occurred during the test.
782 &quot;message&quot;: &quot;A String&quot;, # Output only. The message associated with the crash.
783 &quot;stackTrace&quot;: &quot;A String&quot;, # Output only. The raw stack trace.
784 },
785 &quot;crawlGraphUri&quot;: &quot;A String&quot;, # Output only. A URI to an image of the Robo crawl graph.
786 &quot;device&quot;: { # A device on which automated tests can be run. # Required. The device that the test was run on.
787 &quot;locale&quot;: &quot;A String&quot;, # Optional. The locale of the device (e.g. &quot;en_US&quot; for US English) during the test.
788 &quot;model&quot;: &quot;A String&quot;, # Required. The device model.
789 &quot;orientation&quot;: &quot;A String&quot;, # Optional. The orientation of the device during the test.
790 &quot;version&quot;: &quot;A String&quot;, # Required. The version of the device (API level on Android).
791 },
792 &quot;executionType&quot;: &quot;A String&quot;, # Output only. The type of execution for the test.
793 &quot;failedReason&quot;: &quot;A String&quot;, # Output only. The reason why the test failed.
794 &quot;finalAiAssertionMissing&quot;: True or False, # Output only. Indicates that the test replayed saved actions and concluded without a final AI assertion.
795 &quot;inconclusiveReason&quot;: &quot;A String&quot;, # Output only. The reason why the test was inconclusive.
796 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the device execution resource. Format: `projects/{project_number}/apps/{app}/releases/{release}/tests/{test}/deviceExecutions/{device_execution}`
797 &quot;originDeviceExecution&quot;: &quot;A String&quot;, # Output only. The device execution from which cached steps were used during this execution. Note: This field is only populated for ACTION_BASED_REPLAY executions. If the original device execution no longer exists, this field will be empty. Format: `projects/{project_number}/apps/{app}/releases/{release}/tests/{test}/deviceExecutions/{device_execution}`
798 &quot;resultsStoragePath&quot;: &quot;A String&quot;, # Output only. The path to a directory in Cloud Storage that will eventually contain the results for this execution. For example, gs://bucket/Nexus5-18-en-portrait.
799 &quot;roboStats&quot;: { # Statistics collected during a Robo test. # Output only. The statistics collected during the Robo test.
800 &quot;actionsPerformed&quot;: 42, # Output only. Number of actions that crawler performed.
801 &quot;crawlDuration&quot;: &quot;A String&quot;, # Output only. Duration of crawl.
802 &quot;distinctVisitedScreens&quot;: 42, # Output only. Number of distinct screens visited.
803 &quot;mainActivityCrawlTimedOut&quot;: True or False, # Output only. Whether the main activity crawl timed out.
804 },
805 &quot;screenshotUris&quot;: [ # Output only. A list of screenshot image URIs taken from the Robo crawl. The file names are numbered by the order in which they were taken.
806 &quot;A String&quot;,
807 ],
808 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the test.
809 &quot;videoStartTime&quot;: &quot;A String&quot;, # Output only. The time at which the video started recording.
810 &quot;videoUri&quot;: &quot;A String&quot;, # Output only. A URI to a video of the test run.
811 },
812 ],
813 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Display name of the release test. Required if the release test is created with multiple goals.
814 &quot;loginCredential&quot;: { # Login credential for automated tests # Optional. Input only. Login credentials for the test. Input only.
815 &quot;fieldHints&quot;: { # Hints to the crawler for identifying input fields # Optional. Hints to the crawler for identifying input fields
816 &quot;passwordResourceName&quot;: &quot;A String&quot;, # Required. The Android resource name of the password 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
817 &quot;usernameResourceName&quot;: &quot;A String&quot;, # Required. The Android resource name of the username 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
818 },
819 &quot;google&quot;: True or False, # Optional. Are these credentials for Google?
820 &quot;password&quot;: &quot;A String&quot;, # Optional. Password for automated tests
821 &quot;username&quot;: &quot;A String&quot;, # Optional. Username for automated tests
822 },
823 &quot;name&quot;: &quot;A String&quot;, # The name of the release test resource. Format: `projects/{project_number}/apps/{app}/releases/{release}/tests/{test}`
824 &quot;resultsBucket&quot;: &quot;A String&quot;, # Optional. Input only. The custom Cloud Storage bucket where test results are stored. Format: `projects/{project_number}/buckets/{bucket}` If not provided, the default test lab bucket is used.
825 &quot;testCase&quot;: &quot;A String&quot;, # Optional. The test case that was used to generate this release test. Note: The test case may have changed or been deleted since the release test was created. Format: `projects/{project_number}/apps/{app}/testCases/{test_case}`
826 &quot;testState&quot;: &quot;A String&quot;, # Output only. The state of the release test.
827 },
828 ],
829 }</pre>
830 </div>
831
832 <div class="method">
833 <code class="details" id="list_next">list_next()</code>
834 <pre>Retrieves the next page of results.
835
836 Args:
837 previous_request: The request for the previous page. (required)
838 previous_response: The response from the request for the previous page. (required)
839
840 Returns:
841 A request object that you can call &#x27;execute()&#x27; on to request the next
842 page. Returns None if there are no more items in the collection.
843 </pre>
844 </div>
845
846 </body></html>