ProjectsTestMatrices
class ProjectsTestMatrices extends Resource (View source)
The "testMatrices" collection of methods.
Typical usage is:
$testingService = new Google\Service\Testing(...);
$testMatrices = $testingService->projects_testMatrices;
Methods
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)
Creates and runs a matrix of tests according to the given specifications.
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)
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)
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)