UpdateUnitTest
Updates ABAP Unit test classes for an existing ABAP class using supplied test source, then activates the class and records the change in the specified transport request.
Instructions
Updates the ABAP Unit test classes of an ABAP class (CLAS) from the test class source given, activating the class, recorded in the transport given.
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": {
"class_name": "<class_name>",
"test_class_source": "<test_class_source>"
},
"name": "UpdateUnitTest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail | No | How much of the answer to return: "terse" (default) what a next call needs: the identifiers and a short description; "medium" every item the tool read, with its main properties; "full" the tool's whole answer; "raw" what SAP sent. | terse |
| class_name | Yes | Class that holds 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. |