user10294571
user10294571

Reputation:

How to stop Robot Framework suite execution on console error?

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

Upvotes: 0

Views: 1290

Answers (1)

Brian O'Neill
Brian O'Neill

Reputation: 329

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

Upvotes: 2

Related Questions