The use of automated testing framework RF---evaluate

evaluate: The result can be generated directly through the python code expression and returned to the robot variable

Sample code:

*** Test Cases ***
case1
    # Python列表生成式:返回给list1列表
    ${list1}    evaluate    [x for x in range(10)]
    log to console  ${list1}

case2
    # 为变量赋值
    ${var1}  evaluate  10
    log to console  ${var1}

operation result:

Guess you like

Origin blog.csdn.net/qq_19982677/article/details/108663210