Skip to main content

Reference

Use this section after completing the quick start. It contains the detailed action, property, validation, reporting, and design guides.

I want to...

TaskStart here
Open a browser, click, type, wait, and assertWeb testing
Choose resilient web locatorsWeb locator strategy
Send REST requests and validate responsesAPI testing
Configure browser, API, mobile, retry, or reporting behaviorProperty Types
Generate a custom .properties fileConfig Generator tab on the Properties Reference
Attach evidence and understand reportsReporting
Diagnose flaky or failed runsHow SHAFT reduces flakiness
Query a database or run a terminal commandDatabase testing and CLI testing

Reference areas

AreaReference
Browser and element actionsGUI Actions
REST APIAPI request builder
CLICLI Actions
DatabaseDatabase Actions
ConfigurationProperty types
AssertionsValidations
Engineering practicesSolution design

Start from the facade namespace for the surface you are testing:

SHAFT.API api = new SHAFT.API("https://jsonplaceholder.typicode.com");

api.get("/todos/1");
api.assertThatResponse().extractedJsonValue("id").isEqualTo("1");