Skip to main content
Glama
TESTING_SUMMARY.mdâ€ĸ3.42 kB
# Testing Summary - Group Activation ## Quick Links - 📖 **[README_GROUP_ACTIVATION.md](README_GROUP_ACTIVATION.md)** - Complete testing guide - 📋 **[test-config.yaml.template](test-config.yaml.template)** - Configuration template - 🔧 **[test-activate-object.js](test-activate-object.js)** - Test script - 📚 **[../ACTIVATION_ENDPOINT_UPDATE.md](../ACTIVATION_ENDPOINT_UPDATE.md)** - Technical documentation ## Quick Start ### 1. Setup ```bash # Copy template cp tests/test-config.yaml.template tests/test-config.yaml # Build project npm run build ``` ### 2. Configure (test-config.yaml) ```yaml # Activate 2-3 related objects together activate_object: objects: - name: "ZCL_TEST_MCP_01" uri: "/sap/bc/adt/oo/classes/zcl_test_mcp_01" type: "CLAS/OC" - name: "Z_TEST_PROGRAM_01" uri: "/sap/bc/adt/programs/programs/z_test_program_01" type: "PROG/P" preaudit: false ``` ### 3. Run Test ```bash node tests/test-activate-object.js ``` ## What's New ### ✅ Centralized Activation Utilities - **File**: `src/lib/activationUtils.ts` - **Functions**: - `activateObjectInSession()` - Individual activation (1 object) - `activateObjectsGroup()` - Group activation (2-3 objects) - `parseActivationResponse()` - Response parser ### ✅ Correct Endpoints - **Group**: `/sap/bc/adt/activation/runs` (2-3 related objects) - **Individual**: `/sap/bc/adt/activation` (single object in session) ### ✅ Simplified Test Configuration - Simple example with 2 objects in `test-config.yaml.template` - Support for all object types (classes, programs, views, tables, etc.) - Pre-audit option ### ✅ Documentation - Complete testing guide with examples - Troubleshooting section - Best practices for 2-3 objects ## Usage Group activation is designed for **2-3 related objects** that need to be activated together: - Class + Test Program - 2-3 Related CDS Views - Table + Structure ## Supported Object Types | Type | Code | Example | |------|------|---------| | Class | CLAS/OC | ZCL_TEST_01 | | Program | PROG/P | Z_TEST_PROG | | CDS View | DDLS/DF | ZI_TEST_VIEW | | Table | TABL/DT | ZT_TEST_TABLE | | Structure | STRU/DS | ZS_TEST_STRUCT | | Interface | INTF/OI | ZIF_TEST_INTF | | Domain | DOMA/DD | ZD_TEST_DOM | | Data Element | DTEL/DE | ZE_TEST_ELEM | ## Common Commands ```bash # List all tests node tests/run-all-tests.js --list # Run specific test node tests/test-activate-object.js # Build before testing npm run build # Check configuration cat tests/test-config.yaml ``` ## Files Modified ### New Files - ✅ `src/lib/activationUtils.ts` - Centralized utilities - ✅ `tests/README_GROUP_ACTIVATION.md` - Testing guide - ✅ `tests/TESTING_SUMMARY.md` - This file ### Updated Files - ✅ `tests/test-config.yaml.template` - Enhanced examples - ✅ `tests/README.md` - Added activation section - ✅ `ACTIVATION_ENDPOINT_UPDATE.md` - Updated documentation - ✅ 10 handler files - Using centralized utilities ## Next Steps 1. ✅ Copy template to `test-config.yaml` 2. ✅ Update object names to match your system 3. ✅ Build the project 4. ✅ Run the test 5. ✅ Check results ## Need Help? - See [README_GROUP_ACTIVATION.md](README_GROUP_ACTIVATION.md) for detailed guide - Check [test-config.yaml.template](test-config.yaml.template) for examples - Review [../ACTIVATION_ENDPOINT_UPDATE.md](../ACTIVATION_ENDPOINT_UPDATE.md) for technical details

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/fr0ster/mcp-abap-adt'

If you have feedback or need assistance with the MCP directory API, please join our Discord server