Gcp/testing
@swamp/gcp/testingv2026.05.21.2
01README
Google Cloud testing infrastructure models
02Release Notes
- Updated: devicesessions, testmatrices, testenvironmentcatalog
03Models
@swamp/gcp/testing/devicesessionsv2026.05.21.2devicesessions.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| androidDevice? | object | A single Android device. |
| expireTime? | string | Optional. If the device is still in use at this time, any connections will be ended and the SessionState will transition from ACTIVE to FINISHED. |
| name? | string | Optional. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}" |
| ttl? | string | Optional. The amount of time that a device will be initially allocated for. This can eventually be extended with the UpdateDeviceSession RPC. Default: 15 minutes. |
| location? | string | The location for this resource (e.g., 'us', 'us-central1', 'europe-west1') |
fn create(waitForReady?: boolean)
Create a deviceSessions
| Argument | Type | Description |
|---|---|---|
| waitForReady? | boolean | Wait for the resource to reach a ready state after creation (default: true) |
fn get(identifier: string)
Get a deviceSessions
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the deviceSessions |
fn update(waitForReady?: boolean)
Update deviceSessions attributes
| Argument | Type | Description |
|---|---|---|
| waitForReady? | boolean | Wait for the resource to reach a ready state after update (default: true) |
fn sync()
Sync deviceSessions state from GCP
fn cancel()
cancel
Resources
state(infinite)— Protobuf message describing the device message, used from several RPCs.
@swamp/gcp/testing/testenvironmentcatalogv2026.05.21.2testenvironmentcatalog.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
fn get(identifier: string)
Get a testEnvironmentCatalog
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the testEnvironmentCatalog |
fn sync()
Sync testEnvironmentCatalog state from GCP
Resources
state(infinite)— A description of a test environment.
@swamp/gcp/testing/testmatricesv2026.05.21.2testmatrices.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| clientInfo? | object | Information about the client which invoked the test. |
| environmentMatrix? | object | The matrix of environments in which the test is to be executed. |
| failFast? | boolean | 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. |
| flakyTestAttempts? | number | 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. |
| projectId? | string | The cloud project that owns the test matrix. |
| resultStorage? | object | Locations where the results of running the test are stored. |
| testSpecification? | object | A description of how to run the test. |
| 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. |
fn create(waitForReady?: boolean)
Create a testMatrices
| Argument | Type | Description |
|---|---|---|
| waitForReady? | boolean | Wait for the resource to reach a ready state after creation (default: true) |
fn get(identifier: string)
Get a testMatrices
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the testMatrices |
fn sync()
Sync testMatrices state from GCP
fn cancel()
cancel
Resources
state(infinite)— TestMatrix captures all details about a test. It contains the environment con...
04Previous Versions
2026.05.21.1May 21, 2026
2026.05.19.2May 19, 2026
2026.05.19.1May 19, 2026
2026.05.18.1May 18, 2026
2026.04.23.1Apr 23, 2026
2026.04.04.1Apr 4, 2026
- Updated: testmatrices, testenvironmentcatalog
2026.04.03.3Apr 3, 2026
- Updated: devicesessions, testmatrices, testenvironmentcatalog
2026.04.03.1Apr 3, 2026
- Updated: devicesessions, testmatrices, testenvironmentcatalog
2026.04.02.2Apr 2, 2026
05Stats
A
100 / 100
Downloads
0
Archive size
64.1 KB
Verified by Swamp
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types1/1earned
- Dependencies pass trust audit2/2earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License declared1/1earned
- Verified public repository2/2earned
06Platforms
07Labels