Reference
Use this section after completing the quick start. It contains the detailed action, property, validation, reporting, and design guides.
I want to...
| Task | Start here |
|---|---|
| Open a browser, click, type, wait, and assert | Web testing |
| Choose resilient web locators | Web locator strategy |
| Send REST requests and validate responses | API testing |
| Configure browser, API, mobile, retry, or reporting behavior | Property types |
Generate a custom .properties file | Properties Generator |
| Attach evidence and understand reports | Reporting |
| Diagnose flaky or failed runs | How SHAFT reduces flakiness |
| Query a database or run a terminal command | Database testing and CLI testing |
Reference areas
| Area | Reference |
|---|---|
| Browser and element actions | GUI actions |
| REST API | API request builder |
| CLI | Terminal actions |
| Database | Database actions |
| Configuration | Property types |
| Assertions | Validation overview |
| Engineering practices | Solution 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").perform();
api.assertThatResponse().extractedJsonValue("id").isEqualTo("1");