robotframework中这个run keyword if else语法真的是摸索了半天,注意ELSE IF一定都是大写的,不然就是错的!!!记下来备忘……
${moneycode} set variable
${moneycode} run keyword if '${moneytype}'=='人民币' set variable 0
... ELSE IF '${moneytype}'=='美元' set variable 1
... ELSE IF '${moneytype}'=='港币' set variable 2
... ELSE IF '${moneytype}'=='澳元' set variable 6
... ELSE set variable unknow moneytype