🌷 回顾一下
RF创建使用变量有多种形式,大致有三类
(1)使用内置关键字创建
1.set variable
2.set global variable
3.set suite variable
4.set test variable
5.set local variable
6.create list
7.create Dictionary
(2)使用变量文件,这个是我目前最常用的
创建一个python文件,然后在这个python文件里使用python语法创建各种变量, 供RF来调用
在testcase文件里引用该变量文件
(3) 函数的返回值
例如 获取关键字的执行结果和状态用两个变量存储
${status} ${return_value} Run Keyword And Ignore Error click button ${upload_xpath}
log ${status}+${return_value}
run keyword if "${status}" != "