run_approved_tests
Execute approved test cases on ServiceNow and return a detailed report with pass/fail results, score, and remediation steps. Requires prior review and approval of the test plan.
Instructions
Execute the approved test cases on ServiceNow and return a detailed results report.
IMPORTANT: Only call this after the user has reviewed and approved the test plan.
Execution method:
Creates a Fix Script record in ServiceNow for each test case
Attempts to execute it via the SN API
If the run endpoint is unavailable, marks as MANUAL_REQUIRED and provides the Fix Script name to find in SN
Returns PASS / FAIL / MANUAL_REQUIRED / ERROR per test case
Full result report with score%, verdict, and remediation steps
After execution:
CRITICAL FAIL → surface immediately, do not suggest deploy
MANUAL_REQUIRED → list the Fix Script names and guide user to run them in SN
ALL PASS → confirm artifact is ready for UAT/deploy
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | Yes | The full plan object from create_test_plan | |
| approved | No | true = run all test cases in the plan | |
| approved_ids | No | Array of specific TC-XXX ids to run (if not running all) | |
| extra_cases | No | Additional custom test cases to add alongside the plan |