Skip to content

Commit 489178c

Browse files
authored
Use robotstatuschecker 2.0.3 (#1723)
* Use robotstatuschecker 2.0.3 and refactor test to use new indexing.
1 parent ce8cc44 commit 489178c

22 files changed

+91
-107
lines changed

Diff for: .github/workflows/CI.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
matrix:
1111
python-version: [3.6, 3.9, pypy3]
12-
rf-version: [3.2.2, 4.0.1b1]
12+
rf-version: [3.2.2, 4.0.1]
1313

1414
steps:
1515
- uses: actions/checkout@v2

Diff for: atest/acceptance/2-event_firing_webdriver/selenium_move_to_workaround.robot

+5-5
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ Selenium move_to workaround Mouse Over
3030
Mouse Over id:some_id
3131

3232
Click Element
33-
[Documentation] LOG 2 Clicking element 'singleClickButton'.
33+
[Documentation] LOG 1 Clicking element 'singleClickButton'.
3434
[Setup] Initialize Page For Click Element
3535
Click Element singleClickButton
3636
Element Text Should Be output single clicked
3737

3838
Double Click Element
39-
[Documentation] LOG 2 Double clicking element 'doubleClickButton'.
39+
[Documentation] LOG 1 Double clicking element 'doubleClickButton'.
4040
[Setup] Initialize Page For Click Element
4141
[Tags] Known Issue Safari Known Issue Firefox
4242
Double Click Element doubleClickButton
@@ -45,8 +45,8 @@ Double Click Element
4545
Click Element Action Chain
4646
[Tags] NoGrid
4747
[Documentation]
48-
... LOB 1:1 INFO Clicking 'singleClickButton' using an action chain.
49-
... LOG 2:6 DEBUG GLOB: *actions {"actions": [{*
48+
... LOB SETUP:1 INFO Clicking 'singleClickButton' using an action chain.
49+
... LOG 1:6 DEBUG GLOB: *actions {"actions": [{*
5050
[Setup] Initialize Page For Click Element
5151
Click Element singleClickButton action_chain=True
5252
Element Text Should Be output single clicked
@@ -252,7 +252,7 @@ Click Element Wrong Modifier
252252
... Click Element Button Foobar
253253

254254
Click Element Action Chain and modifier
255-
[Documentation] LOG 2:1 INFO Clicking element 'Button' with CTRL.
255+
[Documentation] LOG 1:1 INFO Clicking element 'Button' with CTRL.
256256
[Setup] Initialize Page For Click Element With Modifier
257257
Click Element Button modifier=CTRL action_chain=True
258258
Element Text Should Be output CTRL click

Diff for: atest/acceptance/create_webdriver.robot

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Library Collections
66
*** Test Cases ***
77
Create Webdriver Creates Functioning WebDriver
88
[Documentation]
9-
... LOG 2:1 INFO REGEXP: Creating an instance of the \\w+ WebDriver.
10-
... LOG 2:6 DEBUG REGEXP: Created \\w+ WebDriver instance with session id (\\w|-)+.
9+
... LOG 1:1 INFO REGEXP: Creating an instance of the \\w+ WebDriver.
10+
... LOG 1:6 DEBUG REGEXP: Created \\w+ WebDriver instance with session id (\\w|-)+.
1111
[Tags] Known Issue Internet Explorer Known Issue Safari
1212
[Setup] Set Driver Variables
1313
Create Webdriver ${DRIVER_NAME} kwargs=${KWARGS}

Diff for: atest/acceptance/keywords/checkbox_and_radio_buttons.robot

+7-7
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,28 @@ Resource ../resource.robot
55

66
*** Test Cases ***
77
Checkbox Should Be Selected
8-
[Documentation] LOG 2 Verifying checkbox 'can_send_email' is selected.
8+
[Documentation] LOG 1 Verifying checkbox 'can_send_email' is selected.
99
Checkbox Should Be Selected can_send_email
1010
Run Keyword And Expect Error
1111
... Checkbox 'can_send_sms' should have been selected but was not.
1212
... Checkbox Should Be Selected can_send_sms
1313

1414
Checkbox Should Not Be Selected
15-
[Documentation] LOG 2 Verifying checkbox 'can_send_sms' is not selected.
15+
[Documentation] LOG 1 Verifying checkbox 'can_send_sms' is not selected.
1616
Checkbox Should Not Be Selected can_send_sms
1717
Run Keyword And Expect Error
1818
... Checkbox 'can_send_email' should not have been selected.
1919
... Checkbox Should Not Be Selected can_send_email
2020

2121
Select Checkbox
22-
[Documentation] LOG 2 Selecting checkbox 'can_send_sms'.
22+
[Documentation] LOG 1 Selecting checkbox 'can_send_sms'.
2323
Select Checkbox can_send_sms
2424
Checkbox Should Be Selected can_send_sms
2525
Select Checkbox can_send_sms
2626
Checkbox Should Be Selected can_send_sms
2727

2828
UnSelect Checkbox
29-
[Documentation] LOG 2 Unselecting checkbox 'can_send_email'.
29+
[Documentation] LOG 1 Unselecting checkbox 'can_send_email'.
3030
Unselect Checkbox can_send_email
3131
Checkbox Should Not Be Selected can_send_email
3232
Unselect Checkbox can_send_email
@@ -51,21 +51,21 @@ Checkbox keywords don't work with radio buttons
5151
... Unselect Checkbox referrer
5252

5353
Radio Button Should Be Set To
54-
[Documentation] LOG 2 Verifying radio button 'sex' has selection 'female'.
54+
[Documentation] LOG 1 Verifying radio button 'sex' has selection 'female'.
5555
Radio Button Should Be Set To sex female
5656
Run Keyword And Expect Error
5757
... Selection of radio button 'sex' should have been 'male' but was 'female'.
5858
... Radio Button Should Be Set To sex male
5959

6060
Select Radio Button
61-
[Documentation] LOG 2 Selecting 'male' from radio button 'sex'.
61+
[Documentation] LOG 1 Selecting 'male' from radio button 'sex'.
6262
Select Radio Button sex male
6363
Radio Button Should Be Set To sex male
6464
Select Radio Button sex female
6565
Radio Button Should Be Set To sex female
6666

6767
Radio Button Should Not Be Selected
68-
[Documentation] LOG 2 Verifying radio button 'referrer' has no selection.
68+
[Documentation] LOG 1 Verifying radio button 'referrer' has no selection.
6969
Radio Button Should Not Be Selected referrer
7070
Run Keyword And Expect Error
7171
... Radio button group 'sex' should not have had selection, but 'female' was selected.

Diff for: atest/acceptance/keywords/choose_file.robot

+7-7
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Choose File And Folder
2424

2525
Choose File With Grid
2626
[Documentation]
27-
... LOG 2:6 DEBUG GLOB: POST*/session/*/file*"file": "*
27+
... LOG 1:6 DEBUG GLOB: POST*/session/*/file*"file": "*
2828
[Tags] OnlyGrid
2929
[Setup] Touch ${CURDIR}${/}temp2.txt
3030
Choose File file_to_upload ${CURDIR}${/}temp2.txt
@@ -33,7 +33,7 @@ Choose File With Grid
3333

3434
Choose File With Grid From Library Using SL choose_file method
3535
[Documentation]
36-
... LOG 4:6 DEBUG GLOB: POST*/session/*/file*"file": "*
36+
... LOG 3:6 DEBUG GLOB: POST*/session/*/file*"file": "*
3737
[Tags] OnlyGrid
3838
[Setup] Go To Page "forms/file_upload_form.html"
3939
Touch ${CURDIR}${/}temp42.txt
@@ -44,11 +44,11 @@ Choose File With Grid From Library Using SL choose_file method
4444

4545
Input Text Should Work Same Way When Not Using Grid
4646
[Documentation]
47-
... LOG 2:5 DEBUG GLOB: POST*/session/*/clear {"*
48-
... LOG 2:7 DEBUG Finished Request
49-
... LOG 2:8 DEBUG GLOB: POST*/session/*/value*"text": "*
50-
... LOG 2:10 DEBUG Finished Request
51-
... LOG 2:11 DEBUG NONE
47+
... LOG 1:5 DEBUG GLOB: POST*/session/*/clear {"*
48+
... LOG 1:7 DEBUG Finished Request
49+
... LOG 1:8 DEBUG GLOB: POST*/session/*/value*"text": "*
50+
... LOG 1:10 DEBUG Finished Request
51+
... LOG 1:11 DEBUG NONE
5252
[Tags] NoGrid
5353
[Setup] Touch ${CURDIR}${/}temp.txt
5454
Input Text file_to_upload ${CURDIR}${/}temp.txt

Diff for: atest/acceptance/keywords/click_element.robot

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ Resource ../resource.robot
66

77
*** Test Cases ***
88
Click Element
9-
[Documentation] LOG 2 Clicking element 'singleClickButton'.
9+
[Documentation] LOG 1 Clicking element 'singleClickButton'.
1010
Click Element singleClickButton
1111
Element Text Should Be output single clicked
1212

1313
Double Click Element
14-
[Documentation] LOG 2 Double clicking element 'doubleClickButton'.
14+
[Documentation] LOG 1 Double clicking element 'doubleClickButton'.
1515
[Tags] Known Issue Safari Known Issue Firefox
1616
Double Click Element doubleClickButton
1717
Element Text Should Be output double clicked
@@ -40,7 +40,7 @@ Click Element Action Chain
4040
[Tags] NoGrid
4141
[Documentation]
4242
... LOB 1:1 INFO Clicking 'singleClickButton' using an action chain.
43-
... LOG 2:6 DEBUG GLOB: *actions {"actions": [{*
43+
... LOG 1:6 DEBUG GLOB: *actions {"actions": [{*
4444
Click Element singleClickButton action_chain=True
4545
Element Text Should Be output single clicked
4646

Diff for: atest/acceptance/keywords/click_element_at_coordinates.robot

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Resource ../resource.robot
66

77
*** Test Cases ***
88
Click Element At Coordinates
9-
[Documentation] LOG 2 Clicking element 'Clickable' at coordinates x=10, y=20.
9+
[Documentation] LOG 1 Clicking element 'Clickable' at coordinates x=10, y=20.
1010
[Tags] Known Issue Internet Explorer Known Issue Safari
1111
Click Element At Coordinates Clickable ${10} ${20}
1212
Element Text Should Be outputX 110

Diff for: atest/acceptance/keywords/click_element_modifier.robot

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Click Element Wrong Modifier
4343
... Click Element Button Foobar
4444

4545
Click Element Action Chain and modifier
46-
[Documentation] LOG 2:1 INFO Clicking element 'Button' with CTRL.
46+
[Documentation] LOG 1:1 INFO Clicking element 'Button' with CTRL.
4747
Click Element Button modifier=CTRL action_chain=True
4848
Element Text Should Be output CTRL click
4949

Diff for: atest/acceptance/keywords/content_assertions.robot

+19-19
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Resource ../resource.robot
77
*** Test Cases ***
88
Title Should Be
99
[Tags] NoGrid
10-
[Documentation] LOG 2:4 Page title is '(root)/index.html'.
10+
[Documentation] LOG 1:4 Page title is '(root)/index.html'.
1111
Title Should Be (root)/index.html
1212
Run Keyword And Expect Error
1313
... Title should have been 'not a title' but was '(root)/index.html'.
@@ -20,9 +20,9 @@ Page Should Contain
2020
[Tags] NoGrid
2121
[Documentation] The last step fails and doesn't contain the html content.
2222
... FAIL Page should have contained text 'non existing text' but did not.
23-
... LOG 2:7 Current page contains text 'needle'.
24-
... LOG 3:7 INFO Current page contains text 'This is the haystack'.
25-
... LOG 4:14 FAIL Page should have contained text 'non existing text' but did not.
23+
... LOG 1:7 Current page contains text 'needle'.
24+
... LOG 2:7 INFO Current page contains text 'This is the haystack'.
25+
... LOG 3:14 FAIL Page should have contained text 'non existing text' but did not.
2626
Page Should Contain needle
2727
Page Should Contain This is the haystack
2828
Page Should Contain non existing text
@@ -41,22 +41,22 @@ Page Should Contain With Custom Log Level DEBUG
4141
[Tags] NoGrid
4242
[Documentation] Html content is shown at DEBUG level.
4343
... FAIL Page should have contained text 'non existing text' but did not.
44-
... LOG 2:14 DEBUG REGEXP: (?i)<html.*</html>
45-
... LOG 2:15 FAIL Page should have contained text 'non existing text' but did not.
44+
... LOG 1:14 DEBUG REGEXP: (?i)<html.*</html>
45+
... LOG 1:15 FAIL Page should have contained text 'non existing text' but did not.
4646
Page Should Contain non existing text DEBUG
4747

4848
Page Should Contain With Custom Log Level TRACE
4949
[Tags] NoGrid
5050
[Documentation] Html content is shown at DEBUG level.
5151
... FAIL Page should have contained text 'non existing text' but did not.
52-
... LOG 3:15 TRACE REGEXP: (?i)<html.*</html>
53-
... LOG 3:16 FAIL Page should have contained text 'non existing text' but did not.
52+
... LOG 2:15 TRACE REGEXP: (?i)<html.*</html>
53+
... LOG 2:16 FAIL Page should have contained text 'non existing text' but did not.
5454
Set Log Level TRACE
5555
Page Should Contain non existing text TRACE
5656
[Teardown] Set Log Level DEBUG
5757

5858
Page Should Contain With Disabling Source Logging
59-
[Documentation] LOG 3:2 NONE
59+
[Documentation] LOG TEARDOWN:2 NONE
6060
Set Log Level INFO
6161
Run Keyword And Expect Error
6262
... Page should have contained text 'non existing text' but did not.
@@ -71,20 +71,20 @@ Page Should Not Contain
7171
[Tags] NoGrid
7272
[Documentation] Default log level does not have html output.
7373
... FAIL Page should not have contained text 'needle'.
74-
... LOG 2:11 Current page does not contain text 'non existing text'.
75-
... LOG 3:10 FAIL Page should not have contained text 'needle'.
74+
... LOG 1:11 Current page does not contain text 'non existing text'.
75+
... LOG 2:10 FAIL Page should not have contained text 'needle'.
7676
Page Should Not Contain non existing text
7777
Page Should Not Contain needle
7878

7979
Page Should Not Contain With Custom Log Level
8080
[Tags] NoGrid
81-
[Documentation] LOG 2.1:10 DEBUG REGEXP: (?i)<html.*</html>
81+
[Documentation] LOG 1.1:10 DEBUG REGEXP: (?i)<html.*</html>
8282
Run Keyword And Expect Error
8383
... Page should not have contained text 'needle'.
8484
... Page Should Not Contain needle DEBUG
8585

8686
Page Should Not Contain With Disabling Source Logging
87-
[Documentation] LOG 3:2 NONE
87+
[Documentation] LOG TEARDOWN:2 NONE
8888
Set Log Level INFO
8989
Run Keyword And Expect Error
9090
... Page should not have contained text 'needle'.
@@ -103,7 +103,7 @@ Page Should Contain Element With Custom Message
103103
... Page Should Contain Element invalid Custom error message
104104

105105
Page Should Contain Element With Disabling Source Logging
106-
[Documentation] LOG 3:2 NONE
106+
[Documentation] LOG TEARDOWN:2 NONE
107107
Set Log Level INFO
108108
Run Keyword And Expect Error
109109
... Page should have contained element 'non-existent' but did not.
@@ -117,7 +117,7 @@ Page Should Not Contain Element
117117
... Page Should Not Contain Element some_id
118118

119119
Page Should Not Contain Element With Disabling Source Logging
120-
[Documentation] LOG 3:2 NONE
120+
[Documentation] LOG TEARDOWN:2 NONE
121121
Set Log Level INFO
122122
Run Keyword And Expect Error
123123
... Page should not have contained element 'some_id'.
@@ -189,7 +189,7 @@ Get Text
189189

190190
Page Should Contain Checkbox
191191
[Tags] NoGrid
192-
[Documentation] LOG 2:7 Current page contains checkbox 'can_send_email'.
192+
[Documentation] LOG 1:7 Current page contains checkbox 'can_send_email'.
193193
[Setup] Go To Page "forms/prefilled_email_form.html"
194194
Page Should Contain Checkbox can_send_email
195195
Page Should Contain Checkbox xpath=//input[@type='checkbox' and @name='can_send_sms']
@@ -199,7 +199,7 @@ Page Should Contain Checkbox
199199

200200
Page Should Not Contain Checkbox
201201
[Tags] NoGrid
202-
[Documentation] LOG 2:7 Current page does not contain checkbox 'non-existing'.
202+
[Documentation] LOG 1:7 Current page does not contain checkbox 'non-existing'.
203203
[Setup] Go To Page "forms/prefilled_email_form.html"
204204
Page Should Not Contain Checkbox non-existing
205205
Run Keyword And Expect Error
@@ -290,7 +290,7 @@ Page Should Not Contain Text Field
290290

291291
TextField Should Contain
292292
[Tags] NoGrid
293-
[Documentation] LOG 2:10 Text field 'name' contains text ''.
293+
[Documentation] LOG 1:10 Text field 'name' contains text ''.
294294
[Setup] Go To Page "forms/email_form.html"
295295
TextField Should contain name ${EMPTY}
296296
TextField Should contain website ${EMPTY}
@@ -307,7 +307,7 @@ TextField Should Contain
307307

308308
TextField Value Should Be
309309
[Tags] NoGrid
310-
[Documentation] LOG 2:10 Content of text field 'name' is ''.
310+
[Documentation] LOG 1:10 Content of text field 'name' is ''.
311311
[Setup] Go To Page "forms/email_form.html"
312312
textfield Value Should Be name ${EMPTY}
313313
Input Text name my name

Diff for: atest/acceptance/keywords/cookies.robot

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Test Get Cookie Object Value
106106
Test Get Cookie Keyword Logging
107107
[Tags] NoGrid
108108
[Documentation]
109-
... LOG 2:4 ${cookie} = name=another
109+
... LOG 1:4 ${cookie} = name=another
110110
... value=value
111111
... path=/
112112
... domain=localhost

Diff for: atest/acceptance/keywords/counting_elements.robot

+5-5
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ Page Should Contain Element When Limit Is None
3535

3636
Page Should Contain Element When Limit Is Number
3737
[Tags] NoGrid
38-
[Documentation] LOG 2:4 INFO Current page contains 2 element(s).
38+
[Documentation] LOG 1:4 INFO Current page contains 2 element(s).
3939
[Setup] Go To Page "links.html"
4040
Page Should Contain Element name: div_name limit=2
4141

4242
Page Should Contain Element Log Level Does Not Affect When Keyword Passes
4343
[Tags] NoGrid
44-
[Documentation] LOG 2:4 INFO Current page contains 2 element(s).
44+
[Documentation] LOG 1:4 INFO Current page contains 2 element(s).
4545
[Setup] Go To Page "links.html"
4646
Page Should Contain Element name: div_name loglevel=debug limit=2
4747

@@ -64,9 +64,9 @@ Page Should Contain Element When Error With Limit And Different Loglevels
6464
[Tags] NoGrid
6565
[Documentation] Only at DEBUG loglevel is the html placed in the log.
6666
... FAIL Page should have contained "99" element(s), but it did contain "2" element(s).
67-
... LOG 2.1:7 FAIL Page should have contained "99" element(s), but it did contain "2" element(s).
68-
... LOG 3:7 DEBUG REGEXP: .*links\\.html.*
69-
... LOG 3:8 FAIL Page should have contained "99" element(s), but it did contain "2" element(s).
67+
... LOG 1.1:7 FAIL Page should have contained "99" element(s), but it did contain "2" element(s).
68+
... LOG 2:7 DEBUG REGEXP: .*links\\.html.*
69+
... LOG 2:8 FAIL Page should have contained "99" element(s), but it did contain "2" element(s).
7070
[Setup] Go To Page "links.html"
7171
Run Keyword And Ignore Error
7272
... Page Should Contain Element name: div_name limit=99

Diff for: atest/acceptance/keywords/forms_and_buttons.robot

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ${FORM SUBMITTED} forms/submit.html
77

88
*** Test Cases ***
99
Submit Form
10-
[Documentation] LOG 2 Submitting form 'form_name'.
10+
[Documentation] LOG 1 Submitting form 'form_name'.
1111
Submit Form form_name
1212
Verify Location Is "${FORM SUBMITTED}"
1313

@@ -17,7 +17,7 @@ Submit Form Without Args
1717
Verify Location Is "target/first.html"
1818

1919
Click Ok Button By Name
20-
[Documentation] LOG 2 Clicking button 'ok_button'.
20+
[Documentation] LOG 1 Clicking button 'ok_button'.
2121
Click Button ok_button
2222
Verify Location Is "${FORM SUBMITTED}"
2323

Diff for: atest/acceptance/keywords/frames.robot

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Page Should Contain Text Within Frames should also work with iframes
3333
Page Should Contain Links
3434

3535
Select And Unselect Frame
36-
[Documentation] LOG 2 Selecting frame 'left'.
36+
[Documentation] LOG 1 Selecting frame 'left'.
3737
Select Frame left
3838
Click Link foo
3939
Unselect Frame

0 commit comments

Comments
 (0)