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

有限状态机一致性测试的新型故障域

New Fault Domains for Conformance Testing of Finite State Machines

Frits Vaandrager, Ivo Melse

AI总结:

针对传统FSM一致性测试m-完全测试用例集仅适用于m-n较小场景的局限,提出基于状态可达假设的新型大故障域,证明Wp、HSI方法满足其k-A完全性,解决了Hennie提出的长期挑战。

摘要:

故障域反映了测试人员对实现中可能出现且需在测试期间检测到的故障的假设。在黑盒一致性测试的相关文献中,被广泛研究的一类故障域是状态数不超过$m$的有限状态机(FSM)类。目前已有众多可保证该类故障覆盖的测试用例集生成策略,这些所谓的$m$-完全测试用例集的规模会随$m-n$呈指数增长,其中$n$是规格说明的状态数,因此人们仅能在$m-n$取值较小时运行这些测试用例集。但$m-n$很小这一假设在实际场景中并不现实。在1964年的开创性论文中,Hennie提出了设计可应对状态数显著增加情况的检验实验的挑战。为解决这一长期存在的开放问题,我们提出了(规模大得多的)故障域,其核心假设是:实现中的所有状态都可通过先执行集合$A$(通常是规格说明的状态覆盖集)中的某个序列,再跟随$k$个任意输入($k$为较小值)来到达。这些故障域中FSM的状态数随$k$呈指数增长。我们提出了测试用例集关于这些故障域满足$k$-$A$-完全性的充分条件。我们的条件表明,两种主流的$m$-完全测试用例集生成策略——Wp方法和HSI方法——具备$k$-$A$-完全性。因此这些策略适用于比其最初设计目标大得多的故障域,从而解决了Hennie提出的挑战。我们还证明,另外三种主流的$m$-完全方法(H、SPY和SPYH)并不总能生成$k$-$A$-完全的测试用例集。

英文摘要:

A fault domain reflects a tester's assumptions about faults that may occur in an implementation and that need to be detected during testing. A fault domain that has been widely studied in the literature on black-box conformance testing is the class of finite state machines (FSMs) with at most $m$ states. Numerous strategies for generating test suites have been proposed that guarantee fault coverage for this class. These so-called $m$-complete test suites grow exponentially in $m-n$, where $n$ is the number of states of the specification, so one can only run them for small values of $m-n$. But the assumption that $m-n$ is small is not realistic in practice. In his seminal paper from 1964, Hennie raised the challenge to design checking experiments in which the number of states may increase appreciably. In order to solve this long-standing open problem, we propose (much larger) fault domains that capture the assumption that all states in an implementation can be reached by first performing a sequence from some set $A$ (typically a state cover for the specification), followed by $k$ arbitrary inputs, for some small $k$. The number of states of FSMs in these fault domains grows exponentially in $k$. We present a sufficient condition for $k$-$A$-completeness of test suites with respect to these fault domains. Our condition implies $k$-$A$-completeness of two prominent $m$-complete test suite generation strategies, the Wp and HSI methods. Thus these strategies are complete for much larger fault domains than those for which they were originally designed, and thereby solve Hennie's challenge. We show that three other prominent $m$-complete methods (H, SPY and SPYH) do not always generate $k$-$A$-complete test suites.

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

↑