startTestRun method
Starts a run of a test. Each run scopes to the current resources in the service and produces a pass or fail outcome.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ValidationException.
Parameter serviceArn :
The ARN of the service the test belongs to.
Parameter testId :
The identifier of the test to run.
Implementation
Future<StartTestRunResponse> startTestRun({
required String serviceArn,
required String testId,
}) async {
final $payload = <String, dynamic>{
'serviceArn': serviceArn,
'testId': testId,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/v2/start-test-run',
exceptionFnMap: _exceptionFns,
);
return StartTestRunResponse.fromJson(response);
}