Commit 4c976b03 authored by piscione's avatar piscione
Browse files

Fix on Robot syntax

parent 3268aa67
Loading
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -24,9 +24,10 @@ Check HTTP Response Body Json Schema Is
Should Be Present In Json List
    [Arguments]     ${expr}   ${json_field}   ${json_value}
    Log    Check if ${json_field} is present in ${expr} with the value ${json_value}
    :FOR  ${item}  IN  @{expr}
    \  ${are_equal}=    Should Be Equal As Strings    ${item["${json_field}"]}    ${json_value}
    \  Exit For Loop If    ${are_equal}
    FOR  ${item}  IN  @{expr}
      ${are_equal}=    Should Be Equal As Strings    ${item["${json_field}"]}    ${json_value}
      Exit For Loop If    ${are_equal}
    END
    Log    Item found ${item}
    [return]    ${item}