Class ValidationsHelper
java.lang.Object
com.shaft.validation.internal.ValidationsHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic AssertionErrorstatic voidrecordVerificationFailure(String failureMessage) Records a soft verification failure so it can be reported at the end of the test.static voidreportValidationState(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.static void
-
Method Details
-
getVerificationErrorToForceFail
-
resetVerificationStateAfterFailing
public static void resetVerificationStateAfterFailing() -
recordVerificationFailure
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 categoryvalidationState- true when the validation passedexpected- the reported expected valueactual- the reported actual valueattachments- report attachments prepared by the backend
-