COMPUTER-IMPLEMENTED METHOD AND COMPUTERIZED DEVICE FOR TESTING A TECHNICAL SYSTEM
20220067238 · 2022-03-03
Inventors
Cpc classification
G05B23/0283
PHYSICS
G05B23/0248
PHYSICS
G06Q10/06
PHYSICS
International classification
Abstract
The computer-implemented method for testing a technical system having a plurality of technical components includes: providing a safety model modeling a safety relevant functionality of the technical system, providing a test model describing test cases for testing the technical system, linking elements of the safety model with elements of the test model for enabling a tracing between the test cases of the test model and the safety-relevant functionality of the safety model, testing the technical system using at least one of the test cases generated based on the test model linked with the safety model, and analyzing the testing for providing coverage criteria for the safety-relevant functionality. Further, a computer program product, a computerized device and an arrangement having a technical system and a computerized device are suggested.
Claims
1. A computer-implemented method for testing a technical system having a plurality of technical components, the method comprising: a) providing a safety model modeling a safety relevant functionality of the technical system, b) providing a test model describing test cases for testing the technical system, c) linking elements of the safety model with elements of the test model for enabling a tracing between the test cases of the test model and the safety-relevant functionality of the safety model, d) testing the technical system using at least one of the test cases generated based on the test model linked with the safety model, and e) analyzing the testing for providing coverage criteria for the safety-relevant functionality.
2. The method of claim 1, wherein, in step a), the safety model is provided as a tree of logic, such that it includes a top event associated to a violation of the safety-relevant functionality.
3. The method of claim 2, wherein, in step a), the safety model is provided such that it includes, for each of the technical components having an input port and/or an output port, an output failure mode for modeling a certain failure visible at the output port of the technical component, or an output failure mode for modeling a certain failure visible at the output port of the technical component and an input failure mode for modeling how a certain failure propagates from the input port to the output port.
4. The method of claim 2, wherein, in step a), the safety model is provided such that it includes, for each of the technical components having an input port and/or an output port, an input failure mode for modeling how a certain failure propagates from the input port to the output port, an output failure mode for modeling a certain failure visible at the output port of the technical component, and/or a number of basic events, each of the basic events modeling an internal component failure of the technical component.
5. The method of claim 4, wherein the safety model includes a number of cut-sets, each of the cut-sets combining a number of basic events and adapted to cause the top event.
6. The method of claim 5, wherein, in step e), the coverage criteria are provided such that they include probabilistic criteria for each respective test case of the test cases used in step d), the probabilistic criteria indicating a probability of occurrence during operation of the technical system, wherein the probability of occurrence is derived by a probability of the cut-set corresponding to the respective test case via the linking of the test model and the safety model.
7. The method of claim 5, wherein, in step e), the coverage criteria are provided such that they include qualitative criteria for each respective test case of the test cases used in step d), the qualitative criteria being derived from the number of basic events of the cut-set corresponding to the respective test case via the linking of the test model and the safety model.
8. The method of claim 7, wherein that, as part of the qualitative criteria, a plurality N of different classes for the test cases used in step d) are provided, each of the N different classes being defined by a different number M of basic events configured to cause the top event in combination, with Mϵ[1, . . . , N].
9. The method of claim 5, wherein, in step e), the coverage criteria are provided such that they include criteria of occurrence and/or of probability of occurrence for minimal cut-sets corresponding to the test cases used in step d).
10. The method of claim 2, wherein, in step c), the top event of the safety model is linked with those elements of the test model capturing a functionality that is configured to influence an occurrence of the top event.
11. The method of claim 4, wherein, in step c), the safety model and the test model are linked such that a certain input failure mode of the safety model is linked with a certain input interface of the test model, a certain output failure mode of the safety model is linked with a certain output interface of the test model, a certain basic event of the safety model is linked with an internal component state of the test model, and/or the top event of the safety model is linked with a certain test case of the test cases of the test model.
12. The method of claim 1, wherein providing a system model modeling a functional behavior of the technical system, wherein in step c), the safety model and the test model are linked via the system model, wherein a certain input failure mode of the safety model is linked with a certain input interface of the test model via a certain input port of the system model, a certain output failure mode of the safety model is linked with a certain output interface of the test model via an output port of the system model, a certain basic event of the safety model is linked with a certain internal component state of the test model via an internal component failure of the system model, and/or the top event of the safety model is linked with a test case of the test model via a system function of the system model.
13. A computer program product, comprising a computer readable hardware storage device having computer readable program code stored therein, said program code executable by a processor of a computer system to implement a method comprising a program code for executing the method of claim 1 for testing a technical system having a plurality of technical components when run on at least one computer.
14. A computerized device for testing a technical system having a plurality of technical components, the computerized device comprising: a first providing unit for providing a safety model modeling a safety relevant functionality of the technical system, a second providing unit for providing a test model describing test cases for testing the technical system, a linking unit for linking elements of the safety model with elements of the test model for enabling a tracing between the test cases of the test model and the safety-relevant functionality of the safety model, a testing unit for testing the technical system using at least one of the test cases generated based on the test model linked with the safety model, and an analyzing unit for analyzing the testing for providing coverage criteria for the safety-relevant functionality.
15. An arrangement comprising a technical system having a plurality of technical components and a computerized device for testing the technical system according to claim 14.
Description
BRIEF DESCRIPTION
[0069] Some of the embodiments will be described in detail, with reference to the following figures, wherein like designations denote like members, wherein:
[0070]
[0071]
[0072]
[0073]
[0074]
[0075]
[0076]
[0077]
DETAILED DESCRIPTION
[0078] In the Figures, like reference numerals designate like or functionally equivalent elements, unless otherwise indicated.
[0079]
[0080] In this regard, the left part of
[0081] The technical system TS may be a safety-critical system, for example used in an application domain of embedded systems, such as aerospace, railway, health care, automotive or industrial automation. The technical system TS includes a plurality of technical components TC, for example including actors, sensors and/or receivers.
[0082] As indicated above, the method of
[0083] In particular, the safety model 10 is provided such that it includes a top event TE associated to a violation of the safety-relevant functionality. For example, if the technical system TS is a railway and the safety-relevant functionality is to decelerate the railway to a certain velocity within a certain time period, then a violation of said safety-relevant functionality may be if the railway cannot be decelerated to said certain velocity within the certain time period. This violation is mapped to the top event TE of the safety model 10 of
[0084] The classic fault tree of the safety model 10 of
[0085] Furthermore, the classic fault tree of the safety model 10 of
[0086] Moreover, the classic fault tree of the safety model 10 of
[0087] In particular, the safety model 10 includes a number of cut-sets, each of the cut-sets combining a number of basic events 13 and adapted to cause the top event TE.
[0088] In step S2, a system model 20 is provided, said system model 20 modeling a functional behavior of the technical system TS. AS shown in the middle part of
[0089] The system model 20 may include a number of input ports 21, a number of output ports 22 and a number of internal component failures 23. In the middle part of
[0090] In step S3, a test model 30 is provided, said test model 30 describing or including test cases C for testing the technical system TS. As shown in the right part of
[0091] In step S4, elements of the safety model 10 are linked with elements of the test model 30, in particular using elements of the system model 20, for enabling a tracing between the test cases C of the test model 30 and the safety-relevant functionality of the safety model 10.
[0092] In particular, the top even TE of the safety model 10 is linked with those elements of the test model 30 capturing a functionality that is configured to influence an occurrence of the top event TE.
[0093] In step S5, the technical system TS is tested using at least one of the test cases C generated based on the test model 30 linked with the safety model 10.
[0094] In step S6, the testing, i.e. the executed tests, is analyzed to provide coverage criteria for the safety-relevant functionality.
[0095] In particular, in said step S6, the coverage criteria are provided such that they include probabilistic criteria for each respective test case of the test cases C used in step S5. Said probabilistic criteria may indicate a probability of occurrence during operation of the technical system TS, wherein the probability of occurrence may be derived by a probability of the cut-set corresponding the respective test case C via the linking of the test model 30 and the safety model 10.
[0096] Moreover, in step S6, the coverage criteria may be provided such that they include qualitative criteria for each respective test case C used in step S5. The qualitative criteria may be derived from the number of basic events 13 of the cut-set corresponding to the respective test case C via the linking of the test model 30 and the safety model 10. The coverage criteria may be provided based on all combinatorial possible cases. Alternatively, or additionally, the coverage criteria may be provided based on the total probability of occurrence of the top event, and the test coverage may be the total probability of all cut-sets considered.
[0097] As part of the qualitative criteria, a plurality N of different classes for the test case C used in step S5 may be provided, wherein each of said N different classes may be defined by a different number M of basic events 13 configured to cause the top event TE in combination, with Mϵ[1, . . . , N].
[0098] Moreover, in step S6, the coverage criteria may be provided such they include criteria of occurrence and/or of probability of occurrence for minimal cut-sets corresponding to the test cases C used in step S5.
[0099] Details and examples for this linking of the safety model 10 and the test model 30 via the system model 20 are shown in
[0100] Moreover,
[0101] Furthermore,
[0102] Moreover,
[0103] In
[0104] The first providing unit 101 is configured to provide a safety model 10 modeling a safety-relevant functionality of the technical system TS.
[0105] The second providing unit 102 is configured to provide a test model 30 describing test cases C for testing the technical system TS.
[0106] The linking unit 103 is configured to link elements of the safety model 10 with elements of the test model 30 for enabling a tracing between the test cases C of the test model 30 and the safety-relevant functionality of the safety model 10.
[0107] The testing unit 104 is configured to test the technical system TS using at least one of the test cases C generated based on the test model 30 linked with the safety model 10.
[0108] The analyzing unit 105 is configured to analyze the testing for providing coverage criteria for the safety-relevant functionality.
[0109] Furthermore,
[0110] Although the present invention has been disclosed in the form of preferred embodiments and variations thereon, it will be understood that numerous additional modifications and variations could be made thereto without departing from the scope of the invention.
[0111] For the sake of clarity, it is to be understood that the use of “a” or “an” throughout this application does not exclude a plurality, and “comprising” does not exclude other steps or elements.