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