RobotFramework基本语法----list
1.创建
${list} Create List
2.增
append to list ${list} 3 在列表末尾添加元素3
insert into list ${list} 0 hh 在列表索引0未知插入元素hh
3.删
remove from list ${list} 0 删除索引0对应的列表元素
remove from list ${list} -1 删除列表倒数第一个元素
4.改
5.查
3.遍历
${board_slotid} create list
FOR ${slot} IN RANGE 20
Append to List ${board_slotid} ${slot}
END
FOR ${i} IN @{board_slotid}
${k} runkeyword if ${i}<10 Set Variable 0${i} ELSE Set Variable ${i}
Log ${k}
END


浙公网安备 33010602011771号