addResultForCase method
Implementation
Future<TestResult> addResultForCase(
int caseId, {
String? comment,
String? elapsed,
required int statusId,
}) async {
final response = await FlutterTestRail.instance.client.request(
'/add_result_for_case/$id/$caseId',
RequestMethod.post,
params: {
'status_id': statusId,
if (comment != null) 'comment': comment,
if (elapsed != null) 'elapsed': elapsed,
},
);
return TestResult.fromJson(response!);
}