class ProjectsTestMatrices extends Resource (View source)

The "testMatrices" collection of methods.

Typical usage is:

 $testingService = new Google\Service\Testing(...);
 $testMatrices = $testingService->projects_testMatrices;

Methods

cancel(string $projectId, string $testMatrixId, array $optParams = [])

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 (testMatrices.cancel)

create(string $projectId, TestMatrix $postBody, array $optParams = [])

Creates and runs a matrix of tests according to the given specifications.

get(string $projectId, string $testMatrixId, array $optParams = [])

Checks the status of a test matrix and the executions once they are created.

Details

CancelTestMatrixResponse cancel(string $projectId, string $testMatrixId, array $optParams = [])

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 (testMatrices.cancel)

Parameters

string $projectId

Cloud project that owns the test.

string $testMatrixId

Test matrix that will be canceled.

array $optParams

Optional parameters.

Return Value

CancelTestMatrixResponse

Exceptions

Exception

TestMatrix create(string $projectId, TestMatrix $postBody, array $optParams = [])

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. (testMatrices.create)

Parameters

string $projectId

The GCE project under which this job will run.

TestMatrix $postBody
array $optParams

Optional parameters.

Return Value

TestMatrix

Exceptions

Exception

TestMatrix get(string $projectId, string $testMatrixId, array $optParams = [])

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 (testMatrices.get)

Parameters

string $projectId

Cloud project that owns the test matrix.

string $testMatrixId

Unique test matrix id which was assigned by the service.

array $optParams

Optional parameters.

Return Value

TestMatrix

Exceptions

Exception