Skip to main content

Gcp/testing

@swamp/gcp/testingv2026.05.21.2· 1d agoMODELS
01README

Google Cloud testing infrastructure models

02Release Notes
  • Updated: devicesessions, testmatrices, testenvironmentcatalog
03Models3
@swamp/gcp/testing/devicesessionsv2026.05.21.2devicesessions.ts

Global Arguments

ArgumentTypeDescription
androidDevice?objectA single Android device.
expireTime?stringOptional. 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?stringOptional. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}"
ttl?stringOptional. 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?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
fn create(waitForReady?: boolean)
Create a deviceSessions
ArgumentTypeDescription
waitForReady?booleanWait for the resource to reach a ready state after creation (default: true)
fn get(identifier: string)
Get a deviceSessions
ArgumentTypeDescription
identifierstringThe name of the deviceSessions
fn update(waitForReady?: boolean)
Update deviceSessions attributes
ArgumentTypeDescription
waitForReady?booleanWait 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

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
fn get(identifier: string)
Get a testEnvironmentCatalog
ArgumentTypeDescription
identifierstringThe 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

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
clientInfo?objectInformation about the client which invoked the test.
environmentMatrix?objectThe matrix of environments in which the test is to be executed.
failFast?booleanIf 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?numberThe 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?stringThe cloud project that owns the test matrix.
resultStorage?objectLocations where the results of running the test are stored.
testSpecification?objectA description of how to run the test.
requestId?stringA string id used to detect duplicated requests. Ids are automatically scoped to a project, so users should ensure the ID is unique per-project. A UUID is recommended. Optional, but strongly recommended.
fn create(waitForReady?: boolean)
Create a testMatrices
ArgumentTypeDescription
waitForReady?booleanWait for the resource to reach a ready state after creation (default: true)
fn get(identifier: string)
Get a testMatrices
ArgumentTypeDescription
identifierstringThe 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 Versions9
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