getCaseResults static method

Future<TestResults> getCaseResults(
  1. int caseId, {
  2. required int runId,
  3. String? defectsFilter,
  4. int? limit,
  5. int? offset,
  6. Iterable<int>? statusId,
})

Implementation

static Future<TestResults> getCaseResults(
  int caseId, {
  required int runId,
  String? defectsFilter,
  int? limit,
  int? offset,
  Iterable<int>? statusId,
}) async {
  final url = '/get_results_for_case/$runId/$caseId';

  final queryParameters = <String, dynamic>{
    'defects_filter': defectsFilter,
    'limit': limit,
    'offset': offset,
    'status_id': statusId?.join(',')
  };

  return _performRequest(
    requestUrl: url,
    queryParameters: queryParameters,
  );
}