happybean 发表于 2006-6-12 14:11:05

race condition testing?

我在software testing书上看到race condition testing,不知道中文怎么翻译的.

有这样一段话: Race condition testing is difficult to plan for, but you can get a good start by looking at each state in your state transition map and thinking about what outside influences might interrupt that state. Consider what the state might do if the data uses isn't ready or is changing when it's needed. What if two or more of the connecting arcs or lines occur at exactly the same time?

[ 本帖最后由 happybean 于 2006-6-12 15:48 编辑 ]

skinapi 发表于 2006-6-12 16:53:35

从字面上看是竞争条件,我的理解是“冲突测试”,比如争夺同样的资源,在某一状态下收到错误的消息、接收到错误的动作等。

jody 发表于 2006-6-12 16:58:08

回复

特征条件很难计划,但是你可以通过在你的状态转换地图中查看每一个状态,然后考虑什么样的外部影响可以中断这种状态,这样可以有一个好的开始。如果要使用的数据没有准备就绪或者需要数据时,数据正在改变,我们可以知道该状态可以做些什么。是否两条或更多的弧钱或者直线在同一时刻正好发生了。

从后面的解释来看,好象是在说,每一种功能特征都有不同的条件,而这种条件正好就是你要测试的对象。RACE是种族的意思,所以种族,也就是不同的民族。

希望提出不同的看法

happybean 发表于 2006-6-12 17:56:20

原帖由 jody 于 2006-6-12 16:58 发表
特征条件很难计划,但是你可以通过在你的状态转换地图中查看每一个状态,然后考虑什么样的外部影响可以中断这种状态,这样可以有一个好的开始。如果要使用的数据没有准备就绪或者需要数据时,数据正在改变,我们可 ...
race在这里肯定不是种族啦, 理解为竞争,个人感觉比较恰当......
页: [1]
查看完整版本: race condition testing?