Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Testing

import { Testing } from "https://googleapis.deno.dev/v1/testing:v1.ts";

Allows developers to run automated tests for their mobile applications on Google infrastructure.

class Testing {
constructor(client?: CredentialsClient, baseUrl?: string);
async applicationDetailServiceGetApkDetails(req: FileReference, opts?: ApplicationDetailServiceGetApkDetailsOptions): Promise<GetApkDetailsResponse>;
async projectsDeviceSessionsCancel(name: string, req: CancelDeviceSessionRequest): Promise<Empty>;
async projectsDeviceSessionsCreate(parent: string, req: DeviceSession): Promise<DeviceSession>;
async projectsDeviceSessionsGet(name: string): Promise<DeviceSession>;
async projectsDeviceSessionsList(parent: string, opts?: ProjectsDeviceSessionsListOptions): Promise<ListDeviceSessionsResponse>;
async projectsDeviceSessionsPatch(
name: string,
): Promise<DeviceSession>;
async projectsTestMatricesCancel(projectId: string, testMatrixId: string): Promise<CancelTestMatrixResponse>;
async projectsTestMatricesCreate(
projectId: string,
): Promise<TestMatrix>;
async projectsTestMatricesGet(projectId: string, testMatrixId: string): Promise<TestMatrix>;
async testEnvironmentCatalogGet(environmentType:
| "ENVIRONMENT_TYPE_UNSPECIFIED"
| "ANDROID"
| "IOS"
| "NETWORK_CONFIGURATION"
| "PROVIDED_SOFTWARE"
| "DEVICE_IP_BLOCKS"
, opts?: TestEnvironmentCatalogGetOptions): Promise<TestEnvironmentCatalog>;
}

§Constructors

§
new Testing(client?: CredentialsClient, baseUrl?: string)
[src]

§Methods

§
applicationDetailServiceGetApkDetails(req: FileReference, opts?: ApplicationDetailServiceGetApkDetailsOptions): Promise<GetApkDetailsResponse>
[src]

Gets the details of an Android application APK.

§
projectsDeviceSessionsCancel(name: string, req: CancelDeviceSessionRequest): Promise<Empty>
[src]

POST /v1/projects/{project_id}/deviceSessions/{device_session_id}:cancel Changes the DeviceSession to state FINISHED and terminates all connections. Canceled sessions are not deleted and can be retrieved or listed by the user until they expire based on the 28 day deletion policy.

@param name

Required. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}"

§
projectsDeviceSessionsCreate(parent: string, req: DeviceSession): Promise<DeviceSession>
[src]

POST /v1/projects/{project_id}/deviceSessions

@param parent

Required. The Compute Engine project under which this device will be allocated. "projects/{project_id}"

§
projectsDeviceSessionsGet(name: string): Promise<DeviceSession>
[src]

GET /v1/projects/{project_id}/deviceSessions/{device_session_id} Return a DeviceSession, which documents the allocation status and whether the device is allocated. Clients making requests from this API must poll GetDeviceSession.

@param name

Required. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}"

§
projectsDeviceSessionsList(parent: string, opts?: ProjectsDeviceSessionsListOptions): Promise<ListDeviceSessionsResponse>
[src]

GET /v1/projects/{project_id}/deviceSessions Lists device Sessions owned by the project user.

@param parent

Required. The name of the parent to request, e.g. "projects/{project_id}"

§
projectsDeviceSessionsPatch(name: string, req: DeviceSession, opts?: ProjectsDeviceSessionsPatchOptions): Promise<DeviceSession>
[src]

PATCH /v1/projects/{projectId}/deviceSessions/deviceSessionId}:updateDeviceSession Updates the current device session to the fields described by the update_mask.

@param name

Optional. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}"

§
projectsTestMatricesCancel(projectId: string, testMatrixId: string): Promise<CancelTestMatrixResponse>
[src]

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
@param projectId

Cloud project that owns the test.

@param testMatrixId

Test matrix that will be canceled.

§
projectsTestMatricesCreate(projectId: string, req: TestMatrix, opts?: ProjectsTestMatricesCreateOptions): Promise<TestMatrix>
[src]

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. The returned matrix will not yet contain the executions that will be created for this matrix. Execution creation happens later on and will require a call to GetTestMatrix. 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.

@param projectId

The GCE project under which this job will run.

§
projectsTestMatricesGet(projectId: string, testMatrixId: string): Promise<TestMatrix>
[src]

Checks the status of a test matrix and the executions once they are created. The test matrix will contain the list of test executions to run if and only if the resultStorage.toolResultsExecution fields have been populated. Note: Flaky test executions may be added to the matrix at a later stage. 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

@param projectId

Cloud project that owns the test matrix.

@param testMatrixId

Unique test matrix id which was assigned by the service.

§
testEnvironmentCatalogGet(environmentType: "ENVIRONMENT_TYPE_UNSPECIFIED" | "ANDROID" | "IOS" | "NETWORK_CONFIGURATION" | "PROVIDED_SOFTWARE" | "DEVICE_IP_BLOCKS", opts?: TestEnvironmentCatalogGetOptions): Promise<TestEnvironmentCatalog>
[src]

Gets the catalog of supported test environments. May return any of the following canonical error codes: - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the environment type does not exist - INTERNAL - if an internal error occurred

@param environmentType

Required. The type of environment that should be listed.