robot framework 之 Collections

上一篇 / 下一篇  2017-03-08 10:47:30 / 个人分类:robot framework

keywords
    [Setup]    log    这里开始
    ${L1}    Create List    2    1
    ${L2}    Create List    2    aaaaaa    c
    Append To List    ${L2}    80
    ${L3}    Combine Lists    ${L2}    ${L1}
    ${L4}    Copy List    ${L3}
    ${L5}    Count Values In List    ${L2}    b
    ${D1}    Create Dictionary    11    22    33    44
    #${aa}    Keep In Dictionary    ${D1}    11    22
    ${D2}    Get Dictionary Items    ${D1}
    ${D3}    Get Dictionary Keys    ${D1}
    ${D4}    Get From Dictionary    ${D1}    11
    Sort List    ${L1}
    Should Contain Match    ${L2}    a*
    Set To Dictionary    ${D1}    asss    ${L2}
    log    ${D1}
    #Set List Value    ${L1}    0    i am so happy
    Reverse List    ${L1}
    #Remove From List    ${L1}    2
    ${val}    Pop From Dictionary    ${D1}    11
    #Log List    ${L2}
    #${aa}    List Should Contain Value    ${L1}    2
    [Teardown]    log    这里结束

TAG:

 

评分:0

我来说两句

Open Toolbar