API

When to Use API Smart Recording: Use this feature when you want to generate real-time, structured API test cases by interacting with live applications using Walnut AI.

  • Supported Platform: API

  • Execution Type: AI-driven API interaction

Steps to Generate:

  • Enter Application URL: Click the API option under Generate Test Cases → Smart Recording and enter the base application URL.

  • Connect: Click Connect to start the AI-controlled session. Walnut AI establishes the connection and begins monitoring API network activity.

  • Provide Prompt: Enter a prompt describing the API functionality (for example: Generate login API test case, Validate dashboard API, Create user API flow). Walnut AI triggers API calls and structures them into test steps.

  • AI Analysis & Recording: Walnut AI captures API requests, endpoints, payloads, headers, response codes, and validations while structuring them into organized test steps.

  • Parameter Generation: Input values such as base URLs, endpoints, credentials, headers, payload values, and expected responses are automatically converted into reusable parameters.

  • Step Optimization: You can provide prompts to optimize the API flow. WalnutAI removes redundant API calls, retains required validations, and structures the steps into an optimized, execution-ready API test case.

  • Finalize Session: Click Disconnect and then Done to complete the recording session.

  • Save: Click Save to store the generated test case. If not saved, the generated test case will not be retained.

Result: Saved Test Cases will appear in the Test Case Module reflected accordingly.

Last updated