Fix integration tests for iotdm project
[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
11 Should Not Contain Any Sub Strings
12     [Arguments]    ${attr}    @{checked}
13     [Documentation]    Fails if ${attr} includes at least one substring from @{checked}, passes otherwise
14     : FOR    ${item}    IN    @{checked}
15     \    Should Not Contain    ${attr}    ${item}