arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2105.11786cs.SE
收藏

基于有限状态机的完备测试

Complete Requirements-based Testing with Finite State Machines

Wen-ling Huang, Jan Peleska

摘要:

在本文中,新的贡献,基于需求的测试与确定性有限状态机。基本要求被指定为三元组,由参考模型中的状态、输入和由一组容许输出定义的被测系统的预期反应组成,允许不同的实现变体。复合需求被指定为基本需求的集合。介绍了两种需求驱动的测试生成策略,并证明了它们的故障覆盖保证。第一种方法是详尽的,因为如果测试套件通过,它会生成保证需求满足的测试套件。但是,如果测试套件执行失败,这并不意味着需求已经被违反。相反,失败可能表明任意违反I/O等效性,这可能与被测需求无关。第二种策略是完整的,因为它产生的测试套件保证了需求满足,当且仅当套件通过时。复杂性的考虑表明,对于实际应用,第一种策略应优于第二种。这种方法的典型应用场景是安全关键系统,其中安全需求应该以最大的彻底性进行测试,而用户需求可能会使用传统的测试方法以较少的努力进行检查。

英文摘要:

In this paper, new contributions to requirements-based testing with deterministic finite state machines are presented. Elementary requirements are specified as triples consisting of a state in the reference model, an input, and the expected reaction of the system under test defined by a set of admissible outputs, allowing for different implementation variants. Composite requirements are specified as collections of elementary ones. Two requirements-driven test generation strategies are introduced, and their fault coverage guarantees are proven. The first is exhaustive in the sense that it produces test suites guaranteeing requirements satisfaction if the test suite is passed. If the test suite execution fails for a given implementation, however, this does not imply that the requirement has been violated. Instead, the failure may indicate an arbitrary violation of I/O-equivalence, which could be unrelated to the requirement under test. The second strategy is complete in the sense that it produces test suites guaranteeing requirements satisfaction if and only if the suite is passed. Complexity considerations indicate that for practical application, the first strategy should be preferred to the second. Typical application scenarios for this approach are safety-critical systems, where safety requirements should be tested with maximal thoroughness, while user requirements might be checked with lesser effort, using conventional testing heuristics.

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

↑