test_code_file
Submit ServiceNow code and receive a complete expert test plan. Analyze, structure, and present test cases for approval before execution.
Instructions
One-shot shortcut: user provides code (or file content), get back a full expert test plan immediately.
Combines analyze_for_testing + create_test_plan in one call. The plan is still presented for approval before running — call run_approved_tests to execute.
Use this when:
User says "test this code" and pastes a script
User uploads a .js file and asks to test it
User provides a Script Include, Business Rule, or REST script directly
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The full script/code content to test | |
| artifact_name | No | Name for this artifact in the test plan | Provided Script |
| artifact_type | No | Override auto-detected artifact type | |
| priority | No | all |