Commit 07a9e9a56e8e0865695a757ef248e849b8d7fa09

Authored by selurvedu
1 parent 83910640

Throw failure instead of warning

Old behaviour: If we expected failure but got success, log a warning
but don't call `Fail`.
New behaviour: If we expected failure but got success, call `Fail`.

Also, the message was corrected.
@@ -216,8 +216,8 @@ SwitchState @@ -216,8 +216,8 @@ SwitchState
216 Log Many @{arguments} 216 Log Many @{arguments}
217 ${keywords_file}= Get Broker Property By Username ${username} keywords_file 217 ${keywords_file}= Get Broker Property By Username ${username} keywords_file
218 ${status} ${value}= run_keyword_and_ignore_keyword_definitions ${keywords_file}.${command} ${username} @{arguments} 218 ${status} ${value}= run_keyword_and_ignore_keyword_definitions ${keywords_file}.${command} ${username} @{arguments}
219 - Run keyword if '${status}' == 'PASS' Log Учасник ${username} зміг виконати "${command}" WARN  
220 - [return] ${value} 219 + Run keyword if '${status}' == 'PASS' Fail Користувач ${username} зміг виконати "${command}"
  220 + [return] ${value}
221 221
222 222
223 Дочекатись дати 223 Дочекатись дати
Please register or login to post a comment