Story Test Automation
Bulk-automates all Test Cases linked to a Story in Ready For Testing on branch test/{STORY_KEY}, records per-case results (passed, failed, skipped, irrelevant) in outputs/story_test_automation_result.json, and opens one PR for the story.
Parameters
-
removeLabel— removessm_story_test_automation_triggeredupon completion. -
testFilesGlob— glob pattern selecting story test artifacts undertesting/. -
checkOpenPR— guards against duplicate story test PRs. -
customStatuses— maps logical story/test statuses to project-specific tracker statuses. -
autoStartReview/autoStartReviewConfigFile— chains the story test review agent after PR creation. -
maxReworkRounds— consecutive attributed-red rounds a TC may accumulate before an earned bounce escalates to the owner instead of re-bouncing the bug (default 2; applies on bug runs of this action). -
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/story_test_automation.md
Attributes
| Attribute | Value |
|---|---|
| Job | Teammate |
| Config | story_test_automation.json |
| ContextId | story_test_automation |
| outputType | none |
| skipAIProcessing | true |
Prompt snapshot
Full prompt / instruction set: agents/snapshots/story_test_automation.md
Actions
preJSAction: checkWipLabel.js
Check WIP Label Pre-Action
- Source:
agents/js/checkWipLabel.js - Parameters (customParams):
branchCreateFnPathcheckOpenPRdryRun
preCliJSAction: preCliStoryTestAutomationSetup.js
Pre-CLI Story Test Automation Setup Action
- Source:
agents/js/preCliStoryTestAutomationSetup.js - Writes:
input/<KEY>/merge_conflicts.mdinput/<KEY>/review_policy.mdoutputs/review_replies.json
- Side effects:
- git push
- git checkout
- Parameters (customParams):
allowApproveWithSuggestionsbranchCreateFnPathdryRunimportantBlocksApprovalmaxReviewThreadsBeforeForceApprovetestFilesGlob
postJSAction: postStoryTestAutomationResults.js
Post Story Test Automation Results Action
- Source:
agents/js/postStoryTestAutomationResults.js - Side effects:
- post ticket comment (via tracker)
- Parameters (customParams):
aiRepositoryconfigPathcontentOutputcontentOutput.targetcustomStatusesdryRunlocalTeammatemaxReworkRoundsprojectKeyremoveLabelsmFallbacktestFilesGlobtrackerProvider
LLM step
- outputType:
none - Prompt snapshot:
agents/snapshots/story_test_automation.md
Custom params
responseTarget:"scm"removeLabel:"sm_story_test_automation_triggered"branchCreateFnPath(used by JS action)checkOpenPR(used by JS action)dryRun(used by JS action)allowApproveWithSuggestions(used by JS action)importantBlocksApproval(used by JS action)maxReviewThreadsBeforeForceApprove(used by JS action)testFilesGlob(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)customStatuses(used by JS action)localTeammate(used by JS action)maxReworkRounds(used by JS action)projectKey(used by JS action)smFallback(used by JS action)trackerProvider(used by JS action)
Generated by js/agentDocGenerator.js