- Implemented comprehensive tests for the Kommunikation Sync functionality, covering base64 encoding, marker parsing, creation, type detection, and integration scenarios. - Added a verification script to check for unique IDs in Advoware communications, ensuring stability and integrity of the IDs. - Created utility scripts for code validation, notification testing, and PUT response detail analysis to enhance development and testing processes. - Updated README with details on new tools and their usage.
40 lines
1.1 KiB
Markdown
40 lines
1.1 KiB
Markdown
# Beteiligte Sync - Test Scripts
|
|
|
|
Test-Scripts für die Beteiligte (Stammdaten) Synchronisation zwischen EspoCRM und Advoware.
|
|
|
|
## Scripts
|
|
|
|
### test_beteiligte_sync.py
|
|
Vollständiger Test der Beteiligte-Sync Funktionalität.
|
|
|
|
**Testet:**
|
|
- CREATE: Neu in EspoCRM → POST zu Advoware
|
|
- UPDATE: Änderung in EspoCRM → PUT zu Advoware
|
|
- Timestamp-Vergleich (espocrm_newer, advoware_newer, conflict)
|
|
- rowId-basierte Change Detection
|
|
- Lock-Management (Redis)
|
|
|
|
**Verwendung:**
|
|
```bash
|
|
cd /opt/motia-app/bitbylaw
|
|
python scripts/beteiligte_sync/test_beteiligte_sync.py
|
|
```
|
|
|
|
### compare_beteiligte.py
|
|
Vergleicht Beteiligte-Daten zwischen EspoCRM und Advoware.
|
|
|
|
**Features:**
|
|
- Field-by-Field Vergleich
|
|
- Identifiziert Abweichungen
|
|
- JSON-Output für weitere Analyse
|
|
|
|
**Verwendung:**
|
|
```bash
|
|
python scripts/beteiligte_sync/compare_beteiligte.py --entity-id <espo_id> --betnr <advo_betnr>
|
|
```
|
|
|
|
## Verwandte Dokumentation
|
|
|
|
- [../../docs/SYNC_OVERVIEW.md](../../docs/SYNC_OVERVIEW.md#beteiligte-sync-stammdaten) - Beteiligte Sync Details
|
|
- [../../services/beteiligte_sync_utils.py](../../services/beteiligte_sync_utils.py) - Implementierung
|