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

静默之时:通过时间自动机中的超时对测试中的静默行为建模

Time for Quiescence: Modelling quiescent behaviour in testing via time-outs in timed automata

Laura Brandán Briones, Marcus Gerhold, Petra van den Bos, Mariëlle Stoelinga

AI总结:

本文提出提升算子 $χ^{\scriptstyle M}\\!$,用单时钟将 LTS 提升为带超时的 TA 以建模静默,并证明其在 ioco/tioco_M 一致性、测试生成与判定上的等价性。

摘要:

基于模型的测试(MBT)从被测系统的行为规范中导出测试套件。在实践中,工程师偏好简单模型,例如带标号迁移系统(LTS)。然而,为了在实践中处理静默——即可观察输出的缺失——需要设置一个超时,以断定观察到了静默。定时 MBT 已经存在,但它通常依赖时间自动机(TA)的全套机制。我们提出一个提升算子 $χ^{\scriptstyle M}\\!$,它在没有 TA 开销的情况下加入时间信息:给定一个 LTS,$χ^{\scriptstyle M}\\!$ 为用户选择的时间界 $M>0$ 引入单个时钟,用于声明静默。在该时间自动机中,时钟用于建模输出应当在时钟达到值 $M$ 之前发生,而静默恰好在时间 $M$ 发生。通过这种方式,我们为选择超时以断定静默这一工业实践提供了形式化基础。我们的贡献有三点:(1)一个实现在 $\mathbf{ioco}$ 下一致,当且仅当其提升版本在定时 $\mathbf{tioco_M}$ 下一致;(2)在标准 $\mathbf{ioco}$ 测试生成算法之前或之后应用 $χ^{\scriptstyle M}\\!$,会产生相同的测试集合;(3)提升后的 TA 测试套件与原始 LTS 测试套件对每个实现都给出相同的判定。

英文摘要:

Model-based testing (MBT) derives test suites from a behavioural specification of the system under test. In practice, engineers favour simple models, such as labelled transition systems (LTSs). However, to deal with quiescence - the absence of observable output - in practice, a time-out needs to be set to conclude observation of quiescence. Timed MBT exists, but it typically relies on the full arsenal of timed automata (TA). We present a lifting operator $χ^{\scriptstyle M}\!$ that adds timing without the TA overhead: given an LTS, $χ^{\scriptstyle M}\!$ introduces a single clock for a user chosen time bound $M>0$ to declare quiescence. In the timed automaton, the clock is used to model that outputs should happen before the clock reaches value $M$, while quiescence occurs exactly at time $M$. This way we provide a formal basis for the industrial practice of choosing a time-out to conclude quiescence. Our contributions are threefold: (1) an implementation conforms under $\mathbf{ioco}$ if and only if its lifted version conforms under timed $\mathbf{tioco_M}$ (2) applying $χ^{\scriptstyle M}\!$ before or after the standard $\mathbf{ioco}$ test-generation algorithm yields the same set of tests, and (3) the lifted TA test suite and the original LTS test suite deliver identical verdicts for every implementation.

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

↑