CreateProgramUnitTest
Creates ABAP Unit test classes for an existing report from supplied test source, writes them to a test include, and activates the report outside batch mode.
Instructions
Creates the ABAP Unit test classes of the report named by program_name, from test_class_source. They are written to a test include, which is included into the report, and the report is activated. Runs outside batch mode.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"program_name": "<program_name>",
"test_class_source": "<test_class_source>"
},
"name": "CreateProgramUnitTest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail | No | How much of the answer to return: "terse" (default, the fields you need to act), "full" (the whole parse), "raw" (the document as ADT sent it). | terse |
| program_name | Yes | Report that gets the tests. Must already exist. | |
| test_class_source | Yes | ABAP source of the local test classes: definitions and implementations, FOR TESTING. Replaces what the include holds. | |
| transport_request | No | Transport request, not a task. Required for a transportable object. |