Generate Test Cases with AI
tm_generate_test_casesGenerate structured test cases from a requirement or prompt using the Test Manager AI generator (applies the project's Memory Layer — Project & Org Instructions — automatically) and file them into the chosen folder. Requirement documents, specs, spreadsheets or screenshots can be attached via files to ground the generation. Volume = test_scenario_limit × per_scenario_test_cases_limit, capped at 50 per call. By default all generated cases are saved into the folder (one sub-folder per scenario); pass auto_save=false to review before saving. The call returns FAST with a request_id (and a browser progress URL) — generation takes ~30-90s in the background; call this tool again with just request_id to check progress, fetch results, or save. Note: consumes AI generation credits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Optional reference files to ground the generation (requirement docs, specs, data sheets, screenshots). Each item carries the file name and its raw bytes base64-encoded in content_base64. Supported: .pdf, .docx, .txt, .csv, .xlsx, .json, .xml, .jpg, .jpeg, .png, .gif, .bmp, .webp; max 5 files, 10 MB each. Large files are better uploaded in the Test Manager UI, since the base64 content travels in the request. Only used when starting a new generation. | |
| prompt | No | The requirement / instructions to generate test cases from. Required when starting a new generation. | |
| jira_ids | No | Optional Jira issue keys to use as requirement context | |
| auto_save | No | Save all generated cases into the folder automatically (default true for a NEW generation). Set false to review first — that choice persists across request_id polls (a bare poll never saves it); to save after review, call again with request_id AND auto_save=true. | |
| folder_id | No | Folder to file generated cases into. Required when starting a new generation. | |
| project_id | No | Project ID (ULID). Required when starting a new generation. | |
| request_id | No | Resume/act on an earlier generation: check progress, fetch results, or save them. | |
| test_scenario_limit | No | Max scenarios to generate (default 3) | |
| per_scenario_test_cases_limit | No | Max test cases per scenario (default 3) |