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 | Config Generator tab on the Properties Reference |
| 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 | CLI Actions |
| Database | Database Actions |
| Configuration | Property types |
| Assertions | Validations |
| 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");
api.assertThatResponse().extractedJsonValue("id").isEqualTo("1");