createId static method

String createId({
  1. required TestDeviceInfo deviceInfo,
  2. String? suiteName,
  3. required String testName,
})

Implementation

static String createId({
  required TestDeviceInfo deviceInfo,
  String? suiteName,
  required String testName,
}) {
  final suitePrefix = suiteName?.isNotEmpty == true ? '${suiteName}_' : '';
  return '${suitePrefix}${testName}_${deviceInfo.appIdentifier}_${deviceInfo.os}_${deviceInfo.systemVersion}_${deviceInfo.model}_${deviceInfo.device}_${deviceInfo.orientation}_${deviceInfo.pixels?.height}_${deviceInfo.pixels?.width}';
}