Class CaptureGenerator
java.lang.Object
com.shaft.capture.generate.CaptureGenerator
Deterministic pipeline that validates, renders, compiles, replays, and reports generated SHAFT tests.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumSHAFT GUI backend used by generated capture replay code. -
Constructor Summary
ConstructorsConstructorDescriptionCreates the default generation pipeline.CaptureGenerator(CaptureJsonCodec codec, LocatorRanker locatorRanker, GeneratedTestValidator validator, CaptureEnrichmentService enrichmentService) Creates an injectable generation pipeline. -
Method Summary
Modifier and TypeMethodDescriptiongenerate(CaptureGenerationRequest request) Generates, validates, and reports one SHAFT TestNG test.generate(CaptureGenerationRequest request, CaptureGenerator.CodegenBackend backend) Generates, validates, and reports one SHAFT TestNG test for a selected GUI backend.
-
Constructor Details
-
CaptureGenerator
public CaptureGenerator()Creates the default generation pipeline. -
CaptureGenerator
public CaptureGenerator(CaptureJsonCodec codec, LocatorRanker locatorRanker, GeneratedTestValidator validator, CaptureEnrichmentService enrichmentService) Creates an injectable generation pipeline.- Parameters:
codec- Capture session codeclocatorRanker- deterministic locator rankervalidator- generated test validatorenrichmentService- optional enrichment preview service
-
-
Method Details
-
generate
Generates, validates, and reports one SHAFT TestNG test.- Parameters:
request- generation options- Returns:
- generated artifacts and report
-
generate
public CaptureGenerationResult generate(CaptureGenerationRequest request, CaptureGenerator.CodegenBackend backend) Generates, validates, and reports one SHAFT TestNG test for a selected GUI backend.- Parameters:
request- generation optionsbackend- generated SHAFT GUI backend- Returns:
- generated artifacts and report
-