AI Test Case Generation

AI

Overview

AI Test Case Generation uses Monty to automatically create test cases for a user story. Starting from the story ID, Monty reads the story description and acceptance criteria and produces a set of structured test cases that you can review, select, and save directly to the story.

Getting there

1Open the Story Detail view for the story you want to generate test cases for
2Navigate to the Test Cases tab in the story detail
3Click Generate Test Cases with AI (✨)

Generating test cases

1Click Generate Test Cases with AI in the Test Cases tab
2Monty reads the story and generates a list of test cases — each with a title, preconditions, steps, and expected results
3Review the generated test cases in the panel
4Select the test cases you want to keep using the checkboxes
5Click Save Selected to add the selected test cases to the story

Regenerating

If the generated test cases are not suitable, click Regenerateto produce a fresh set. You can run generation as many times as needed. Each regeneration replaces the previous set in the preview panel — test cases that have already been saved to the story are not affected.

Tips for better results

  • Write clear, specific acceptance criteria before generating — Monty uses AC as the primary source for test case conditions
  • A detailed story description that covers edge cases and error states produces more comprehensive test cases
  • Save only the test cases that are relevant — you can always generate more or add manual test cases after saving
  • Edit individual generated test cases after saving to refine them for your testing environment

Troubleshooting

The Generate Test Cases button is not visible

Confirm you are in the Test Cases tab of the Story Detail view. If AI features are not available, contact your administrator to check if AI test case generation is enabled for the project.

Generated test cases are too generic

Improve the story description and acceptance criteria to include specific user roles, data, validation rules, and expected error states. Then regenerate.

I saved test cases that I did not want

Delete unwanted test cases from the Test Cases tab after saving. Select the test case and use the delete/remove action.