For the complete documentation index, see llms.txt. This page is also available as Markdown.

API Test Case Creation

Creating an API test case in WalnutAI allows you to automate API workflows using AI Recording. Instead of capturing UI objects, XPaths, or other web elements, WalnutAI captures the API requests and responses generated during the workflow and converts them into automated test steps.

Steps to Generate an API Test Case

  • Select API as the test type and configure the required settings. Ensure that the Agent is turned on.

  • Enter the application URL and click Connect. The Live Screen opens, and the chat panel is enabled for recording the API workflow.

  • Describe the API workflow you want to automate in the chat panel. For example: Log in to the application using valid credentials and retrieve the user details.

  • Click Send. The AI agent processes the prompt, performs the required workflow, and captures the API requests and responses involved in the flow. WalnutAI then generates the corresponding API test case with the required requests, parameters, headers, payloads, and validations.

  • Once the test case is generated, review and customize the API steps as required. You can edit request details, modify parameters, skip a step, enable Continue on Failure, add a new step, add a nested test case, or cancel a step.

For detailed information on modifying individual test steps, refer to Manage a Test Step.

  • Once you have completed the required modifications, click Disconnect to end the recording session, and then click Done. Finally, click Save to save the generated API test case.

Last updated