diff --git a/GenericKeywords.robot b/GenericKeywords.robot index 9a14519074dca94a9799a9ded6f0181f9b20b1fe..0a4a1226ba8c490b71dfdaa66294a2bbc28797ad 100644 --- a/GenericKeywords.robot +++ b/GenericKeywords.robot @@ -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}