#/conment 单行注释
浏览器设置如:Chrome
bower
log 相当于 print
Set Variable 设置变量
拼接 变量 Catenate 值1 值2
分割 变量 Catenate Separator=-- hello word
列表 变量 CreateList [1,2,3]
打印列表 log many 【列表】
操作实际 get time
休眠 sleep
条件 run key if 【条件】
。。。 else if
。。。 else
循环for
:for 变量 in range
:for 变量 in 变量
Exit For Loop If
执行Python表达式并返回结果
变量 Evaluate Python表达式(random.randint(1,100) random)
import lib
截图
Take Screenshot
操作字典
字典名 Create Dictionary key1 value1 key2 value2
变量 GetDictionary Items 字典 获取key 和value
变量 GetDictionary Key 字典 获取key
变量 GetDictionary Values 字典 获取value
变量 GetFromDictionary 字典 a 获取字典中key对应value;
添加resource
new resource
new User keyWord
EDIT RESOURCE
Import resource
register 小米 123
全局变量Add Scalar
添加tags 点击用例,直接添加
使用onlyrun “tags”
套件开始、结束要做的事情 Suite Setup Teardown
用例开始、结束要做的事情 Test Setup Teardown
用户关键字
new User Keyword
循环 参数${n} 函数实现 For ${1} in range ${n}
判断:
Should Contain
Should Not Contain
Should Be Equal As Strings
Should Be Equal AS Numbers
Should Be equal AS Integers 正整数
Should Be True
Should Match Regexp 匹配
Get Length
Get From List
原文:https://www.cnblogs.com/likyzhuoerbufan/p/14134579.html