Robot Framework 内建关键字索引

参考页面:Robot Framework documentation

  1. 第一类

Call Method 主要用于动态调用keywords的时候,也就是keywords被放到变量里面

Run Keyword  和上面的异同??

Run Keywords  如果要运行的keywords带参数的话,中间用AND分隔。否则不必分隔

Run Keyword If 系列 

Run Keyword Unless  条件失败才运行

Run Keyword And Continue On Failure  

Run Keyword And Expect Error  

Run Keyword And Ignore Error  

Run Keyword And Return 

Run Keyword And Return If

Run Keyword And Return Status

Evaluate 执行python语句

Sleep

Log 系列

No Operation  啥事不做?

Reload Library  

Repeat Keyword  

Return From Keyword 

Return From Keyword If  

2. 字符串操作

Catenate  链接两个参数,返回值是字符串

Comment  注释

3. 循环

Continue For Loop

Continue For Loop If

Exit For Loop

Exit For Loop If

4. 值的转换

Convert To 系列

Regexp Escape  ??

Replace Variables  

5. 创建列表和字典变量

Create List

Create Dictionary

6. 判定

Fail 直接导致单个case运行失败,继续执行下一个,并输出自定义原因

Fatal Error 停止整个测试

Pass Execution 

Pass Execution If  

Wait Until Keyword Succeeds

7. Should  系列

Variable Should Exist

Variable Should Not Exist

Keyword Should Exist

Length Should Be

8. get、set、import

Get Time 获取时间

Get Variable Value 获取变量的值

Set Variable

Set Global Variable  

Import Library

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值