analyze_for_testing
Analyze a ServiceNow artifact to identify testing requirements, complexity, risk areas, and coverage, providing recommendations for thorough or smoke testing.
Instructions
Deep-analyze a ServiceNow artifact to understand what needs to be tested.
Two input modes:
A) Provide code directly (paste script content or user uploads a file)
B) Provide artifact_type + artifact_name (or sys_id) to fetch live from SN
Returns:
Artifact type detected
Complexity score and risk areas
Methods, tables, and conditions detected
Coverage areas with estimated test case count
Recommendation (thorough / smoke / etc.)
Always call this FIRST before create_test_plan.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Script/code content to analyze (paste or file content) | |
| artifact_type | No | SN artifact type — required when fetching live from SN | |
| artifact_name | No | Name of the SN artifact to fetch live | |
| sys_id | No | sys_id of the SN artifact to fetch live |