I ‘m using robot framework version 3.2.1
I’m trying to fail the test by using in the end_keyword method this commnad BuiltIn().set_test_variable(’${TEST STATUS}’, step_status)
when i open the log in the web browser i see that the test passed
You seems to use a listener to fail it.
This would have been a vital information.
Please describe a bit more about your use case.
If you use a Listener V3 it should be possible to manipulate the result object of the keyword itself instead of calling a fail keyword or raise an error, what would be the same.
Because in this case your listener fails, not the test.
no i mean, why can not the keyword itself fail.
What is the “Use Case” of the listener.
Could you explain the problem a bit better?
I understand, that raising an Error in Listener does not Fail a step!
But this is how you try to fix your problem.
What was your problem?