# Adding tests using natural language input

(Also known as "Adding tests using AI" on the KushoAI dashboard)

This guide explains how to generate test cases using our AI-powered test generation feature.

# Prerequisites

  • Understanding of the test requirements you want to generate.

# Step-by-Step Guide

# 1. Access the Add Tests Feature

  1. Locate the "Add Tests" button in the top navigation bar.

  2. Click on the "Add Tests" button to reveal the dropdown menu.

# 2. Select AI Generation Method

  1. From the dropdown menu, select "Using AI".

    alt text

  2. This will open the AI test generation chat interface.

    alt text

# 3. Writing Effective Prompts

Write clear, specific prompts describing the test cases you need. For example:

"Develop a test case that includes multiple valid UUIDs in a batch request"
"Create test cases for validating API response codes"
"Generate tests to verify error handling for invalid inputs"

# 4. Interacting with KushoAI

  1. Type your test requirements into the prompt field.
  2. Press Enter or click the send button.
  3. KushoAI will respond with:
    • Confirmation of understanding.
    • Generated test cases.

# 5. Review and Save

  1. The tests will be automatically added to your test suite.

# Tips for Effective AI Test Generation

  • Be specific about the testing scenarios you want to cover.
  • Include important details like:
    • Expected response codes.
    • Data formats.
    • Edge cases.
    • Validation requirements.
  • Use the example prompts as inspiration for your own test cases.
  • Ask follow-up questions if you need modifications.

# Example Prompts

Here are some sample prompts you can use:

  • "Write a test case that sends a request with an invalid UUID format."
  • "Create a test case that includes improperly formatted JSON in the request body."
  • "Generate test cases for verifying proper handling of null values."

# Next Steps

After generating your tests:

  • Review and modify generated tests if needed.
  • Execute tests using the "RUN" button.
  • Generate test reports.
  • Export test configurations.

For more complex test scenarios or specific requirements, you can continue the conversation with KushoAI to refine and expand your test cases.