hostReport function
EnsembleTestReportDetails
hostReport(
- EnsembleTestCase test,
- ApplicationTestServices? services, {
- List<
int> stepDurationsMs = const [], - List<
String> stepStartTimes = const [], - Map<
String, Map< screens = const {},String, dynamic> >
Implementation
EnsembleTestReportDetails hostReport(
EnsembleTestCase test,
ApplicationTestServices? services, {
List<int> stepDurationsMs = const [],
List<String> stepStartTimes = const [],
Map<String, Map<String, dynamic>> screens = const {},
}) {
final navigation = services?.navigation;
final history = navigation?.routeHistory ?? const <String>[];
return EnsembleTestReportDetails(
startScreen: history.isEmpty ? null : history.first,
endScreen: navigation?.currentRoute,
navigationKnown: navigation != null,
session: test.session,
screensVisited: history,
stepsOutline: outlineSteps(test.steps),
stepDurationsMs: stepDurationsMs,
stepStartTimes: stepStartTimes,
screens: {
for (final entry in screens.entries)
entry.key: Map<String, dynamic>.from(entry.value),
},
);
}