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 — when true, automatically trigger the PR review workflow after this agent finishes.
  • autoStartReviewConfigFile — agent config file used for the auto-started review workflow.
  • checkOpenPR — when true, 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

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
  • 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):
    • autoStartReview
    • autoStartReviewConfigFile
    • removeLabel
    • testFilesGlob

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

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 .