Test Case Automation
Automates a single manual test case: converts it into executable test code and opens a PR with the result.
Parameters
Configured via customParams in the agent JSON or the project .dmtools/config.js (project values win).
autoStartReview— whentrue, automatically trigger the PR review workflow after this agent finishes.autoStartReviewConfigFile— agent config file used for the auto-started review workflow.checkOpenPR— whentrue, skip tickets that already have an open pull request for this work.removeLabel— label removed from the ticket after a successful run (idempotency cleanup).testFilesGlob— glob that selects which test files belong to this automation scope.
Human doc: agents/docs/agents/test_case_automation.md
Attributes
| Attribute | Value |
|---|---|
| Job | Teammate |
| Config | test_case_automation.json |
| ContextId | test_case_automation |
| outputType | none |
| skipAIProcessing | true |
Prompt snapshot
Full prompt / instruction set: agents/snapshots/test_case_automation.md
Actions
preJSAction: checkWipLabel.js
Check WIP Label Pre-Action
- Source:
agents/js/checkWipLabel.js - Side effects:
- post Jira comment
- Parameters (customParams):
checkOpenPR
preCliJSAction: preCliTestAutomationSetup.js
Pre-CLI Test Automation Setup Action (preCliJSAction for test_case_automation)
- Source:
agents/js/preCliTestAutomationSetup.js - Writes:
input/<KEY>/merge_conflicts.md
- Side effects:
- git checkout
- git merge
postJSAction: postTestAutomationResults.js
Post Test Automation Results Action (postJSAction for test_case_automation)
- Source:
agents/js/postTestAutomationResults.js - Side effects:
- remove label “sm_test_automation_triggered”
- post Jira comment
- git push
- git merge
- Parameters (customParams):
autoStartReviewautoStartReviewConfigFileremoveLabeltestFilesGlob
LLM step
- outputType:
none - Prompt snapshot:
agents/snapshots/test_case_automation.md
Custom params
removeLabel:"sm_test_automation_triggered"checkOpenPR(used by JS action)autoStartReview(used by JS action)autoStartReviewConfigFile(used by JS action)testFilesGlob(used by JS action)
Generated by js/agentDocGenerator.js