Skip to content

Commit cc27dce

Browse files
committed
fix robot test
1 parent e35f1c0 commit cc27dce

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

acceptance/JSONLibrary.robot

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,8 @@ TestInvalidSyntaxByJSONPath
5959
[Documentation] Check that an invalid syntax fail the test and doesn't crash Robot
6060
${value}= Get Value From Json ${json_obj_input} $.bankAccounts[?(@.amount>=100)].bank
6161
Should Be Equal As Strings "${value}" "['WesternUnion', 'HSBC']"
62-
63-
${res}= Run Keyword And return status Get Value From Json ${json_obj} $.bankAccounts[?(@.amount=>100)].bank
64-
Should Not Be True ${res}
62+
Run Keyword And Expect Error Parser failed to understand syntax *
63+
... Get Value From Json ${json_obj_input} $.bankAccounts[?(@.amount=>100)].bank
6564

6665
TestDeleteObjectByJSONPath
6766
[Documentation] Delete object from json object using JSONPath

0 commit comments

Comments
 (0)