EnsembleSingleTestResult class

Result for one executed declarative test case. Result and diagnostics for one expanded test case run.

Constructors

EnsembleSingleTestResult({required String testId, Map<String, dynamic> metadata = const {}, required TestStatus status, required int durationMs, int attempts = 1, int retry = 0, int? failedStepIndex, TestStep? failedStep, String? message, String? stackTrace, String? failureOperation, SourceLocation? failureSource, List<String> logs = const [], EnsembleTestReportDetails? report, TestFailureDetails? failure, List<TestFailureDetails> secondaryFailures = const [], Map<String, bool> capabilityStatus = const {}})
const
EnsembleSingleTestResult.failed({required String testId, Map<String, dynamic> metadata = const {}, required int durationMs, int attempts = 1, int retry = 0, int? failedStepIndex, TestStep? failedStep, String? message, String? stackTrace, String? failureOperation, SourceLocation? failureSource, List<String> logs = const [], EnsembleTestReportDetails? report, TestFailureDetails? failure, List<TestFailureDetails> secondaryFailures = const [], Map<String, bool> capabilityStatus = const {}})
factory
EnsembleSingleTestResult.fromJson(Map<String, dynamic> json)
factory
EnsembleSingleTestResult.passed({required String testId, Map<String, dynamic> metadata = const {}, required int durationMs, int attempts = 1, int retry = 0, List<String> logs = const [], EnsembleTestReportDetails? report, Map<String, bool> capabilityStatus = const {}})
factory

Properties

attempts → int
final
capabilityStatus → Map<String, bool>
final
durationMs → int
final
effectiveFailureDetails → TestFailureDetails?
The failure details represented by the canonical JSON projection.
no setter
effectiveFailureMessage → String
Stable human-readable failure text shared by every report projection.
no setter
effectiveFailureStackTrace → String?
Stack text published to machine-readable and human-facing reports.
no setter
failedStep → TestStep?
final
failedStepIndex → int?
final
failure → TestFailureDetails?
final
failureOperation → String?
Canonical operation responsible for the failure, when available.
final
failureSource → SourceLocation?
final
hashCode → int
The hash code for this object.
no setterinherited
logs → List<String>
final
message → String?
final
metadata → Map<String, dynamic>
final
report → EnsembleTestReportDetails?
final
reportFailureJson → Map<String, dynamic>?
Failure payload used by report projections without serializing the complete result (logs, report screens, and step evidence) a second time.
no setter
retry → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
secondaryFailures → List<TestFailureDetails>
final
stackTrace → String?
final
status → TestStatus
final
testId → String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited