11*** Settings ***
2- Suite Setup Run Keywords Go To Front Page Set Info Loglevel Prefer Custom Keywords
2+ Suite Setup Run Keywords Go To Front Page Set Info Loglevel
33Test Teardown Register Keyword to Run On Failure Nothing
44Suite Teardown Set Debug Loglevel
55Resource ../resource.robot
@@ -11,10 +11,12 @@ ${FAILURE MESSAGE} Page should not have contained text 'needle'.
1111
1212*** Test Cases ***
1313Run On Failure Keyword Only Called Once
14+ [Setup] Prefer Custom Keywords
1415 Set Test Variable ${ON FAIL COUNT } ${0 }
1516 Register Keyword To Run On Failure On Fail
1617 Run Keyword And Ignore Error Custom Selenium Keyword
1718 Should Be Equal ${ON FAIL COUNT } ${1 } On Failure Keyword called ${ON FAIL COUNT } times.
19+ [Teardown] Set Library Search Order SeleniumLibrary
1820
1921Log Title On Failure
2022 [Documentation]
@@ -30,7 +32,7 @@ Disable Run on Failure With Nothing
3032 [Documentation]
3133 ... LOG 1 No keyword will be run on failure.
3234 ... LOG 2.1:2 NONE
33- SeleniumLibrary. Register Keyword to Run On Failure Nothing
35+ Register Keyword to Run On Failure Nothing
3436 Run Keyword And Expect Error
3537 ... ${FAILURE MESSAGE }
3638 ... Page Should Not Contain needle loglevel=None
@@ -39,7 +41,7 @@ Disable Run on Failure With Python None
3941 [Documentation]
4042 ... LOG 1 No keyword will be run on failure.
4143 ... LOG 2.1:2 NONE
42- SeleniumLibrary. Register Keyword to Run On Failure ${NONE }
44+ Register Keyword to Run On Failure ${NONE }
4345 Run Keyword And Expect Error
4446 ... ${FAILURE MESSAGE }
4547 ... Page Should Not Contain needle loglevel=None
@@ -48,7 +50,7 @@ Disable Run on Failure With String NONE
4850 [Documentation]
4951 ... LOG 1 No keyword will be run on failure.
5052 ... LOG 2.1:2 NONE
51- SeleniumLibrary. Register Keyword to Run On Failure NONE
53+ Register Keyword to Run On Failure NONE
5254 Run Keyword And Expect Error
5355 ... ${FAILURE MESSAGE }
5456 ... Page Should Not Contain needle loglevel=None
0 commit comments