Class CheckpointCounter
java.lang.Object
com.shaft.tools.io.internal.CheckpointCounter
Aggregates validation checkpoints and attaches a summarized HTML report to Allure.
Each call to increment(CheckpointType, String, CheckpointStatus) stores one checkpoint
entry and updates pass/fail counters. Call attach() once at the end of execution to
publish the generated report attachment.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidattach()Attaches the accumulated checkpoint summary HTML report to the current report context.static voidincrement(CheckpointType type, String message, CheckpointStatus status) Creates a new checkpoint entry and updates the pass/fail counters.
-
Constructor Details
-
CheckpointCounter
public CheckpointCounter()
-
-
Method Details
-
increment
Creates a new checkpoint entry and updates the pass/fail counters.- Parameters:
type- the checkpoint type (assertion or verification)message- the checkpoint messagestatus- the final status of the checkpoint
-
attach
public static void attach()Attaches the accumulated checkpoint summary HTML report to the current report context.If no checkpoints were recorded, this method does nothing.
-