Test Case Automation
Automates a single standalone Test Case ticket inside testing/tests/{TICKET-KEY}/, runs real user-style verification against the deployed implementation, and opens a dedicated test PR (or files a bug report in outputs/bug_description.md when a product defect is found).
Parameters
-
removeLabel— removessm_test_automation_triggeredwhen finished. -
checkOpenPR— skips tickets that already have an active test PR. -
testFilesGlob— file glob restricting which paths undertesting/may be committed. -
autoStartReview/autoStartReviewConfigFile— triggerspr_test_automation_reviewafter the PR is created. -
responseTarget:"scm"—outputs/response.mdbecomes the PR body/comment, so the output-format prompt is GitHub-Flavored Markdown even on Jira (conditionsisResponseToScm.js/isResponseToTracker.js).
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 - Parameters (customParams):
branchCreateFnPathcheckOpenPRdryRun
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
- Parameters (customParams):
branchCreateFnPathdryRun
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” (via tracker)
- post ticket comment (via tracker)
- move ticket to status (via tracker)
- Parameters (customParams):
aiRepositoryconfigPathcontentOutputcontentOutput.targetdryRunlocalTeammateprojectKeyremoveLabelsmFallbacktestFilesGlobtrackerProvider
LLM step
- outputType:
none - Prompt snapshot:
agents/snapshots/test_case_automation.md
Custom params
responseTarget:"scm"removeLabel:"sm_test_automation_triggered"branchCreateFnPath(used by JS action)checkOpenPR(used by JS action)dryRun(used by JS action)aiRepository(used by JS action)configPath(used by JS action)contentOutput(used by JS action)contentOutput.target(used by JS action)localTeammate(used by JS action)projectKey(used by JS action)smFallback(used by JS action)testFilesGlob(used by JS action)trackerProvider(used by JS action)
Generated by js/agentDocGenerator.js