> 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/how-to-create-web-test-case.md).

# How to create Web test case

A Web Test Case is a structured validation scenario designed to test the functionality and behavior of a web application in a browser. It simulates real user interactions such as entering data, clicking buttons, and navigating pages ensure UI elements and workflows function as intended.

#### **Steps to Create a Web Test Case**

* &#x20;Click on [**Create New Test Case**](/test-and-quality-management/test-management/test-cases/test-case-creation.md) button to start a new validation scenario.

<figure><img src="/files/SVHEDYhdATgpzbfwlH6N" alt=""><figcaption></figcaption></figure>

* Click "**Add Step"**, then type **“/”** inside the step field. From the dropdown menu, choose **Test Case Type** and select **Web**. This allows you to build structured web validation steps without writing manual code.

<figure><img src="/files/3MfNu4VGVLhegEV9Pu0a" alt=""><figcaption></figcaption></figure>

* **Add Step Description & Use Variables**:
  * Enter the test step description in simple English.
  * **To reuse an existing Variables**:  type `$(` for Global variables, `${` for Local variables, or `$[` for Runtime variables to open the dropdown and select the required value.
  * **To create a new Variables**: Refer to the **Create New Variables** section for guidance.

<figure><img src="/files/GjAPWbjPqkkRnT0vBjA3" alt=""><figcaption></figcaption></figure>

4. Once all steps are defined, click **Save** to store your test case in the dashboard.
5. Run the created web test case using either **Manual** or **Automation (AI)** mode.

<figure><img src="/files/nro8AU3RM0mCtqgiwTWh" alt=""><figcaption></figcaption></figure>

To understand the details of running your tests and how the system handles changes, refer to the documentation on [Execution & AI Healing](/test-and-quality-management/test-management/execution-and-ai-healing.md).


---

# 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/how-to-create-web-test-case.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.
