recent posts

How To Access A Specific Index In A Robot Framework Collection

*** Test Cases ***
How To Access A Specific Index In A Robot Framework Collection
    # Create the collection for consumption
    ${collection} =  Create List  A  B  C  D  E
    # Demonstrate the use of accessing the index with assertions
    Should Be Equal As Strings  ${collection[0]}  A
    Should Be Equal As Strings  ${collection[1]}  B
    Should Be Equal As Strings  ${collection[2]}  C
    Should Be Equal As Strings  ${collection[3]}  D
    Should Be Equal As Strings  ${collection[4]}  E
    # View in log.html
    Log  ${collection[0]}
    # View in Console Command
    Log To Console  ${collection[3]}




How To Access A Specific Index In A Robot Framework Collection How To Access A Specific Index In A Robot Framework Collection Reviewed by JJ The Engineer on 7:48 PM Rating: 5

1 comment:

  1. (Y)(Y)(Y) These are GREAT info - thanks JJ!!!
    I love your animes but can I suggest a "business mode" option where the wonderful pics are not displayed.
    When using your wonderful blog at work doing work - it looks like I am goofing off...
    Don't remove the pics - I love them... Just give me an option to hide them while at work...

    ReplyDelete

Powered by Blogger.