Robot Framework学习笔记:List变量

用法:

@{Val3}   Set Variable  1   2   3

或者:

@{listVal3}  Create List   3   2  1

运用实例:

例1:

Run Keyword   log   abcd   WARN

例2:

@{argVal3}   Create List   abcd   WARN

${keyword}   Set Variable   log

Run Keyword  ${keyword}    @{argVal3}

List元素的使用

    @{useList}    Create List    a    b    c
    log    @{useList}[1]
    log    ${useList[1]}
    @{listA}    Create List    1    2
    @{listB}    Create List    3    4
    @{listC}    Create List    ${listA}    ${listB}    5
    log    @{listC[1]}[1]
    log    ${listC[1][1]}

猜你喜欢

转载自blog.csdn.net/jingyueshi2009/article/details/83717788
今日推荐