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 pathreadiness- live capture readiness statereadinessWarnings- live capture readiness warningslocatorDecisions- selected locator rationaleunsupportedEvents- unsupported event diagnosticsflakySteps- replay-risk diagnosticsfallbackLocators- available fallback locator diagnosticscontrolFlowSuggestions- deterministic control-flow suggestionsrequiredUserInputs- unresolved external inputswarnings- safe warningscompilation- compilation resultreplay- replay resultenrichment- enrichment resultopenApiCoverage- OpenAPI coverage cross-report, ornullwhen no spec was provided
public record CaptureGenerationReport(String schemaVersion, String sessionId, CaptureGenerationReport.Status status, String sourcePath, String testDataPath, CaptureReadiness.State readiness, List<String> readinessWarnings, List<CaptureGenerationReport.LocatorDecision> locatorDecisions, List<String> unsupportedEvents, List<String> flakySteps, List<String> fallbackLocators, List<CaptureGenerationReport.ControlFlowSuggestion> controlFlowSuggestions, List<String> requiredUserInputs, List<String> warnings, CaptureGenerationReport.Validation compilation, CaptureGenerationReport.Validation replay, CaptureGenerationReport.Enrichment enrichment, CaptureGenerationReport.OpenApiCoverage openApiCoverage)
extends Record
Deterministic generation, locator-selection, compilation, and replay report.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDeterministic control-flow suggestion kind.static final recordOne deterministic control-flow suggestion.static final recordOptional AI enrichment state.static final recordOne explainable locator choice.static final recordDeterministic OpenAPI coverage cross-report (seeOpenApiCoverageReporterincom.shaft.capture.generate.api.internal, which this record mirrors so the report can live in this module without an API-codegen-specific dependency).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, CaptureReadiness.State readiness, List<String> readinessWarnings, List<CaptureGenerationReport.LocatorDecision> locatorDecisions, List<String> unsupportedEvents, List<String> flakySteps, List<String> fallbackLocators, List<CaptureGenerationReport.ControlFlowSuggestion> controlFlowSuggestions, List<String> requiredUserInputs, List<String> warnings, CaptureGenerationReport.Validation compilation, CaptureGenerationReport.Validation replay, CaptureGenerationReport.Enrichment enrichment) Compatibility constructor for callers compiled before OpenAPI coverage was added.CaptureGenerationReport(String schemaVersion, String sessionId, CaptureGenerationReport.Status status, String sourcePath, String testDataPath, CaptureReadiness.State readiness, List<String> readinessWarnings, List<CaptureGenerationReport.LocatorDecision> locatorDecisions, List<String> unsupportedEvents, List<String> flakySteps, List<String> fallbackLocators, List<CaptureGenerationReport.ControlFlowSuggestion> controlFlowSuggestions, List<String> requiredUserInputs, List<String> warnings, CaptureGenerationReport.Validation compilation, CaptureGenerationReport.Validation replay, CaptureGenerationReport.Enrichment enrichment, CaptureGenerationReport.OpenApiCoverage openApiCoverage) Creates an immutable report.CaptureGenerationReport(String schemaVersion, String sessionId, CaptureGenerationReport.Status status, String sourcePath, String testDataPath, CaptureReadiness.State readiness, List<String> readinessWarnings, 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) Compatibility constructor for callers compiled before control-flow suggestions were added.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) Compatibility constructor for callers compiled before readiness was added. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecompilationrecord component.Returns the value of thecontrolFlowSuggestionsrecord 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.Returns the value of theopenApiCoveragerecord component.Returns the value of thereadinessrecord component.Returns the value of thereadinessWarningsrecord 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, CaptureReadiness.State readiness, List<String> readinessWarnings, List<CaptureGenerationReport.LocatorDecision> locatorDecisions, List<String> unsupportedEvents, List<String> flakySteps, List<String> fallbackLocators, List<CaptureGenerationReport.ControlFlowSuggestion> controlFlowSuggestions, List<String> requiredUserInputs, List<String> warnings, CaptureGenerationReport.Validation compilation, CaptureGenerationReport.Validation replay, CaptureGenerationReport.Enrichment enrichment, CaptureGenerationReport.OpenApiCoverage openApiCoverage) Creates an immutable report. -
CaptureGenerationReport
public CaptureGenerationReport(String schemaVersion, String sessionId, CaptureGenerationReport.Status status, String sourcePath, String testDataPath, CaptureReadiness.State readiness, List<String> readinessWarnings, List<CaptureGenerationReport.LocatorDecision> locatorDecisions, List<String> unsupportedEvents, List<String> flakySteps, List<String> fallbackLocators, List<CaptureGenerationReport.ControlFlowSuggestion> controlFlowSuggestions, List<String> requiredUserInputs, List<String> warnings, CaptureGenerationReport.Validation compilation, CaptureGenerationReport.Validation replay, CaptureGenerationReport.Enrichment enrichment) Compatibility constructor for callers compiled before OpenAPI coverage was added.- Parameters:
schemaVersion- report schema versionsessionId- source Capture sessionstatus- generation statussourcePath- output-root-relative source pathtestDataPath- output-root-relative test-data pathreadiness- live capture readiness statereadinessWarnings- live capture readiness warningslocatorDecisions- selected locator rationaleunsupportedEvents- unsupported event diagnosticsflakySteps- replay-risk diagnosticsfallbackLocators- available fallback locator diagnosticscontrolFlowSuggestions- deterministic control-flow suggestionsrequiredUserInputs- unresolved external inputswarnings- safe warningscompilation- compilation resultreplay- replay resultenrichment- enrichment result
-
CaptureGenerationReport
public CaptureGenerationReport(String schemaVersion, String sessionId, CaptureGenerationReport.Status status, String sourcePath, String testDataPath, CaptureReadiness.State readiness, List<String> readinessWarnings, 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) Compatibility constructor for callers compiled before control-flow suggestions were added.- Parameters:
schemaVersion- report schema versionsessionId- source Capture sessionstatus- generation statussourcePath- output-root-relative source pathtestDataPath- output-root-relative test-data pathreadiness- live capture readiness statereadinessWarnings- live capture readiness warningslocatorDecisions- selected locator rationaleunsupportedEvents- unsupported event diagnosticsflakySteps- replay-risk diagnosticsfallbackLocators- available fallback locator diagnosticsrequiredUserInputs- unresolved external inputswarnings- safe warningscompilation- compilation resultreplay- replay resultenrichment- enrichment result
-
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) Compatibility constructor for callers compiled before readiness was added.- Parameters:
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
-
-
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
-
readiness
-
readinessWarnings
Returns the value of thereadinessWarningsrecord component.- Returns:
- the value of the
readinessWarningsrecord 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
-
controlFlowSuggestions
Returns the value of thecontrolFlowSuggestionsrecord component.- Returns:
- the value of the
controlFlowSuggestionsrecord 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
-
openApiCoverage
Returns the value of theopenApiCoveragerecord component.- Returns:
- the value of the
openApiCoveragerecord component
-