From 5ef187acfb66c718196254b2f3ed5847b0782b50 Mon Sep 17 00:00:00 2001 From: Peter Gubka Date: Tue, 6 Sep 2016 14:25:53 +0200 Subject: [PATCH] fixing compare condition for more complicated values such as "/odl-general-entity:entity[odl-general-entity:name='Uri [_value=example-bgp-rib]-service-group']" Change-Id: I94cafbb533c58780008bc4f69ee3a403029311bb Signed-off-by: Peter Gubka --- csit/libraries/Utils.robot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csit/libraries/Utils.robot b/csit/libraries/Utils.robot index 712f936e87..e653ae431e 100644 --- a/csit/libraries/Utils.robot +++ b/csit/libraries/Utils.robot @@ -399,7 +399,7 @@ Get Index From List Of Dictionaries ${index}= Set Variable -1 : FOR ${i} IN RANGE ${length} \ ${dictionary}= Get From List ${dictionary_list} ${i} - \ Run Keyword If '&{dictionary}[${key}]' == '${value}' Set Test Variable ${index} ${i} + \ Run Keyword If """&{dictionary}[${key}]""" == """${value}""" Set Test Variable ${index} ${i} [Return] ${index} Check Item Occurrence -- 2.36.6