0
votes

Robot framework may show some errors to the console if e.g. it cannot find some file at some path. This is not test or suite related failures. This error just loggs to the console, but Robot Framework continues to execute suites and test after this kind of error. So my question is: how can I change this default behavior and tell Robot Framework to stop execution if it finds this kind of errors?

Maybe it can be some command line option or special tag. I searched in docs here https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#errors-and-warnings and did not find any info about that. Am I missing something?

Example of such error:

[ ERROR ] Error in file 'D:\Projects\project\suites\02__app\05__d\editing.robot': Resource file '..\..\..\resources\keywords\attribute.resource' does not exist.
Suites.App.d.Editing
1

1 Answers

2
votes

I believe the option --exitonerror is the command line option you are looking for.