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, and alert actions via Selenium/Appium.SHAFT.API– RESTful API interactions via REST Assured.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 classProvides access to command-line and file-system operations.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()
-