robotframework FOR循环
#获取到的ID组装成一个list
${List_ID} Create List ${ID_1} ${ID_2} ${ID_3} ${ID_4} ${ID_5}
... ${ID_6} ${ID_7} ${ID_8} ${ID_9} ${ID_10}
sleep 1
#重复的ID以及重复次数的判断结果
${Dict} Evaluate dict(collections.Counter(${List_ID})) collections
${Duplicate_ID} Evaluate ({key:value for key,value in ${Dict}.items()if value > 1})
Should Be Empty ${Duplicate_ID}
#list中是否存在ID为0的判断结果
: FOR ${var} IN @{List_ID}
\ log ${var}
\ Should Not Be Equal ${var} 0
sleep 5