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.
翻译:端点状态机器是各种系统,特别是软件和电子系统的流行模型。测试路径可以从系统模型中自动生成,以便使用合适的算法测试这些系统。本文件展示了一种战略,这种战略可以生成测试路径,并允许仅在限定状态机器的限定状态下开始和结束测试路径。战略还同时支持在特定范围内只产生长度的测试路径。为此,开发了替代系统模型、测试范围标准和一套算法。战略与基于减少171个工业和人为产生的问题实例组合的设定的N-开关覆盖方法所产生的测试数据集的最佳替代方法进行了比较。拟议战略优于在较小测试路径步骤中比较的变量。与使用的测试范围标准不同,而首选的测试路径长度从零到两半不等。此外,拟议的技术在实验性SUT模型中每一个测试步骤插入的简单人工缺陷达到30%以上,而不是比较替代技术。拟议战略非常适用于在可能测试路径开始和结束的状态机器中需要反映和同时确定试验路径长度的情况。