robotframework笔记5
生活随笔
收集整理的這篇文章主要介紹了
robotframework笔记5
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
循環條件
*** Settings *** Library BuiltIn Library Collections*** Test Cases *** TestCase01My Keyword 01My Keyword 02*** Keywords *** My Keyword 01:FOR ${animal} IN chat chien\ Log ${animal}\ Log Animal enregistreMy Keyword 02${ma_liste} = Create List chat chien:FOR ${item} IN @{ma_liste}\ Log ${item}可以看出在"我的關鍵字 02",取而代之的是"$""@"當遍歷列表與for。
我邀請你離開 '$',看看它的返回。
?
FOR…IN RANGE
*** Settings *** Library BuiltIn *** Test Cases *** TestCase01 My Keyword 01 *** Keywords *** My Keyword 01 :FOR ${number} IN RANGE 2 9 3 \ Log ${number}我們可以看到在此示例中,該操作是相同 Python ︰ 啟動、 停止、 步。
你可以退出循環用關鍵字"退出 For 循環"。
IF
Python IF 關鍵字等于就是 ' 運行關鍵字如果 '。作為此關鍵字的建議,我們將不會執行代碼,但叫關鍵字,將包含我們想要運行的代碼。
*** Settings *** Library BuiltIn*** Test Cases *** TestCase01My Keyword 01*** Keywords *** My Keyword 01:FOR ${number} IN RANGE 2 12 3\ Log ${number}\ Run Keyword If '${number}' == '8' Exit For Loop轉載于:https://www.cnblogs.com/kuihua/p/5382379.html
總結
以上是生活随笔為你收集整理的robotframework笔记5的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 跟我一起玩Win32开发(20):浏览文
- 下一篇: hdu1540/poj2892 线段数区