how to use “Run Keyword If” in robot framework

后端 未结 2 968
生来不讨喜
生来不讨喜 2021-02-10 04:43

I just started working on Robot Framework and I am trying to use Try Keyword If keyword, but all the examples I see online show the solution in a single line wherea

2条回答
  •  再見小時候
    2021-02-10 05:31

    usually it's separated to 3 sections ,

    Run Keyword If || 'condition' || Keyword to run
    

    Example :

    Run Keyword If  '${count}'<'5'  Pass Execution.
    

    some keywords must be followed with some message like :

    Run Keyword If  '${count}'<'5'  Log To Console  counter is less than 5
    

提交回复
热议问题