API Response Validations
Validate API responses including JSON values, file content comparison, and schema matching using SHAFT Engine.
Validate API responses including JSON values, file content comparison, and schema matching using SHAFT Engine.
Validate browser attributes such as URL and title using SHAFT Engine's WebDriverBrowserValidationsBuilder.
Add custom messages to Allure report steps and validations using SHAFT Engine's withCustomReportMessage() and SHAFT.Report API.
Validate element text, attributes, existence, and state using SHAFT Engine's fluent driver-based validation API.
Validate web element properties such as existence, visibility, text, attributes, and visual appearance using SHAFT Engine.
Validate file existence, checksum, and content using SHAFT Engine's FileValidationsBuilder.
Intentionally fail a test with a custom message using SHAFT Engine's forceFail validation.
Validate API responses against a JSON schema in SHAFT Engine using matchesSchema and doesNotMatchSchema for contract testing and API governance.
Validate numbers for equality and comparison using SHAFT Engine's NumberValidationsBuilder.
Validate objects for equality, containment, regex matching, null checks, and boolean values using SHAFT Engine.
Understand the difference between hard assertions (assertThat) and soft assertions (verifyThat) in SHAFT Engine — choose the right strategy for your tests.
Learn how to use SHAFT Engine's built-in assertions and verifications for browser, element, object, number, file, and API response validation.