• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<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.testEnvironmentCatalog.html">testEnvironmentCatalog</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78  <code><a href="#get">get(environmentType, projectId=None, x__xgafv=None)</a></code></p>
79<p class="firstline">Gets the catalog of supported test environments.</p>
80<h3>Method Details</h3>
81<div class="method">
82    <code class="details" id="get">get(environmentType, projectId=None, x__xgafv=None)</code>
83  <pre>Gets the catalog of supported test environments.
84
85May return any of the following canonical error codes:
86
87- INVALID_ARGUMENT - if the request is malformed
88- NOT_FOUND - if the environment type does not exist
89- INTERNAL - if an internal error occurred
90
91Args:
92  environmentType: string, Required. The type of environment that should be listed. (required)
93  projectId: string, For authorization, the cloud project requesting the TestEnvironmentCatalog.
94  x__xgafv: string, V1 error format.
95    Allowed values
96      1 - v1 error format
97      2 - v2 error format
98
99Returns:
100  An object of the form:
101
102    { # A description of a test environment.
103    "networkConfigurationCatalog": { # Supported network configurations.
104      "configurations": [
105        {
106          "id": "A String", # The unique opaque id for this network traffic configuration.
107          "downRule": { # Network emulation parameters. # The emulation rule applying to the download traffic.
108            "delay": "A String", # Packet delay, must be >= 0.
109            "packetLossRatio": 3.14, # Packet loss ratio (0.0 - 1.0).
110            "bandwidth": 3.14, # Bandwidth in kbits/second.
111            "packetDuplicationRatio": 3.14, # Packet duplication ratio (0.0 - 1.0).
112            "burst": 3.14, # Burst size in kbits.
113          },
114          "upRule": { # Network emulation parameters. # The emulation rule applying to the upload traffic.
115            "delay": "A String", # Packet delay, must be >= 0.
116            "packetLossRatio": 3.14, # Packet loss ratio (0.0 - 1.0).
117            "bandwidth": 3.14, # Bandwidth in kbits/second.
118            "packetDuplicationRatio": 3.14, # Packet duplication ratio (0.0 - 1.0).
119            "burst": 3.14, # Burst size in kbits.
120          },
121        },
122      ],
123    },
124    "androidDeviceCatalog": { # The currently supported Android devices. # Supported Android devices.
125      "models": [ # The set of supported Android device models.
126        { # A description of an Android device tests may be run on.
127          "formFactor": "A String", # Whether this device is a phone, tablet, wearable, etc.
128          "name": "A String", # The human-readable marketing name for this device model.
129              # Examples: "Nexus 5", "Galaxy S5".
130          "form": "A String", # Whether this device is virtual or physical.
131          "tags": [ # Tags for this dimension.
132              # Examples: "default", "preview", "deprecated".
133            "A String",
134          ],
135          "lowFpsVideoRecording": True or False, # True if and only if tests with this model are recorded by stitching
136              # together screenshots. See use_low_spec_video_recording in device config.
137          "brand": "A String", # The company that this device is branded with.
138              # Example: "Google", "Samsung".
139          "supportedVersionIds": [ # The set of Android versions this device supports.
140            "A String",
141          ],
142          "id": "A String", # The unique opaque id for this model.
143              # Use this for invoking the TestExecutionService.
144          "supportedAbis": [ # The list of supported ABIs for this device.
145              # This corresponds to either android.os.Build.SUPPORTED_ABIS (for API level
146              # 21 and above) or android.os.Build.CPU_ABI/CPU_ABI2.
147              # The most preferred ABI is the first element in the list.
148              #
149              # Elements are optionally prefixed by "version_id:" (where version_id is
150              # the id of an AndroidVersion), denoting an ABI that is supported only on
151              # a particular version.
152            "A String",
153          ],
154          "screenDensity": 42, # Screen density in DPI.
155              # This corresponds to ro.sf.lcd_density
156          "screenY": 42, # Screen size in the vertical (Y) dimension measured in pixels.
157          "screenX": 42, # Screen size in the horizontal (X) dimension measured in pixels.
158          "codename": "A String", # The name of the industrial design.
159              # This corresponds to android.os.Build.DEVICE.
160          "manufacturer": "A String", # The manufacturer of this device.
161        },
162      ],
163      "runtimeConfiguration": { # Android configuration that can be selected at the time a test is run. # The set of supported runtime configurations.
164        "orientations": [ # The set of available orientations.
165          { # Screen orientation of the device.
166            "id": "A String", # The id for this orientation.
167                # Example: "portrait".
168            "name": "A String", # A human-friendly name for this orientation.
169                # Example: "portrait".
170            "tags": [ # Tags for this dimension.
171                # Example: "default".
172              "A String",
173            ],
174          },
175        ],
176        "locales": [ # The set of available locales.
177          { # A location/region designation for language.
178            "region": "A String", # A human-friendly string representing the region for this
179                # locale. Example: "United States". Not present for every locale.
180            "id": "A String", # The id for this locale.
181                # Example: "en_US".
182            "name": "A String", # A human-friendly name for this language/locale.
183                # Example: "English".
184            "tags": [ # Tags for this dimension.
185                # Example: "default".
186              "A String",
187            ],
188          },
189        ],
190      },
191      "versions": [ # The set of supported Android OS versions.
192        { # A version of the Android OS.
193          "tags": [ # Tags for this dimension.
194              # Examples: "default", "preview", "deprecated".
195            "A String",
196          ],
197          "distribution": { # Data about the relative number of devices running a # Market share for this version.
198              # given configuration of the Android platform.
199            "measurementTime": "A String", # Output only. The time this distribution was measured.
200            "marketShare": 3.14, # Output only. The estimated fraction (0-1) of the total market with this
201                # configuration.
202          },
203          "releaseDate": { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # The date this Android version became available in the market.
204              # and time zone are either specified elsewhere or are not significant. The date
205              # is relative to the Proleptic Gregorian Calendar. This can represent:
206              #
207              # * A full date, with non-zero year, month and day values
208              # * A month and day value, with a zero year, e.g. an anniversary
209              # * A year on its own, with zero month and day values
210              # * A year and month value, with a zero day, e.g. a credit card expiration date
211              #
212              # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
213            "month": 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
214                # month and day.
215            "day": 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
216                # if specifying a year by itself or a year and month where the day is not
217                # significant.
218            "year": 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
219                # a year.
220          },
221          "versionString": "A String", # A string representing this version of the Android OS.
222              # Examples: "4.3", "4.4".
223          "apiLevel": 42, # The API level for this Android version.
224              # Examples: 18, 19.
225          "codeName": "A String", # The code name for this Android version.
226              # Examples: "JellyBean", "KitKat".
227          "id": "A String", # An opaque id for this Android version.
228              # Use this id to invoke the TestExecutionService.
229        },
230      ],
231    },
232    "iosDeviceCatalog": { # The currently supported iOS devices. # Supported iOS devices.
233      "models": [ # The set of supported iOS device models.
234        { # A description of an iOS device tests may be run on.
235          "formFactor": "A String", # Whether this device is a phone, tablet, wearable, etc.
236          "name": "A String", # The human-readable name for this device model.
237              # Examples: "iPhone 4s", "iPad Mini 2".
238          "tags": [ # Tags for this dimension.
239              # Examples: "default", "preview", "deprecated".
240            "A String",
241          ],
242          "supportedVersionIds": [ # The set of iOS major software versions this device supports.
243            "A String",
244          ],
245          "id": "A String", # The unique opaque id for this model.
246              # Use this for invoking the TestExecutionService.
247          "deviceCapabilities": [ # Device capabilities.
248              # Copied from
249              # https://developer.apple.com/library/archive/documentation/DeviceInformation/Reference/iOSDeviceCompatibility/DeviceCompatibilityMatrix/DeviceCompatibilityMatrix.html
250            "A String",
251          ],
252        },
253      ],
254      "xcodeVersions": [ # The set of supported Xcode versions.
255        { # An Xcode version that an iOS version is compatible with.
256          "version": "A String", # The id for this version.
257              # Example: "9.2".
258          "tags": [ # Tags for this Xcode version.
259              # Example: "default".
260            "A String",
261          ],
262        },
263      ],
264      "runtimeConfiguration": { # iOS configuration that can be selected at the time a test is run. # The set of supported runtime configurations.
265        "orientations": [ # The set of available orientations.
266          { # Screen orientation of the device.
267            "id": "A String", # The id for this orientation.
268                # Example: "portrait".
269            "name": "A String", # A human-friendly name for this orientation.
270                # Example: "portrait".
271            "tags": [ # Tags for this dimension.
272                # Example: "default".
273              "A String",
274            ],
275          },
276        ],
277        "locales": [ # The set of available locales.
278          { # A location/region designation for language.
279            "region": "A String", # A human-friendly string representing the region for this
280                # locale. Example: "United States". Not present for every locale.
281            "id": "A String", # The id for this locale.
282                # Example: "en_US".
283            "name": "A String", # A human-friendly name for this language/locale.
284                # Example: "English".
285            "tags": [ # Tags for this dimension.
286                # Example: "default".
287              "A String",
288            ],
289          },
290        ],
291      },
292      "versions": [ # The set of supported iOS software versions.
293        { # An iOS version.
294          "majorVersion": 42, # An integer representing the major iOS version.
295              # Examples: "8", "9".
296          "tags": [ # Tags for this dimension.
297              # Examples: "default", "preview", "deprecated".
298            "A String",
299          ],
300          "supportedXcodeVersionIds": [ # The available Xcode versions for this version.
301            "A String",
302          ],
303          "id": "A String", # An opaque id for this iOS version.
304              # Use this id to invoke the TestExecutionService.
305          "minorVersion": 42, # An integer representing the minor iOS version.
306              # Examples: "1", "2".
307        },
308      ],
309    },
310    "softwareCatalog": { # The currently provided software environment on the devices under test. # The software test environment provided by TestExecutionService.
311      "orchestratorVersion": "A String", # A string representing the current version of Android Test
312          # Orchestrator that is provided by TestExecutionService.
313          # Example: "1.0.2 beta".
314    },
315  }</pre>
316</div>
317
318</body></html>