Create Test Include
create_test_includeCreate the local test include for an existing class so local test classes can be added; it does not add test code.
Instructions
Create the local test include of an existing class so local test classes can be added to it; it adds no test code itself. Write the tests afterwards with write_abap_object_source, activate, then run them with run_unit_tests. The tool locks the class, creates the include and unlocks it again, and records the change on a Workbench request (not needed in a local package). Transport: a transport you pass is checked and used; an object already locked into a request uses it; createTransport: true creates a new one; otherwise the transport already used for this piece of work (workItem, else this session) is reused; otherwise exactly one open request is used, several are listed for you to choose, none offers creation.
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": {
"classUrl": "<classUrl>"
},
"name": "create_test_include"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| classUrl | Yes | ADT URL of the class itself, not of an include (e.g. /sap/bc/adt/oo/classes/zcl_order_api) | |
| workItem | No | Name of the piece of work (e.g. HPM, a ticket). Keeps using the same transport for it across calls and sessions until you pass another. | |
| transport | No | Workbench request to record into. Checked before use; becomes the transport for this piece of work. | |
| connectionId | No | SAP system connection ID | |
| createTransport | No | Create a NEW Workbench request (only when you mean it; existing requests are preferred). |