robotframework中run keyword if的用法

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    

猜你喜欢

转载自blog.csdn.net/DaxiaLeeSuper/article/details/81505266
今日推荐