Class ValidationsHelper

java.lang.Object
com.shaft.validation.internal.ValidationsHelper

public class ValidationsHelper extends Object
  • Method Details

    • getVerificationErrorToForceFail

      public static AssertionError getVerificationErrorToForceFail()
    • resetVerificationStateAfterFailing

      public static void resetVerificationStateAfterFailing()
    • recordVerificationFailure

      public static void recordVerificationFailure(String failureMessage)
      Records a soft verification failure so it can be reported at the end of the test.
      Parameters:
      failureMessage - the verification failure message to accumulate
    • reportValidationState

      public static void reportValidationState(ValidationEnums.ValidationCategory validationCategory, boolean validationState, Object expected, Object actual, List<List<Object>> attachments)
      Reports a validation outcome that was evaluated by a non-WebDriver backend while preserving the same checkpoint, attachment, and failure-reporting semantics used by WebDriver validations.
      Parameters:
      validationCategory - the validation category
      validationState - true when the validation passed
      expected - the reported expected value
      actual - the reported actual value
      attachments - report attachments prepared by the backend