You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to request a new CLI argument, --timeout, to set an upper time limit for the entire Robot Framework test execution.
I am aware that timeouts can be defined at the suite and test levels, but I am building an automation system that runs Robot Framework tests for multiple teams. Many of these teams do not have timeouts set in their tests, and I need a way to enforce a global timeout for better control.
Currently, I have a timeout for the command handler itself (e.g., an SSH session), but this is not ideal because:
If the timeout is reached, Robot Framework does not generate a complete report—tests are left in an incomplete state.
Teams cannot determine which test or stage got stuck.
Debugging test failures becomes difficult.
Proposed Solution:
Introduce a CLI argument like:
robot --timeout 3h test.robot
This argument would:
Act as an upper limit for test execution.
Override any timeouts already defined in test cases or suites.
Ensure that a proper Robot Framework report is generated when the timeout is reached.
Would this be possible to implement? I believe it would greatly benefit users managing large-scale test automation.
Let me know if I can provide more details!
The text was updated successfully, but these errors were encountered:
I can see that this would be useful in some cases and believe implementing it wouldn't be too complicated.
Nowadays when Robot runs a keyword, it checks are there test or keyword timeouts active. If there are multiple, it uses the timeout that has least time remaining. Implementing this enhancement would basically require creating a new total timeout type that would be active during the whole execution. It would always be one of the timeout candidates and rest of the timeout functionality ought to work without bigger changes.
I won't have time to look at this myself in the near future, but would be happy to help if someone else is interested.
@pekkaklarck
it is similar to expand variable issue , and I have submitted a PR before , i Think i can take it and try to get it done together with the new design of expanding variable ticket
I would like to request a new CLI argument, --timeout, to set an upper time limit for the entire Robot Framework test execution.
I am aware that timeouts can be defined at the suite and test levels, but I am building an automation system that runs Robot Framework tests for multiple teams. Many of these teams do not have timeouts set in their tests, and I need a way to enforce a global timeout for better control.
Currently, I have a timeout for the command handler itself (e.g., an SSH session), but this is not ideal because:
Proposed Solution:
Introduce a CLI argument like:
robot --timeout 3h test.robot
This argument would:
Would this be possible to implement? I believe it would greatly benefit users managing large-scale test automation.
Let me know if I can provide more details!
The text was updated successfully, but these errors were encountered: