arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2401.03469cs.SEcs.AI
收藏

基于OCL与搜索的高效MC/DC测试数据生成

Efficient Test Data Generation for MC/DC with OCL and Search

National University of Computer and Emerging Sciences(国家计算机与新兴科学大学);Quest Lab(奎斯特实验室)

Hassan Sartaj, Muhammad Zohaib Iqbal, Atif Aftab Ahmed Jilani, Muhammad Uzair Khan

AI总结:

本文针对DO-178C标准下的MC/DC测试数据生成问题,提出结合基于案例推理与区间缩减启发式的策略来求解OCL约束,并通过实证研究表明该方法优于基线搜索算法和现有约束求解器。

摘要:

航空电子软件系统的系统级测试需要符合不同的国际安全标准,如DO-178C。航空电子工业的一个重要考虑是根据安全标准建议的准则自动生成测试数据。DO-178C推荐的准则之一是修正条件/判定覆盖(MC/DC)准则。当前基于模型的测试数据生成方法使用以对象约束语言(OCL)编写的约束,并应用搜索技术来生成测试数据。这些方法要么不支持MC/DC准则,要么在为大规模航空电子系统生成测试数据时存在性能问题。在本文中,我们提出了一种在基于模型的测试过程中自动化MC/DC测试数据生成的有效方法。我们开发了一种策略,利用基于案例的推理(CBR)和区间缩减启发式方法,专门用于求解面向MC/DC定制的OCL约束。我们进行了一项实证研究,将我们提出的使用CBR、区间缩减、同时使用CBR和区间缩减的MC/DC测试数据生成策略与原始搜索算法和随机搜索进行比较。我们还将我们的策略与现有的约束求解方法进行了实证比较。结果表明,用于MC/DC测试数据生成的CBR和区间缩减均优于基线方法。此外,与现有约束求解器相比,将CBR和区间缩减相结合用于MC/DC测试数据生成是一种有效的方法。

英文摘要:

System-level testing of avionics software systems requires compliance with different international safety standards such as DO-178C. An important consideration of the avionics industry is automated test data generation according to the criteria suggested by safety standards. One of the recommended criteria by DO-178C is the modified condition/decision coverage (MC/DC) criterion. The current model-based test data generation approaches use constraints written in Object Constraint Language (OCL), and apply search techniques to generate test data. These approaches either do not support MC/DC criterion or suffer from performance issues while generating test data for large-scale avionics systems. In this paper, we propose an effective way to automate MC/DC test data generation during model-based testing. We develop a strategy that utilizes case-based reasoning (CBR) and range reduction heuristics designed to solve MC/DC-tailored OCL constraints. We performed an empirical study to compare our proposed strategy for MC/DC test data generation using CBR, range reduction, both CBR and range reduction, with an original search algorithm, and random search. We also empirically compared our strategy with existing constraint-solving approaches. The results show that both CBR and range reduction for MC/DC test data generation outperform the baseline approach. Moreover, the combination of both CBR and range reduction for MC/DC test data generation is an effective approach compared to existing constraint solvers.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑