Record Class CaptureGenerationReport
java.lang.Object
java.lang.Record
com.shaft.capture.generate.CaptureGenerationReport
- Record Components:
schemaVersion- report schema versionsessionId- source Capture sessionstatus- generation statussourcePath- output-root-relative source pathtestDataPath- output-root-relative test-data pathlocatorDecisions- selected locator rationaleunsupportedEvents- unsupported event diagnosticsflakySteps- replay-risk diagnosticsfallbackLocators- available fallback locator diagnosticsrequiredUserInputs- unresolved external inputswarnings- safe warningscompilation- compilation resultreplay- replay resultenrichment- enrichment result
public record CaptureGenerationReport(String schemaVersion, String sessionId, CaptureGenerationReport.Status status, String sourcePath, String testDataPath, List<CaptureGenerationReport.LocatorDecision> locatorDecisions, List<String> unsupportedEvents, List<String> flakySteps, List<String> fallbackLocators, List<String> requiredUserInputs, List<String> warnings, CaptureGenerationReport.Validation compilation, CaptureGenerationReport.Validation replay, CaptureGenerationReport.Enrichment enrichment)
extends Record
Deterministic generation, locator-selection, compilation, and replay report.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordOptional AI enrichment state.static final recordOne explainable locator choice.static enumGeneration status.static final recordCompile or replay result. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCaptureGenerationReport(String schemaVersion, String sessionId, CaptureGenerationReport.Status status, String sourcePath, String testDataPath, List<CaptureGenerationReport.LocatorDecision> locatorDecisions, List<String> unsupportedEvents, List<String> flakySteps, List<String> fallbackLocators, List<String> requiredUserInputs, List<String> warnings, CaptureGenerationReport.Validation compilation, CaptureGenerationReport.Validation replay, CaptureGenerationReport.Enrichment enrichment) Creates an immutable report. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecompilationrecord component.Returns the value of theenrichmentrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefallbackLocatorsrecord component.Returns the value of theflakyStepsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelocatorDecisionsrecord component.replay()Returns the value of thereplayrecord component.Returns the value of therequiredUserInputsrecord component.Returns the value of theschemaVersionrecord component.Returns the value of thesessionIdrecord component.Returns the value of thesourcePathrecord component.status()Returns the value of thestatusrecord component.Returns the value of thetestDataPathrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theunsupportedEventsrecord component.warnings()Returns the value of thewarningsrecord component.
-
Field Details
-
CURRENT_SCHEMA_VERSION
- See Also:
-
-
Constructor Details
-
CaptureGenerationReport
public CaptureGenerationReport(String schemaVersion, String sessionId, CaptureGenerationReport.Status status, String sourcePath, String testDataPath, List<CaptureGenerationReport.LocatorDecision> locatorDecisions, List<String> unsupportedEvents, List<String> flakySteps, List<String> fallbackLocators, List<String> requiredUserInputs, List<String> warnings, CaptureGenerationReport.Validation compilation, CaptureGenerationReport.Validation replay, CaptureGenerationReport.Enrichment enrichment) Creates an immutable report.
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
schemaVersion
Returns the value of theschemaVersionrecord component.- Returns:
- the value of the
schemaVersionrecord component
-
sessionId
-
status
-
sourcePath
Returns the value of thesourcePathrecord component.- Returns:
- the value of the
sourcePathrecord component
-
testDataPath
Returns the value of thetestDataPathrecord component.- Returns:
- the value of the
testDataPathrecord component
-
locatorDecisions
Returns the value of thelocatorDecisionsrecord component.- Returns:
- the value of the
locatorDecisionsrecord component
-
unsupportedEvents
Returns the value of theunsupportedEventsrecord component.- Returns:
- the value of the
unsupportedEventsrecord component
-
flakySteps
Returns the value of theflakyStepsrecord component.- Returns:
- the value of the
flakyStepsrecord component
-
fallbackLocators
Returns the value of thefallbackLocatorsrecord component.- Returns:
- the value of the
fallbackLocatorsrecord component
-
requiredUserInputs
Returns the value of therequiredUserInputsrecord component.- Returns:
- the value of the
requiredUserInputsrecord component
-
warnings
-
compilation
Returns the value of thecompilationrecord component.- Returns:
- the value of the
compilationrecord component
-
replay
-
enrichment
Returns the value of theenrichmentrecord component.- Returns:
- the value of the
enrichmentrecord component
-