|
论坛上有人问到这个问题,顺便整理一下。File>Test Settings中Run标签控制GlobalSheet的执行,每个Action的Call Properties控制对应LocalSheet的执行。很多人碰到的问题都是忽略了在读取测试数据时,实际上是有这两个控制参数的。两者的组合如下:
假设Globalsheet和LocalSheet的数据如下:
GlobalSheet有3行数据:1,2,3
LocalSheet有3行数据 :a,b,c
1.Global Setting = run on all rows
Local Setting = run on all rows
运行:1a,1b,1c,2a,2b,2c,3a,3b,3c
2.Global Setting = run on all rows
Local Setting = run one iteration only
运行:1a,2b,3c
3.Global Setting = run on all rows
Local Setting = run from row 1 to 2
运行:1a,1b,2a,2b,3a,3b
4.Global Setting = run one iteration only
Local Setting = run on all rows
运行:1a,1b,1c
5.Global Setting = run one iteration only
Local Setting = run one iteration only
运行:1a
6.Global Setting = run one iteration only
Local Setting = run from row 1 to 2
运行:1a,1b
就不再继续列了,其他的情况也能推断出来。 |
|