Creating Test Cases in Walnut
Walnut supports multiple platforms of test cases to validate different layers of your application. Each test case type ensures complete functional coverage, from frontend user interactions to backend services and database validation.
Web Test Cases Designed to validate frontend application behaviour and user journeys. They verify UI elements, form validations, navigation flows, authentication processes, and complete end-to-end workflows.
API Test Cases Designed to validate backend services and system integrations. They allow configuration of HTTP methods (GET, POST, PUT, DELETE, PATCH), headers, authentication, parameters, and request payloads. API test cases verify response status codes, add assertions, headers, and response data, and support variable extraction for use in subsequent steps.
Database Test Cases Designed to validate data integrity and backend storage operations. They connect to supported databases, execute SQL queries, and validate returned results. Database test cases ensure accurate data validation after UI or API operations and support assertions and parameterized execution.
Hybrid Test Cases (End-to-End Validation) Walnut also supports combining Web, API, and Database steps within a single test case. This allows full end-to-end validation for example, performing a UI action, validating the API response, and verifying database changes in one structured workflow. This unified approach ensures complete traceability and comprehensive application validation across all layers.
By supporting individual and combined test case platforms within a single framework, Walnut enables structured, end-to-end testing with improved quality, better visibility, and reduced risk throughout the application.
Last updated

