Class SHAFT
java.lang.Object
com.shaft.driver.SHAFT
- Direct Known Subclasses:
$
The main entry point for the SHAFT test automation framework.
SHAFT provides a unified, fluent API for automating Web, Mobile, API, CLI, and Database interactions. All subsystems are accessed through nested static classes:
SHAFT.GUI– Browser, element, touch, alert, and SikuliX actions.SHAFT.API– RESTful API interactions via REST Assured.SHAFT.Auth– Cached-login setup that reuses a saved browser storage state.SHAFT.CLI– Terminal and file-system operations.SHAFT.DB– Database queries and result handling.SHAFT.Validations– Standalone hard and soft assertions.SHAFT.TestData– JSON, Excel, CSV, and YAML test-data readers.SHAFT.Properties– Runtime configuration management.SHAFT.Report– Custom logging and attachments for Allure reports.
Quick-start example:
SHAFT.GUI.WebDriver driver = new SHAFT.GUI.WebDriver();
driver.browser().navigateToURL("https://example.com")
.and().assertThat().browser().title().contains("Example");
driver.quit();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classManages a REST API session and exposes a fluent interface for building and executing HTTP requests (GET, POST, PUT, PATCH, DELETE).static classPlaywright-style cached-authentication helper: runs a loginflowonce pernameand caches the resulting browser storage state (cookies +localStorage) to disk so that subsequent calls — including from other tests or threads — can reuse the same authenticated session instead of repeating the UI login.static classProvides access to command-line and file-system operations.static classControls current-thread HTTP contract recording and validation for browser and API traffic.static classProvides database connectivity and query execution.static classContains GUI-related subsystems for web and mobile test automation.static classExposes SHAFT's runtime configuration properties.static classUtility class for emitting log messages and attaching artifacts to the Allure execution report.static classProvides test data readers for various file formats.static classProvides standalone assertion and verification builders for use outside of a WebDriver context (e.g., API response validation, object comparison). -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SHAFT
public SHAFT()
-