How to write a loop while in Robot Framework

后端 未结 3 763
醉梦人生
醉梦人生 2021-02-13 14:48

I make my first simple test case, and I have one problem.

Is it possible write a loop in Robot Framework?

I want to retrieve the value from the address and the a

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-13 15:20

    You might be looking for the Wait Until Keyword Succeeds keyword, which enables you to do a similar construction to a while loop. It is much more readable than FOR cycles with conditional exiting.

    You then use your custom keyword, which fails when you need to end the "loop".

提交回复
热议问题