两种方式进行设置:
1:file-->settings-->run下data table iterations
控制的是数据表中global里数据的运行方式;
global中的数据是全局的!
当运行方式设置为运行全部或多行时,global中有几行数据,“测试脚本”就要循环回放几次。
2:edit-->action-->action call properties-->run下data table iterations
控制的是数据表中该action对应的数据表里数据的运行方式;
local 是局部的!
当运行方式设置为运行全部或多行时,action中有几行数据,“该action”就要循环回放几次。
进一步说明:
a: global有多行数据且file-->settings-->run On all Rows ;
action有多行数据且action call property->Run On all Rows;
:整个测试脚本程序运行global次,且每次运行时,action中的每行都要执行一次。
b: global 有多行数据且file-->settings-->run On all Rows ;
action有多条数据且action call property->Run one iteration only;
如果global的行数>action的行数,当action执行到最后一行后,不管此时global 的行数为几,下次回放时action都执行最后一行。
如果global的行数
(action call property->Run from rows to rows时意思同上。)
c: 当同一个action中有多个参数时,且action call property->Run On all Rows, 这个时候每个参数的数据个数需要相等。