Automated Test Generation
Saphira automatically generates comprehensive test plans that trace directly to requirements, safety analyses, and standards clauses—ensuring complete verification coverage for your safety-critical systems.Test Generation Capabilities
Requirement-Based Tests
Requirement-Based Tests
Generate tests directly from requirements:
- Each requirement gets one or more test cases
- Tests verify specific requirement criteria
- Automatic traceability links established
- Coverage tracking for all requirements
Safety Analysis Tests
Safety Analysis Tests
Generate tests from safety artifacts:
- HARA Tests: Verify hazard mitigations
- FMEA Tests: Verify failure mode detection/prevention
- TARA Tests: Verify cybersecurity controls
- FTA Tests: Verify fault handling
Standards-Based Tests
Standards-Based Tests
Generate tests from standards clauses:
- Tests aligned with verification methods
- Acceptance criteria from standards
- Evidence requirements identified
- Compliance demonstration support
Test Case Structure
Generated Test Case Fields
| Field | Description | Example |
|---|---|---|
| Test Case ID | Unique identifier | TC-REQ-001-01 |
| Test Objective | What the test verifies | Verify emergency stop response time |
| Test Method | Type of testing | Hardware-in-the-loop (HIL) |
| Test Conditions | Specific test setup | Normal operation, 25°C ambient |
| Expected Results | Pass criteria | Stop achieved within 500ms |
| Test Level | Unit/Integration/System | System |
| Requirement ID | Traced requirement | REQ-SAFETY-001 |
| ASIL Level | Safety classification | ASIL C |
Test Generation Workflow
Select Source Artifacts
Select Source Artifacts
Choose what to generate tests from:
- Individual requirements
- Requirement groups by type
- Control measures from HARA
- Safety functions
- Standards clauses
Configure Test Parameters
Configure Test Parameters
Specify test generation options:
- Target test level (Unit, Integration, System, Acceptance)
- Test methods to include (Analysis, Review, Simulation, HIL, Physical)
- Industry-specific frameworks
- Custom test templates
Generate Test Plans
Generate Test Plans
AI generates comprehensive tests:
- Detailed test procedures
- Expected results with acceptance criteria
- Required equipment list
- Estimated duration
- Safety considerations
Review and Refine
Review and Refine
Edit generated tests:
- Adjust test procedures
- Modify acceptance criteria
- Add specific parameters
- Update traceability links
Export and Execute
Export and Execute
Generate test documentation:
- Test plan documents (PDF)
- Test case spreadsheets (Excel)
- Code templates for automated testing
- Integration with test management tools
Test Traceability
Traceability Matrix
Saphira maintains complete traceability between:Traceability Features
Automatic Link Suggestions
Automatic Link Suggestions
When generating tests, Saphira suggests links to:
- Related FMEA failure modes
- HARA hazards and control measures
- Parent/child requirements
- Applicable standards clauses
Coverage Analysis
Coverage Analysis
Track verification coverage:
- Requirements with/without tests
- Safety functions test coverage
- Standards clause verification status
- Gap identification and recommendations
Impact Analysis
Impact Analysis
When requirements change:
- Identify affected test cases
- Highlight tests needing updates
- Track test validity status
- Maintain audit trail
Test Methods by Level
Multi-Level Testing Support
Unit Testing
Unit Testing
Component-level verification:
- Individual function tests
- Module interface tests
- Code coverage requirements
- Static analysis integration
- Python (pytest)
- C/C++ (Google Test)
- LabVIEW
- MATLAB/Simulink
Integration Testing
Integration Testing
Subsystem interface verification:
- Component interaction tests
- Data flow verification
- Protocol conformance tests
- Timing and synchronization tests
System Testing
System Testing
Complete system verification:
- End-to-end functional tests
- Performance validation
- Environmental testing
- EMC and compliance tests
HIL/SIL Testing
HIL/SIL Testing
Simulation-based verification:
- Model-in-the-loop (MIL)
- Software-in-the-loop (SIL)
- Hardware-in-the-loop (HIL)
- Fault injection tests
Industry-Specific Testing
Automotive (ISO 26262)
ASIL-Based Testing
ASIL-Based Testing
Tests aligned with ASIL requirements:
- Method selection per ISO 26262-8
- Independence requirements
- Diagnostic coverage verification
- Fault handling tests
Safety Function Tests
Safety Function Tests
Verify safety mechanisms:
- Safe state transition tests
- Fault detection time tests
- Diagnostic coverage tests
- Degraded mode tests
Industrial (ISO 13849)
Performance Level Verification
Performance Level Verification
Tests for PL achievement:
- Category validation tests
- MTTFd verification
- DCavg calculation verification
- CCF measure validation
Safety Function Tests
Safety Function Tests
Control system testing:
- Emergency stop tests
- Guard interlock tests
- Two-hand control tests
- Safety relay tests
IEC 61508 Systems
SIL Verification Tests
SIL Verification Tests
Tests for SIL achievement:
- PFH/PFD calculation verification
- Hardware fault tolerance tests
- Diagnostic coverage tests
- Systematic capability verification
Code Template Generation
Executable Test Templates
Saphira generates runnable test code:Test Results Management
Recording Test Results
Pass/Fail Recording
Pass/Fail Recording
Track test execution:
- Test status (Passed/Failed/Blocked/Not Run)
- Execution date and tester
- Actual vs expected results
- Deviation documentation
Evidence Attachment
Evidence Attachment
Attach supporting evidence:
- Test logs and reports
- Screenshots and recordings
- Measurement data
- Third-party certifications
Coverage Reporting
Coverage Reporting
Generate coverage metrics:
- Test execution status
- Pass rate by requirement
- Coverage by ASIL/PL level
- Gap analysis reports
Export and Integration
Export Formats
- PDF: Formatted test plan documents
- Excel: Test case spreadsheets with traceability
- CSV: Data for test management tools
- JSON: API integration format
Tool Integration
Saphira test plans integrate with:- Jira (test case import)
- Azure DevOps (test plans)
- Jama Connect (requirements traceability)
- HP ALM / Quality Center
- Custom CI/CD pipelines

