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 — removes sm_story_test_automation_triggered upon completion.

  • testFilesGlob — glob pattern selecting story test artifacts under testing/.

  • 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.md becomes the PR body/comment, so the output-format prompt is GitHub-Flavored Markdown even on Jira (conditions isResponseToScm.js / isResponseToTracker.js).

Human doc: agents/docs/agents/story_test_automation.md

Attributes

AttributeValue
JobTeammate
Configstory_test_automation.json
ContextIdstory_test_automation
outputTypenone
skipAIProcessingtrue

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):
    • branchCreateFnPath
    • checkOpenPR
    • dryRun

preCliJSAction: preCliStoryTestAutomationSetup.js

Pre-CLI Story Test Automation Setup Action

  • Source: agents/js/preCliStoryTestAutomationSetup.js
  • Writes:
    • input/<KEY>/merge_conflicts.md
    • input/<KEY>/review_policy.md
    • outputs/review_replies.json
  • Side effects:
    • git push
    • git checkout
  • Parameters (customParams):
    • allowApproveWithSuggestions
    • branchCreateFnPath
    • dryRun
    • importantBlocksApproval
    • maxReviewThreadsBeforeForceApprove
    • testFilesGlob

postJSAction: postStoryTestAutomationResults.js

Post Story Test Automation Results Action

  • Source: agents/js/postStoryTestAutomationResults.js
  • Side effects:
    • post ticket comment (via tracker)
  • Parameters (customParams):
    • aiRepository
    • configPath
    • contentOutput
    • contentOutput.target
    • customStatuses
    • dryRun
    • localTeammate
    • maxReworkRounds
    • projectKey
    • removeLabel
    • smFallback
    • testFilesGlob
    • trackerProvider

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

View the agent config on GitHub →

Generated from story_test_automation.json in the agents repository and its human doc — edit either and the page follows. Last updated .