19、定时自动机测试技术解析

定时自动机测试技术解析

1. 整体测试用例生成算法

整体测试用例生成算法旨在根据 ERA 规范生成完整的定时 Hennessy 属性覆盖集。以下是具体的算法步骤:

Algorithm 12 Overall Test Case Generation
input: ERA specification Spec
output: A complete cover set of timed Hennessy properties
1. Compute Specp = Equivalence Class Graph(Spec)
2. Compute Specr = Reachability Graph(Specp)
3. Label every [S ′, z/p] ∈Specr with the sets M , C, R
4. Tested := ∅
5. foreach [S ′, z/p] ∈Specr
    // traverse Specr
6.  if ¬ ∃z ′ : [S ′, z ′/p] ∈Tested then
7.      Tested := Tested ∪{[S ′, z/p]} // enumerate tests
8.      Choose ⟨s, ν⟩∈[S ′, z/p]
9.      Compute a concrete timed trace σ from ⟨s0, 0⟩to ⟨s, ν⟩
10.     Make Test Cases:
11.         if A ∈M ([S ′, p]) then after σ must A, is a relevant test
12.      
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值