Skip to content

Commit 09b7e2f

Browse files
committed
Atest fixes
1 parent 0bfdfe4 commit 09b7e2f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

atest/acceptance/keywords/run_on_failure.robot

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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
33
Test Teardown Register Keyword to Run On Failure Nothing
44
Suite Teardown Set Debug Loglevel
55
Resource ../resource.robot
@@ -11,10 +11,12 @@ ${FAILURE MESSAGE} Page should not have contained text 'needle'.
1111

1212
*** Test Cases ***
1313
Run 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

1921
Log 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

Comments
 (0)