From 4c976b03a1b8d91f821c2f384babbc3fe3f07af4 Mon Sep 17 00:00:00 2001 From: piscione Date: Tue, 4 Jun 2024 10:26:15 +0200 Subject: [PATCH] Fix on Robot syntax --- GenericKeywords.robot | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/GenericKeywords.robot b/GenericKeywords.robot index 9a14519..0a4a122 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} -- GitLab