UpdateProgramUnitTest
Replaces the local ABAP Unit test classes in a report's test include with supplied source and activates the include. Use it to update test code for an existing program outside batch mode.
Instructions
Writes test_class_source as the ABAP Unit test classes of the report named by program_name. The local test classes in its test include are rewritten, and it 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": "UpdateProgramUnitTest"
}
}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 whose tests are replaced. Its test include 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. |