Upgrade RF syntax for v3.2 compatibility
[integration/test.git] / csit / libraries / SubStrings.robot
1 *** Settings ***
2 Documentation     Utility keywords for verification of substring occurrence
3
4 *** Keywords ***
5 Should Contain All Sub Strings
6     [Arguments]    ${attr}    @{checked}
7     [Documentation]    Passes if ${attr} includes all substrings from @{checked}, fails otherwise
8     FOR    ${item}    IN    @{checked}
9         Should Contain    ${attr}    ${item}
10     END
11
12 Should Not Contain Any Sub Strings
13     [Arguments]    ${attr}    @{checked}
14     [Documentation]    Fails if ${attr} includes at least one substring from @{checked}, passes otherwise
15     FOR    ${item}    IN    @{checked}
16         Should Not Contain    ${attr}    ${item}
17     END