Skip to main content

12 docs tagged with "validations"

View all tags

API Response Validations

Validate API responses including JSON values, file content comparison, and schema matching using SHAFT Engine.

Browser Validations

Validate browser attributes such as URL and title using SHAFT Engine's WebDriverBrowserValidationsBuilder.

Custom Report Messages

Add custom messages to Allure report steps and validations using SHAFT Engine's withCustomReportMessage() and SHAFT.Report API.

Element Validations

Validate element text, attributes, existence, and state using SHAFT Engine's fluent driver-based validation API.

Element Validations

Validate web element properties such as existence, visibility, text, attributes, and visual appearance using SHAFT Engine.

File Validations

Validate file existence, checksum, and content using SHAFT Engine's FileValidationsBuilder.

Force Fail

Intentionally fail a test with a custom message using SHAFT Engine's forceFail validation.

JSON Schema Validation

Validate API responses against a JSON schema in SHAFT Engine using matchesSchema and doesNotMatchSchema for contract testing and API governance.

Number Validations

Validate numbers for equality and comparison using SHAFT Engine's NumberValidationsBuilder.

Object Validations

Validate objects for equality, containment, regex matching, null checks, and boolean values using SHAFT Engine.

Soft vs Hard Assertions

Understand the difference between hard assertions (assertThat) and soft assertions (verifyThat) in SHAFT Engine — choose the right strategy for your tests.

Validations Overview

Learn how to use SHAFT Engine's built-in assertions and verifications for browser, element, object, number, file, and API response validation.