1
1
*** 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
3
3
Test Teardown Register Keyword to Run On Failure Nothing
4
4
Suite Teardown Set Debug Loglevel
5
5
Resource ../resource.robot
@@ -11,10 +11,12 @@ ${FAILURE MESSAGE} Page should not have contained text 'needle'.
11
11
12
12
*** Test Cases ***
13
13
Run On Failure Keyword Only Called Once
14
+ [Setup] Prefer Custom Keywords
14
15
Set Test Variable ${ON FAIL COUNT } ${0 }
15
16
Register Keyword To Run On Failure On Fail
16
17
Run Keyword And Ignore Error Custom Selenium Keyword
17
18
Should Be Equal ${ON FAIL COUNT } ${1 } On Failure Keyword called ${ON FAIL COUNT } times.
19
+ [Teardown] Set Library Search Order SeleniumLibrary
18
20
19
21
Log Title On Failure
20
22
[Documentation]
@@ -30,7 +32,7 @@ Disable Run on Failure With Nothing
30
32
[Documentation]
31
33
... LOG 1 No keyword will be run on failure.
32
34
... LOG 2.1:2 NONE
33
- SeleniumLibrary. Register Keyword to Run On Failure Nothing
35
+ Register Keyword to Run On Failure Nothing
34
36
Run Keyword And Expect Error
35
37
... ${FAILURE MESSAGE }
36
38
... Page Should Not Contain needle loglevel=None
@@ -39,7 +41,7 @@ Disable Run on Failure With Python None
39
41
[Documentation]
40
42
... LOG 1 No keyword will be run on failure.
41
43
... LOG 2.1:2 NONE
42
- SeleniumLibrary. Register Keyword to Run On Failure ${NONE }
44
+ Register Keyword to Run On Failure ${NONE }
43
45
Run Keyword And Expect Error
44
46
... ${FAILURE MESSAGE }
45
47
... Page Should Not Contain needle loglevel=None
@@ -48,7 +50,7 @@ Disable Run on Failure With String NONE
48
50
[Documentation]
49
51
... LOG 1 No keyword will be run on failure.
50
52
... LOG 2.1:2 NONE
51
- SeleniumLibrary. Register Keyword to Run On Failure NONE
53
+ Register Keyword to Run On Failure NONE
52
54
Run Keyword And Expect Error
53
55
... ${FAILURE MESSAGE }
54
56
... Page Should Not Contain needle loglevel=None
0 commit comments