Loops 如何增加每个循环
假设我的名字和姓氏有5组值,我希望以增量方式每个循环有1组值,我如何才能做到这一点?p、 It’我不是程序员,所以别指望会有什么进步Loops 如何增加每个循环,loops,robotframework,increment,Loops,Robotframework,Increment,假设我的名字和姓氏有5组值,我希望以增量方式每个循环有1组值,我如何才能做到这一点?p、 It’我不是程序员,所以别指望会有什么进步 @{item1} create list a b c @{item2} create list d e f @{count} create list 0 1 2 :for ${i} in range 1 5 \ log to console @{item1}
@{item1} create list a b c
@{item2} create list d e f
@{count} create list 0 1 2
:for ${i} in range 1 5
\ log to console @{item1}[0], @{item2}[0]
a、 d
a、 d
a、 d
a、 d
测试|通过|您不需要为索引构建列表:
@{item1} create list a b c
@{item2} create list d e f
:FOR ${i} IN RANGE 3
\ log to console @{item1}[${i}], @{item2}[${i}]