getTestRun method

Future<GetTestRunResponse> getTestRun({
  1. required String serviceArn,
  2. required String testRunId,
})

Retrieves a test run by ID, including its status, results, and the configuration snapshotted when the run started.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ValidationException.

Parameter serviceArn : The ARN of the service the test run belongs to.

Parameter testRunId : The identifier of the test run to retrieve.

Implementation

Future<GetTestRunResponse> getTestRun({
  required String serviceArn,
  required String testRunId,
}) async {
  final $query = <String, List<String>>{
    'serviceArn': [serviceArn],
    'testRunId': [testRunId],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/v2/get-test-run',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return GetTestRunResponse.fromJson(response);
}