论文标题
新型策略生成可变长度的状态机测试路径
Novel Strategy Generating Variable-length State Machine Test Paths
论文作者
论文摘要
有限状态机是针对各种系统,尤其是软件和电子的流行建模符号。可以自动从系统模型生成测试路径,以使用合适的算法来测试此类系统。本文提出了一种生成测试路径的策略,并允许仅在有限状态机的定义状态下启动和结束测试路径。该策略还同时支持仅在给定范围内的长度生成测试路径。为此,开发了替代系统模型,测试覆盖标准和一组算法。该策略与最佳替代方案进行了比较,该策略是基于已建立的N-Switch覆盖方法生成的测试集的减少,结合了171个工业和人工产生的问题实例。提出的策略在较小数量的测试路径步骤中优于比较变体。随着使用的测试覆盖标准和首选测试路径长度的范围从无到两个和一半折叠差异。此外,所提出的技术比比较的替代技术检测到插入实验性SUT模型中的简单人造缺陷多达30%。所提出的策略适用于可能的测试路径在状态机中需要反映在状态机中的情况,同时,测试路径的长度必须在确定的范围内。
Finite State Machine is a popular modeling notation for various systems, especially software and electronic. Test paths can be automatically generated from the system model to test such systems using a suitable algorithm. This paper presents a strategy that generates test paths and allows to start and end test paths only in defined states of the finite state machine. The strategy also simultaneously supports generating test paths only of length in a given range. For this purpose, alternative system models, test coverage criteria, and a set of algorithms are developed. The strategy is compared with the best alternative based on the reduction of the test set generated by the established N-switch coverage approach on a mix of 171 industrial and artificially generated problem instances. The proposed strategy outperforms the compared variant in a smaller number of test path steps. The extent varies with the used test coverage criterion and preferred test path length range from none to two and half fold difference. Moreover, the proposed technique detected up to 30% more simple artificial defects inserted into experimental SUT models per one test step than the compared alternative technique. The proposed strategy is well applicable in situations where a possible test path starts and ends in a state machine needs to be reflected and, concurrently, the length of the test paths has to be in a defined range.