getRunResults static method

Future<TestResults> getRunResults(
  1. int runId, {
  2. DateTime? createdAfter,
  3. DateTime? createdBefore,
  4. Iterable<int>? createdBy,
  5. String? defectsFilter,
  6. int? limit,
  7. int? offset,
  8. Iterable<int>? statusId,
})

Implementation

static Future<TestResults> getRunResults(
  int runId, {
  DateTime? createdAfter,
  DateTime? createdBefore,
  Iterable<int>? createdBy,
  String? defectsFilter,
  int? limit,
  int? offset,
  Iterable<int>? statusId,
}) async {
  final url = '/get_results_for_run/$runId';

  final queryParameters = <String, dynamic>{
    'created_after': createdAfter?.millisecondsSinceEpoch,
    'created_before': createdBefore?.millisecondsSinceEpoch,
    'created_by': createdBy,
    'defects_filter': defectsFilter,
    'limit': limit,
    'offset': offset,
    'status_id': statusId?.join(',')
  };

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