A Parsing-Based Approach for Constructing Executable EFSM

Zhijie Pan, Ting Shu, Zuohua Ding
{"title":"A Parsing-Based Approach for Constructing Executable EFSM","authors":"Zhijie Pan, Ting Shu, Zuohua Ding","doi":"10.1109/ISSSR58837.2023.00058","DOIUrl":null,"url":null,"abstract":"The Extended Finite State Machine (EFSM) is one of the most popular modeling approaches for model-based testing. However, EFSM-based test case generation is susceptible to the infeasible (inexecutable) path problem, which stems from the conflict of predicates (guards) between transitions in the path. Therefore, in order to derive feasible test cases, a test generation algorithm needs to dynamically acquire information about the model and verify the feasibility of the generated test path through the simulation execution of the model. The traditional method of constructing executable models using hard-coding for different EFSM models under test has limitations such as inflexibility, time-consuming and error-prone. To address this issue, this paper proposes a parsing-based approach, PBACE, for building the executable EFSM for testing EFSM-specified systems, which can support the automatic generation of executable test cases. It decouples the EFSM model description, parsing and simulation execution functions from the test generation algorithm, which can effectively improve the efficiency and quality of test generation. In particular, PBACE first uses a well-designed JSON syntax to describe the specific EFSM under test. Then, based on the model description file, it uses lexical and syntactic parsers to dynamically extract model information to construct various model objects in memory such as state configurations, transitions, etc. Finally, the proposed method provides a series of service interfaces to support model information acquisition, transition feasibility evaluation, and model simulation execution. A case study of test sequence generation for the SCP protocol model demonstrates the capability and promise of our approach to serve executable test cases.","PeriodicalId":185173,"journal":{"name":"2023 9th International Symposium on System Security, Safety, and Reliability (ISSSR)","volume":"3 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2023-06-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2023 9th International Symposium on System Security, Safety, and Reliability (ISSSR)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ISSSR58837.2023.00058","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

The Extended Finite State Machine (EFSM) is one of the most popular modeling approaches for model-based testing. However, EFSM-based test case generation is susceptible to the infeasible (inexecutable) path problem, which stems from the conflict of predicates (guards) between transitions in the path. Therefore, in order to derive feasible test cases, a test generation algorithm needs to dynamically acquire information about the model and verify the feasibility of the generated test path through the simulation execution of the model. The traditional method of constructing executable models using hard-coding for different EFSM models under test has limitations such as inflexibility, time-consuming and error-prone. To address this issue, this paper proposes a parsing-based approach, PBACE, for building the executable EFSM for testing EFSM-specified systems, which can support the automatic generation of executable test cases. It decouples the EFSM model description, parsing and simulation execution functions from the test generation algorithm, which can effectively improve the efficiency and quality of test generation. In particular, PBACE first uses a well-designed JSON syntax to describe the specific EFSM under test. Then, based on the model description file, it uses lexical and syntactic parsers to dynamically extract model information to construct various model objects in memory such as state configurations, transitions, etc. Finally, the proposed method provides a series of service interfaces to support model information acquisition, transition feasibility evaluation, and model simulation execution. A case study of test sequence generation for the SCP protocol model demonstrates the capability and promise of our approach to serve executable test cases.
构建可执行EFSM的一种基于解析的方法
扩展有限状态机(EFSM)是基于模型的测试中最流行的建模方法之一。然而,基于efsm的测试用例生成容易受到不可行的(不可执行的)路径问题的影响,该问题源于路径中转换之间的谓词(保护)冲突。因此,为了推导出可行的测试用例,测试生成算法需要动态获取关于模型的信息,并通过模型的仿真执行来验证所生成的测试路径的可行性。对于不同的EFSM模型,使用硬编码来构建可执行模型的传统方法具有不灵活、耗时和易出错等局限性。为了解决这个问题,本文提出了一种基于解析的方法,pace,用于为测试EFSM指定的系统构建可执行的EFSM,它可以支持可执行测试用例的自动生成。将EFSM模型描述、解析和仿真执行功能与测试生成算法解耦,有效提高了测试生成的效率和质量。特别是,pace首先使用设计良好的JSON语法来描述被测试的特定EFSM。然后,基于模型描述文件,利用词法和语法解析器动态提取模型信息,在内存中构造状态配置、转换等各种模型对象。最后,该方法提供了一系列服务接口,以支持模型信息获取、转换可行性评估和模型仿真执行。SCP协议模型的测试序列生成的一个案例研究证明了我们的方法提供可执行测试用例的能力和前景。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信