The Three-Layer Architecture
TestAuto2 follows a three-layer architectural pattern where each layer has distinct responsibilities:Why This Layering Matters
The separation of concerns enables each layer to evolve independently. You can reconfigure a Risksheet column without touching Polarion custom fields, or modify the RTM model without breaking existing risk analysis workflows. This architecture supports configuration over customization — a principle that reduces long-term maintenance costs and upgrade friction.All three layers use declarative configuration files (XML for Polarion, YAML for PowerSheet/RTM, JSON for Risksheet) rather than procedural code. This means configuration changes don’t require software development skills, compilation, or deployment pipelines.
Data Layer: Polarion ALM Foundation
Polarion ALM provides the persistent data store and baseline ALM capabilities. TestAuto2 extends Polarion’s data model with custom work item types, custom fields, enumerations, link roles, and workflows specifically designed for automotive safety.Custom Work Item Type Taxonomy
The solution defines 20+ specialized work item types organized into V-Model layers:FailureMode includes fields for FMEA severity, occurrence, detection, and Action Priority, while Hazard includes HARA-specific fields for controllability, exposure, and ASIL classification.
Link Roles: The Traceability Backbone
Polarion’s link role system enables typed relationships between work items. TestAuto2 defines 14 specialized link roles:| Link Role | From → To | Purpose |
|---|---|---|
refines | CustomerReq → SystemReq | Requirements decomposition |
allocatedTo | Function → SystemElement | Function allocation to hardware/software |
assesses | FailureMode → Function/Characteristic | FMEA analysis scope |
mitigates | RiskControl → FailureMode | Risk treatment traceability |
verifies | TestCase → Requirement | V-model verification |
validates | ValidationTestCase → CustomerReq | V-model validation |
hasHazard | SystemElement → Hazard | HARA scoping |
hasCause | Hazard → Cause | Causal chain |
hasHarm | Hazard → Harm | Consequence modeling |
FailureMode work items with mitigates links to RiskControl items.
Integration Layer: The RTM Domain Model
The RTM (Requirements Traceability Matrix) domain model sits between Polarion’s raw data model and the presentation tools. Defined in.polarion/nextedy/models/rtm.yaml, the RTM model specifies:
- Entity types — Which Polarion work item types participate in traceability
- Relationships — Which link roles connect entities, with cardinality and directionality
- Constraints — Validation rules (e.g., “DesignRequirement can only link to SystemRequirement within the same subsystem”)
- Expansion paths — How PowerSheet should traverse the graph to populate rows
Why the RTM Model Exists
Without the RTM abstraction, every Risksheet and PowerSheet would need to hardcode Polarion type names, link roles, and query logic. Changes to the data model would cascade through dozens of configurations. The RTM model centralizes these definitions, enabling single-source-of-truth data modeling. For example, theCustomerRequirement entity in rtm.yaml declares:
CustomerRequirement) rather than by Polarion type (customerReq). If you rename the Polarion type, you update it once in rtm.yaml, and all dependent configurations remain valid.
Entity Type Examples
The RTM model defines 13 entity types. Key examples:- SystemElement: Represents hierarchical system architecture (System → Subsystem → Component). Used for ASIL decomposition and FMEA scoping.
- FailureMode: Central to DFMEA analysis. Assesses
FunctionorCharacteristicentities via theassesseslink role. - RiskControl: Mitigates
FailureModeentities. Enables pre/post-mitigation risk calculation in Risksheet formulas. - Characteristic: Refines
DesignRequirementand is assessed byFailureMode. Links design intent to failure analysis.
constraints clauses.
Presentation Layer: Risksheet and PowerSheet
Risksheet: Risk Analysis Tables
Risksheet renders interactive tables for HARA, FMEA, PFMEA, and Control Plans. Each Risksheet is defined by a JSON configuration file (e.g.,risksheet.json attached to a Polarion module) that specifies:
- Columns: Fields to display (custom fields, computed formulas, linked work item pickers)
- Views: Progressive disclosure workflows (e.g., “Analysis View” → “Mitigation View” → “Validation View”)
- Formulas: JavaScript expressions for computed columns (e.g., ASIL calculation, Action Priority logic)
- Levels: Hierarchical grouping (System → Subsystem → Component)
S, E, C) and outputs the ASIL enum value, which Polarion persists back to the Hazard work item.
PowerSheet: Traceability Matrices
PowerSheet renders hierarchical RTM sheets that expand entity relationships dynamically. A PowerSheet YAML configuration specifies:- Root entity: Starting point for row expansion (e.g.,
CustomerRequirement) - Expansion paths: Which relationships to traverse (e.g.,
refinedBy → SystemRequirement → verifiedBy → TestCase) - Column groups: Attributes to display for each entity type
- Renderers: How to format cells (icons, traffic lights, links)
rtm.yaml, PowerSheet rejects the configuration with a descriptive error.
Example: Whole RTM Sheet Expansion
The “Whole RTM Sheet” PowerSheet expands the entire V-model from customer requirements through validation:
- CustomerRequirement (root)
- refines -> SystemRequirement
- refines -> DesignRequirement
- verifies -> VerificationTestCase
- refines -> DesignRequirement
- validates -> ValidationTestCase
- refines -> SystemRequirement
Data Flow: From User Input to Persistence
Understanding the round-trip data flow clarifies how the architecture maintains consistency:Why This Architecture Supports ISO 26262
ISO 26262 requires demonstrable traceability, configuration management, and change control. The TestAuto2 architecture addresses these requirements:- Bidirectional Traceability: Link roles enable automated traceability reports. The RTM model enforces relationship integrity.
- Configuration Management: Polarion’s built-in versioning tracks all work item changes. Baselines freeze project state for audits.
- Workflow Control: Polarion workflows enforce review/approval gates. Documents cannot transition to “Approved” state without passing validation rules.
- Tool Qualification: Risksheet and PowerSheet configurations are declarative (YAML/JSON), not executable code, reducing tool qualification burden under ISO 26262-8.
Extensibility Points
The architecture provides well-defined extension mechanisms:- Add a new work item type: Define in Polarion XML, add to
rtm.yamlentity types, reference in Risksheet/PowerSheet configs - Add a custom field: Define in Polarion
custom-fields.xml, add to Risksheet column definitions or PowerSheet column groups - Add a new link role: Define in Polarion
link-roles.xml, add tortm.yamlrelationships, use in Risksheet pickers or PowerSheet expansions - Add a new report: Create Velocity template in
.polarion/pages/, query work items via$trackerService, render using Nextedy macros
Scalability Considerations
The architecture handles projects with thousands of work items through several mechanisms:- Lazy Loading: Risksheet and PowerSheet load only visible rows on initial render, fetching additional data as users scroll.
- Query Optimization: Lucene queries in Velocity templates are indexed by Polarion’s search engine.
- Hierarchical Levels: Risksheet levels (System → Subsystem → Component) partition large datasets into manageable chunks.
- View Filtering: Progressive workflow views reduce cognitive load by hiding irrelevant columns.
Comparison to Alternative Architectures
Why not a standalone FMEA tool? Standalone tools require manual data export/import to maintain traceability with requirements in Polarion. The integrated architecture eliminates this friction and ensures real-time consistency. Why not custom Polarion scripting? Custom server-side scripts (Workflow Functions, Java extensions) require deployment, testing, and version-specific compatibility. Declarative configurations (YAML/JSON) survive Polarion upgrades with minimal changes. Why not a data warehouse? A central warehouse would introduce eventual consistency issues and complicate change tracking. Polarion as the single source of truth ensures strong consistency and leverages built-in audit logging.Next Steps
Now that you understand the architectural layers and data flows, explore how specific components work:- How Nextedy Products Integrate — Deep dive into Risksheet and PowerSheet integration patterns
- RTM Domain Model — Complete entity type and relationship reference
- Data Model Overview — Work item types, custom fields, and link roles catalog
- Customize Risksheet Columns — Modify presentation layer configurations
- Modify RTM Model — Extend the integration layer
- Use Whole RTM Sheet — Navigate the fully expanded traceability matrix