【发布时间】:2016-07-19 14:57:22
【问题描述】:
我做了第一个简单的测试用例,但我遇到了一个问题。
是否可以在 Robot Framework 中编写循环?
我想从地址和修改后的变量“i”的地址中检索值。我想执行直到存在这样的地址,因为它是表中的一行。
${f1} A
${f_temp} B
While ${f1} != ${f_temp}
or
While element xpath=//${i} is visible
\ ${F_temp} Get Text xpath=//${i}
\ ${i} ${i}+1
\ Run Keyword And Continue On Failure Should be equal ${f_temp} ${f1}
有什么想法吗?
【问题讨论】:
标签: automated-tests robotframework