> 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/test-cases.md).

# Test Cases

A Test Case in WalnutAI is a structured validation unit designed to verify that an application behaves as expected. It defines a clear sequence of steps, associated objects, expected outcomes, and supporting test data to ensure functional accuracy and requirement compliance. This structured approach enables consistency, traceability, and reliable validation across the application.

In this module, you will learn how to create a test case, manage its test data effectively, build nested test cases, implement conditional workflows (such as If/Else and loops), execute test cases, and leverage AI Healing to automatically detect and resolve UI or object-level changes during execution.

**Organize and View Test Cases**

The **Test Management** module provides two views to help you organize and navigate your test cases efficiently:

* **Test Cases:** Organize and group test cases into folders or modules, making it easier to manage and navigate related test cases based on features, functional areas, or other requirements.
* **User Stories:** View the associated user stories along with the test cases linked to each user story. This provides better visibility into the relationship between requirements and their corresponding test coverage.
