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
{{ message }}
Repository navigation
Remove possibility to specify custom timeout message #2291
Currently it is possible to specify a custom message for test and keyword timeouts:
*** Keywords ***Example[Timeout]2 min My message
Sleep 5 s
I propose we remove this functionality for the following reasons:
I don't see any use cases where the custom error message would be better than the default message. For example, the above keyword would fail with Keyword timeout 2 seconds exceeded. if it wouldn't have a custom message.
In the above example the actual timeout value would be 2 seconds and the message would be very confusing min. As originally proposed in Timeout custom message needs to also indicate that it was a timeout event #2288, this could be fixed also by adding the actual timeout value to the custom message, but I think it would be better to just remove the support for custom messages altogether.
Not having custom timeout messages would simplify Robot's internal timeout handling a little. Currently executable model objects have timeout as an object that has value and message, but result model objects only have timeout as a string containing the value. The possible custom message isn't actually even stored in output.xml at all.
Please comment this issue if you have valid use cases for custom timeout messages and don't want them to be removed. Because removing them is backwards incompatible, it can be done earliest in RF 3.1, but we can deprecate them already in RF 3.0.1.
Nobody has objected removing the support for custom timeout messages here nor on robotframework-users where I asked about it on Jan 8, 2016. It seems pretty clear that we can remove this functionality in RF 3.1 and deprecate it in RF 3.0.1.
changed the title [-]Remove possibility so specify custom timeout message[/-][+]Remove possibility to specify custom timeout message[/+]on Apr 23, 2018
Decided to change removing the custom message to RF 3.2 to let it be deprecated for a full major release cycle. This functionality is still deprecated and should not be used.
Issue #3357 noted that RF 3.1.2 User Guide still talks about the custom message and it seems we haven't updated the UG after that either. That should be done as part of this issue so I'll reopen this.
Activity
pekkaklarck commentedon Feb 24, 2016
Nobody has objected removing the support for custom timeout messages here nor on robotframework-users where I asked about it on Jan 8, 2016. It seems pretty clear that we can remove this functionality in RF 3.1 and deprecate it in RF 3.0.1.
[-]Remove possibility so specify custom timeout message[/-][+]Remove possibility to specify custom timeout message[/+]pekkaklarck commentedon Jul 5, 2018
Decided to change removing the custom message to RF 3.2 to let it be deprecated for a full major release cycle. This functionality is still deprecated and should not be used.
Remove support for custom timeout messages
Remove support for custom timeout messages
Remove support for custom timeout messages
Remove support for custom timeout messages
Remove support for custom timeout messages
Remove support for custom timeout messages
Fix timeout utest after removing custom msg #2291
Remove support for custom timeout messages
Fix timeout utest after removing custom msg #2291
Fix timeout utest after removing custom msg #2291
pekkaklarck commentedon Oct 31, 2019
Issue #3357 noted that RF 3.1.2 User Guide still talks about the custom message and it seems we haven't updated the UG after that either. That should be done as part of this issue so I'll reopen this.