Class CheckpointCounter

java.lang.Object
com.shaft.tools.io.internal.CheckpointCounter

public class CheckpointCounter extends Object
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 Details

    • CheckpointCounter

      public CheckpointCounter()
  • Method Details

    • increment

      public static void increment(CheckpointType type, String message, CheckpointStatus status)
      Creates a new checkpoint entry and updates the pass/fail counters.
      Parameters:
      type - the checkpoint type (assertion or verification)
      message - the checkpoint message
      status - 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.