RobotFramework_Run Keyword If

1. run keyword if 组合条件用法:

AND  和 OR  必须全部小些 ,否者无法识别(You should use small caps "or" and "and" instead of OR and AND.)

And beware also the spaces/tabs between keywords and arguments (you need at least two spaces)

但是不能留超过四个 空格,否者robot 会认为  and/or 为 keyword

正确的写法:

2. run keyword if    '${color}' in ['Red', 'Blue', 'Pink']

类似方法也可使用


3. run keyword if      condition    run keywords    组合实现满足条件的多种action

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容