|
| 1 | +.. |
| 2 | + # ******************************************************************************* |
| 3 | + # Copyright (c) 2026 Contributors to the Eclipse Foundation |
| 4 | + # |
| 5 | + # See the NOTICE file(s) distributed with this work for additional |
| 6 | + # information regarding copyright ownership. |
| 7 | + # |
| 8 | + # This program and the accompanying materials are made available under the |
| 9 | + # terms of the Apache License Version 2.0 which is available at |
| 10 | + # https://www.apache.org/licenses/LICENSE-2.0 |
| 11 | + # |
| 12 | + # SPDX-License-Identifier: Apache-2.0 |
| 13 | + # ******************************************************************************* |
| 14 | +
|
| 15 | + |
| 16 | +.. test_metadata:: |
| 17 | + :id: test_metadata__failure_effect |
| 18 | + :partially_verifies_list: tool_req__docs_saf_attr_fmea_failure_effect |
| 19 | + :test_type: requirements_based |
| 20 | + :derivation_technique: requirements_based |
| 21 | + |
| 22 | + Tests that every Safety Analysis (FMEA and DFA) has a mandatory, |
| 23 | + non-empty `failure_effect` attribute. |
| 24 | + |
| 25 | + |
| 26 | +.. Negative: `feat_saf_fmea` without `failure_effect` — warning expected. |
| 27 | +
|
| 28 | +.. feat_saf_fmea:: Missing failure_effect |
| 29 | + :id: feat_saf_fmea__test__no_failure_effect |
| 30 | + :fault_id: FMEA_01 |
| 31 | + :sufficient: yes |
| 32 | + :status: valid |
| 33 | + :expect: feat_saf_fmea__test__no_failure_effect: is missing required attribute: `failure_effect`. |
| 34 | + |
| 35 | + Some content. |
| 36 | + |
| 37 | + |
| 38 | +.. Positive: `feat_saf_fmea` with `failure_effect` — no warning expected. |
| 39 | +
|
| 40 | +.. feat_saf_fmea:: With failure_effect |
| 41 | + :id: feat_saf_fmea__test__with_fe |
| 42 | + :fault_id: FMEA_02 |
| 43 | + :failure_effect: Unintended actuation of the analysed element |
| 44 | + :sufficient: yes |
| 45 | + :status: valid |
| 46 | + :version: 1 |
| 47 | + :expect_not: required attribute: `failure_effect` |
| 48 | + |
| 49 | + Some content. |
| 50 | + |
| 51 | + |
| 52 | +.. Negative: `comp_saf_fmea` without `failure_effect` — warning expected. |
| 53 | +
|
| 54 | +.. comp_saf_fmea:: Missing failure_effect |
| 55 | + :id: comp_saf_fmea__test__no_failure_effect |
| 56 | + :fault_id: FMEA_03 |
| 57 | + :sufficient: yes |
| 58 | + :status: valid |
| 59 | + :expect: comp_saf_fmea__test__no_failure_effect: is missing required attribute: `failure_effect`. |
| 60 | + |
| 61 | + Some content. |
| 62 | + |
| 63 | + |
| 64 | +.. Positive: `comp_saf_fmea` with `failure_effect` — no warning expected. |
| 65 | +
|
| 66 | +.. comp_saf_fmea:: With failure_effect |
| 67 | + :id: comp_saf_fmea__test__with_fe |
| 68 | + :fault_id: FMEA_04 |
| 69 | + :failure_effect: Unintended actuation of the analysed element |
| 70 | + :sufficient: yes |
| 71 | + :status: valid |
| 72 | + :version: 1 |
| 73 | + :expect_not: required attribute: `failure_effect` |
| 74 | + |
| 75 | + Some content. |
| 76 | + |
| 77 | + |
| 78 | +.. Negative: `feat_saf_dfa` without `failure_effect` — warning expected. |
| 79 | +
|
| 80 | +.. feat_saf_dfa:: Missing failure_effect |
| 81 | + :id: feat_saf_dfa__test__no_failure_effect |
| 82 | + :failure_id: DFA_01 |
| 83 | + :sufficient: yes |
| 84 | + :status: valid |
| 85 | + :expect: feat_saf_dfa__test__no_failure_effect: is missing required attribute: `failure_effect`. |
| 86 | + |
| 87 | + Some content. |
| 88 | + |
| 89 | + |
| 90 | +.. Positive: `feat_saf_dfa` with `failure_effect` — no warning expected. |
| 91 | +
|
| 92 | +.. feat_saf_dfa:: With failure_effect |
| 93 | + :id: feat_saf_dfa__test__with_fe |
| 94 | + :failure_id: DFA_02 |
| 95 | + :failure_effect: Unintended actuation of the analysed element |
| 96 | + :sufficient: yes |
| 97 | + :status: valid |
| 98 | + :version: 1 |
| 99 | + :expect_not: required attribute: `failure_effect` |
| 100 | + |
| 101 | + Some content. |
| 102 | + |
| 103 | + |
| 104 | +.. Negative: `comp_saf_dfa` without `failure_effect` — warning expected. |
| 105 | +
|
| 106 | +.. comp_saf_dfa:: Missing failure_effect |
| 107 | + :id: comp_saf_dfa__test__no_failure_effect |
| 108 | + :failure_id: DFA_03 |
| 109 | + :sufficient: yes |
| 110 | + :status: valid |
| 111 | + :expect: comp_saf_dfa__test__no_failure_effect: is missing required attribute: `failure_effect`. |
| 112 | + |
| 113 | + Some content. |
| 114 | + |
| 115 | + |
| 116 | +.. Positive: `comp_saf_dfa` with `failure_effect` — no warning expected. |
| 117 | +
|
| 118 | +.. comp_saf_dfa:: With failure_effect |
| 119 | + :id: comp_saf_dfa__test__with_fe |
| 120 | + :failure_id: DFA_04 |
| 121 | + :failure_effect: Unintended actuation of the analysed element |
| 122 | + :sufficient: yes |
| 123 | + :status: valid |
| 124 | + :version: 1 |
| 125 | + :expect_not: required attribute: `failure_effect` |
| 126 | + |
| 127 | + Some content. |
| 128 | + |
| 129 | + |
| 130 | +.. Negative: `plat_saf_dfa` without `failure_effect` — warning expected. |
| 131 | +
|
| 132 | +.. plat_saf_dfa:: Missing failure_effect |
| 133 | + :id: plat_saf_dfa__test__no_failure_effect |
| 134 | + :failure_id: DFA_05 |
| 135 | + :sufficient: yes |
| 136 | + :status: valid |
| 137 | + :expect: plat_saf_dfa__test__no_failure_effect: is missing required attribute: `failure_effect`. |
| 138 | + |
| 139 | + Some content. |
| 140 | + |
| 141 | + |
| 142 | +.. Positive: `plat_saf_dfa` with `failure_effect` — no warning expected. |
| 143 | +
|
| 144 | +.. plat_saf_dfa:: With failure_effect |
| 145 | + :id: plat_saf_dfa__test__with_fe |
| 146 | + :failure_id: DFA_06 |
| 147 | + :failure_effect: Unintended actuation of the analysed element |
| 148 | + :sufficient: yes |
| 149 | + :status: valid |
| 150 | + :version: 1 |
| 151 | + :expect_not: required attribute: `failure_effect` |
| 152 | + |
| 153 | + Some content. |
| 154 | + |
| 155 | + |
| 156 | +.. Negative: `failure_effect` is empty string — warning expected. |
| 157 | +
|
| 158 | +.. feat_saf_fmea:: Empty failure_effect |
| 159 | + :id: feat_saf_fmea__test__empty_failure_effect |
| 160 | + :fault_id: FMEA_05 |
| 161 | + :failure_effect: |
| 162 | + :sufficient: yes |
| 163 | + :status: valid |
| 164 | + :expect: feat_saf_fmea__test__empty_failure_effect: is missing required attribute: `failure_effect`. |
| 165 | + |
| 166 | + Some content. |
0 commit comments