Full 5-Phase Workflow Testing¶
Manual testing, API testing, export validation, and performance testing for the RF Module Designer.
Manual Testing Workflow¶
Full 5-Phase Workflow Test¶
-
Start servers:
-
Phase I - Requirements:
- Navigate to http://localhost:5180
- Enter frequency: 2.4 GHz
- Enter output power: 30 dBm
- Select application: WiFi/Bluetooth
-
Verify regulatory compliance warnings
-
Phase II - Component Selection:
- Verify AI selects VCO, PA, driver, filter, connector
- Check alternative recommendations (should show top 5 with reasoning)
- Verify power levels are feasible
-
Confirm 2,400+ components are searchable
-
Phase III - Link Budget:
- Verify power flow calculations
- Run BOM validation (should pass 10/10 tests)
- Check electrical stress analysis
-
Verify regulatory compliance
-
Phase IV - PCB Stackup:
- Generate stackup (test with various layer counts: 4, 8, 16, 32)
- Verify impedance calculations (50Ω, 75Ω, 100Ω differential)
- Check thermal analysis (CTE validation)
-
Test different materials (FR4, Rogers, MEGTRON6)
-
Phase V - Export:
- Generate KiCad project (should create .kicad_sch, .kicad_pcb, .kicad_pro)
- Download ODB++ file (verify with ADS import)
- Export ADS substrate file
- Generate BOM with pricing
API Testing¶
Use FastAPI's built-in testing interface:
- Navigate to http://localhost:8000/docs
- Test endpoints:
POST /api/components/search- Search for "VCO 2.4GHz"POST /api/agent/select/pa- Select PA for 2.4 GHz, 30 dBmPOST /api/generate-rf-project- Generate complete KiCad project
Example API test:
curl -X POST "http://localhost:8000/api/agent/select/vco" \
-H "Content-Type: application/json" \
-d '{
"frequency_ghz": 2.4,
"output_power_dbm": 0,
"phase_noise_dbc_hz": -100
}'
Component Testing¶
Test specific component selection with various frequencies:
- Sub-1GHz: 0.433 GHz, 0.915 GHz
- 1-6GHz: 2.4 GHz (WiFi), 5.8 GHz (ISM)
- 6-18GHz: 10 GHz (X-band), 15 GHz (Ku-band)
- 18-40GHz: 24 GHz (K-band), 28 GHz (5G mmWave)
Verify: - Correct frequency band matching - Appropriate power handling - Realistic gain values - Valid datasheets
Export Testing¶
KiCad Export Validation¶
- Generate project from Phase V
- Download ZIP file
- Extract and open in KiCad 10.0
- Verify:
- Schematic opens without errors
- All components have footprints
- Connections are present
- Symbol library loads correctly
- PCB layout is readable
ODB++ Export Validation¶
- Generate ODB++ file
- Import into Keysight ADS or similar tool
- Verify layer structure matches design
- Check component placement
Stress Testing¶
BOM Validation Stress Tests (Should pass 10/10):
Run from Phase III: - Test 1-10: Various frequency/power combinations - Verify all tests pass - Check for electrical overstress warnings - Confirm component availability
Performance Testing¶
Database Preloading: - First request should be <100ms (after preload completes) - Subsequent requests should be near-instant (<10ms)
Request Deduplication: - Rapid component selection should trigger only 9 requests (not 45) - Verify in browser DevTools Network tab