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 — removes sm_test_automation_triggered when finished.

  • checkOpenPR — skips tickets that already have an active test PR.

  • testFilesGlob — file glob restricting which paths under testing/ may be committed.

  • autoStartReview / autoStartReviewConfigFile — triggers pr_test_automation_review after the PR is created.

  • 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/test_case_automation.md

Attributes

AttributeValue
JobTeammate
Configtest_case_automation.json
ContextIdtest_case_automation
outputTypenone
skipAIProcessingtrue

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

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

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):
    • aiRepository
    • configPath
    • contentOutput
    • contentOutput.target
    • dryRun
    • localTeammate
    • projectKey
    • removeLabel
    • smFallback
    • testFilesGlob
    • trackerProvider

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

View the agent config on GitHub →

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