51Testing软件测试论坛

标题: Test Execution: Test Group [打印本页]

作者: hobli    时间: 2007-5-10 23:00
标题: Test Execution: Test Group
Now I am talking about testing process. In a complicated test project, some test scrīpts could only be executed in a certain sequence. This is due to the nature of the test target. To modify those test scrīpts independant to eachother, could be possible, but will involve too much overhead, i.e, cost quit high and it is not worthy of doing that way.

To utilise the advantage of independant test scrīpt, we can group those scrīpt which have internal execution sequence together, this is called "Test Group". Note that it is defined within testing process context.  Different test groups should maintain the total independance to each other, which within the same group, the member scrīpts must be run in fixed sequence.

In this way, we can maximize the scrīpt indepency with minized effort of scrīpt modification.

[ 本帖最后由 walker1020 于 2007-5-11 08:34 编辑 ]
作者: walker1020    时间: 2007-5-11 08:35
楼主提出了Test Group 这个概念很好。楼主能否结合实例来具体讲解一下?
作者: hobli    时间: 2007-5-11 21:48
好,那么我就举一个例子。
就以SIM卡应用为例,
1 我们要测试一个特殊命令x, 执行这个命令,SIM卡会内部自动生成一个文件系统F。
2 特殊命令Y, 在文件系统F下,会反馈信息N.
3 特殊命令Z, SIM卡会反馈信息M.
我们可以设计3个完全独立的案例,对于第二个,
我们必须预先生成文件系统F,而且不可使用命令X,(否则失去独立性了),但师生成这个文件系统,可能需要较繁琐的命令,需要较长的时间。如果我们把1根2归为同一个测试组,用1生成的文件系统F作为2的preCondition,那么,就方便多了。
这样,我们就有了2个组,组一有案例1根案例2组成,组二只有案例3,这两个组是完全独立的,完全可以平行测试,测试结果也不互为影响。

当然,这个例子有点简单,只是为了说明问题。




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2