跳至主導覽 跳至搜尋 跳過主要內容

Composition and testing of connection fault handling behaviors in programs with and/or graph

研究成果: 期刊貢獻文章同行評審

摘要

To programs running on components in a distributed system, both network and component failures manifest as connection faults that are represented by exceptions. Although many strategies are available for handling connection faults, it is often necessary to compose multiple strategies in such programs, especially in Internet of Things systems and cyber-physical systems. Moreover, it should be possible to specify a program’s connection fault handling behaviors prior to implementation. Having observed the lack of appropriate design-level constructs, we propose an extended AND/OR graph for modeling composite connection fault handling behaviors in programs. The extended AND/OR graph enables succinct representations of complex fault handling behaviors by composing the constituent strategies of retrying, communicating failure, and ignoring failure. Furthermore, we develop a model-based testing framework that accepts the extended AND/OR graph specification as input and generates tests for checking the connection fault handling behaviors of a program constructed from the specification. The proposed method is illustrated with a Java program to detect and report failure of a device. In particular, the AND/OR graph specification stipulates that the program handles connection faults covering network failures by composing retrying strategy. From this specification, tests are generated by finding all solution trees of the AND/OR graph subject to the number of retries to cover all the paths that lead to the program’s normal and exceptional exits, respectively. The extended AND/OR graph and the model-based testing framework contribute to the means for specifying and testing connection fault handling behaviors of programs that are crucial to the success of Internet of Things systems and cyber-physical systems.

原文English
頁(從 - 到)31-52
頁數22
期刊Journal of Information Science and Engineering
36
發行號1
DOIs
出版狀態Published - 2020

文獻附註

Publisher Copyright:
© 2020 Institute of Information Science. All rights reserved.

指紋

深入研究「Composition and testing of connection fault handling behaviors in programs with and/or graph」主題。共同形成了獨特的指紋。

引用此