> For the complete documentation index, see [llms.txt](https://docs.walnutai.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.walnutai.ai/test-and-quality-management/test-management/creating-test-cases-in-walnut.md).

# 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.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.walnutai.ai/test-and-quality-management/test-management/creating-test-cases-in-walnut.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
