AI-Powered Test Generation
Generate test cases automatically from Jira issue context using TestKase's AI capabilities.
Overview
The AI test generation feature lets you generate test cases directly from a Jira issue's title and description. The AI analyzes the issue context and creates structured test cases with titles, steps, expected results, and priorities -- saving significant manual effort.
Prerequisites
- AI features must be enabled for your organization. The organization owner can enable or disable AI features from TestKase Settings.
- If AI is disabled, the Generate Testcase button is grayed out with a tooltip: "AI features are temporarily unavailable. Contact your admin."
How It Works
The generation flow has three phases:
Phase 1 -- Configuration
When you click the Generate Testcase button (Sparkles icon) in the Test Cases tab header, the configuration modal opens.
What you see:
- Jira issue title and description -- Displayed read-only at the top, auto-fetched from the current issue. This provides the context the AI uses to generate test cases.
- Field toggles -- Choose which fields to generate:
- Title (always enabled)
- Summary
- Precondition
- Expected Result
- Test Data
- Priority
- Number of test cases -- Dropdown to select how many test cases to generate (1–10).
- Folder selection -- Button that opens the FolderSelectionModal to choose the destination folder.
Click Generate (Sparkles icon) to start generation, or Cancel to close.
Phase 2 -- Generating
An animated progress screen displays while the AI generates test cases:
- Animated orb visual
- Progress bar with percentage
- "Completed X/Y" counter showing how many test cases have been generated
Wait for generation to complete. This typically takes a few seconds depending on the number of test cases requested.
Phase 3 -- Results
After generation completes, the results screen shows all generated test cases.
Top section:
- Info banner showing the count of generated test cases
- Target folder display with an edit button to change the destination folder
Test case list:
- Select All / Deselect All button with a count of selected items
- Each generated test case appears as an expandable item with:
- Checkbox to toggle selection
- Sparkles icon + test case title
- "Edited" badge -- appears if you have modified any field in the expanded view
Expanded view (click to toggle):
- Editable fields: Title (required -- shows red border if empty), Summary, Precondition, Priority dropdown, Test Data, Expected Result
- Validation errors display with an AlertCircle icon
Error handling:
- If generation encounters an error, an overlay popup displays the error message with a "See more/less" toggle for details. Click OK to dismiss.
Bottom actions:
- Regenerate (Sparkles icon) -- Discards current results and starts the generation flow over from Phase 1
- Submit -- Saves the selected test cases to TestKase and links them to the current Jira issue. Shows the count of selected items. Disabled if no test cases are selected.
AI-generated test cases are provided as-is. Always review the generated content before submitting to ensure accuracy, completeness, and relevance to your testing needs.
More detailed Jira issue descriptions produce better test cases. Include acceptance criteria, user stories, and specific requirements in your Jira issue description for the best AI output.