Skip to content

Support disabling continue-on-failure mode in teardown and with template - #4306

Closed
oboehmer wants to merge 5 commits into
robotframework:masterfrom
oboehmer:4303-no-continue-on-failure
Closed

oboehmer wants to merge 5 commits into
robotframework:masterfrom
oboehmer:4303-no-continue-on-failure

Conversation

@oboehmer

@oboehmer oboehmer commented Apr 7, 2022 •

Copy link
Copy Markdown
Contributor

Enable a user-keyword executed within teardown context to override the default continue-on-failure behaviour in teardown, i.e.

No-continue-on-failure in Teardown
    [Documentation]    FAIL kw1a
    [Teardown]   Failure in user keyword with no-continue tag
    Log    does not matter

*** Keywords ***
Failure in user keyword with no-continue tag
    [Tags]   robot:no-continue-on-failure
    Fail   kw1a
    Log    This should not be executed
    Fail   kw1b

Also allow the user to disable default for continue-on-failure with templates. The below test case will abort the test case after the 2nd iteration (42!=43), the last values (Something and Different) are not compared

No-continue-on-failure with Template
    [Documentation]    FAIL    42 != 43
    [Tags]   robot:no-continue-on-failure
    [Template]    Should Be Equal
    Same         Same
    42           43
    Something    Different

This addresses #4303

@oboehmer
oboehmer marked this pull request as ready for review April 8, 2022 07:01
@oboehmer oboehmer changed the title honor robot:no-continue-on-failure in teardown or in recursive user KW Support disabling continue-on-failure mode in teardown or in recursive user KW Apr 8, 2022
@oboehmer oboehmer changed the title Support disabling continue-on-failure mode in teardown or in recursive user KW Support disabling continue-on-failure mode in teardown and with template Apr 8, 2022
@oboehmer

oboehmer commented Apr 9, 2022

Copy link
Copy Markdown
Contributor Author

closing the PR, will re-open once design decisions have been finalized

@oboehmer oboehmer closed this Apr 9, 2022
@oboehmer
oboehmer deleted the 4303-no-continue-on-failure branch April 13, 2022 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant