getTestGridProject method
Retrieves information about a Selenium testing project.
May throw NotFoundException. May throw ArgumentException. May throw InternalServiceException.
Parameter projectArn
:
The ARN of the Selenium testing project, from either
CreateTestGridProject or ListTestGridProjects.
Implementation
Future<GetTestGridProjectResult> getTestGridProject({
required String projectArn,
}) async {
ArgumentError.checkNotNull(projectArn, 'projectArn');
_s.validateStringLength(
'projectArn',
projectArn,
32,
1011,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'DeviceFarm_20150623.GetTestGridProject'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'projectArn': projectArn,
},
);
return GetTestGridProjectResult.fromJson(jsonResponse.body);
}