> 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/core-features/intelligence-hub/generate-test-cases/smart-recording/ai-recording/sap-test-case-creation.md).

# SAP Test Case Creation

SAP (Systems, Applications, and Products) is an enterprise software platform used by organizations to manage and integrate core business processes such as **finance, sales, procurement, inventory, human resources, and supply chain operations**.

Testing SAP applications is important to ensure that these business processes work correctly and consistently across different scenarios. **WalnutAI’s SAP AI Recording** simplifies SAP test automation by allowing users to describe a business flow in natural language. The AI agent interacts with the SAP application based on the provided instructions and automatically generates the corresponding automated test steps, reducing the effort required to create and maintain SAP test cases.

**Steps to Generate an SAP Test Case:**

* Navigate to the **Intelligence Hub**, select **Smart Recording**, and ensure the **Agent** is turned on.

<figure><img src="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2FKv6HboeYjnA9aETgPMoR%2FScreenshot%202026-09-29%20at%206.17.43%E2%80%AFPM.png?alt=media&amp;token=4b6d30b7-b320-4a1c-8b3c-6745023a7148" alt=""><figcaption></figcaption></figure>

* Click the **AI Recording** button in the **bottom bar** and select the suitable **AI Recording** mode.

<figure><img src="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2FcL4wZ6u26jMGNAkGovvY%2FScreenshot%202026-09-25%20at%201.09.09%E2%80%AFPM.png?alt=media&amp;token=dee7f980-ca4e-4a5a-b682-6b5a54c20fa2" alt=""><figcaption></figcaption></figure>

* Click the **Web** button in the bottom bar and select **SAP** as the test type.

<figure><img src="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2F80Fp82LDsdpZp08rcA92%2FScreenshot%202026-09-29%20at%206.53.19%E2%80%AFPM.png?alt=media&amp;token=98621e98-770a-44be-873e-c90e9a9522e2" alt=""><figcaption></figcaption></figure>

* On the above bar, enter the **SAP Connection Name** into the connection field in WalnutAI, then click **Connect**.

<figure><img src="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2FIyIBRyTS0q116PJKt2ZT%2FScreenshot%202026-09-29%20at%206.56.22%E2%80%AFPM.png?alt=media&amp;token=5b6f76a9-0aba-4275-95e3-8659c1e2f908" alt=""><figcaption></figcaption></figure>

* Once the SAP connection is established, describe the required business flow in the **AI Recording prompt** using natural language.

<figure><img src="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2FoBvFaqPvksi10Gi2sJgZ%2FScreenshot%202026-09-29%20at%207.00.00%E2%80%AFPM.png?alt=media&amp;token=d1d1c9b5-ec00-4259-a64d-cce2afdfe1e1" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Use the **+** icon to add existing **test cases or custom methods** to the recording session. For more information, refer to [**Insert Test Cases and Custom Methods**.](/core-features/intelligence-hub/generate-test-cases/smart-recording/ai-recording/insert-test-cases-and-custom-methods.md)
{% endhint %}

* Click **Send**. The AI agent processes the instructions, performs the required actions, and generates the corresponding test steps.

<figure><img src="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2Fw8Ant2PaoVfg7Xn9f2CI%2FScreenshot%202026-09-29%20at%207.01.14%E2%80%AFPM.png?alt=media&amp;token=afe09a06-b162-4411-85d6-c7ee3f0e434b" alt=""><figcaption></figcaption></figure>

* Once the test case is generated, review and customize the steps as required. You can **edit objects, skip a step, enable Continue on Failure, add a new step, add a nested test case, cancel a step, or**  [**debug the test case**.](/core-features/intelligence-hub/generate-test-cases/smart-recording/debug-a-test-case-in-smart-recording.md)

<figure><img src="https://295337183-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9aroNmDWVJAmMjkdy0hx%2Fuploads%2FHJqFxwl2f8KW8lUAVlKG%2FScreenshot%202026-09-29%20at%207.02.21%E2%80%AFPM.png?alt=media&amp;token=a99a4625-1a66-47c3-ab0d-8761f8859e83" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
For detailed information on modifying individual test steps, refer to  [**Manage a Test Step**.](/test-and-quality-management/test-management/test-cases/manage-test-step.md)
{% endhint %}

* Once you have completed the required modifications, click **Disconnect** to end the session, and then click **Save** to save the generated test case.
