Skip to content

Commit

Permalink
Use robotstatuschecker 2.0.3 (#1723)
Browse files Browse the repository at this point in the history
* Use robotstatuschecker 2.0.3 and refactor test to use new indexing.
  • Loading branch information
aaltat authored Apr 16, 2021
1 parent ce8cc44 commit 489178c
Show file tree
Hide file tree
Showing 22 changed files with 91 additions and 107 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
matrix:
python-version: [3.6, 3.9, pypy3]
rf-version: [3.2.2, 4.0.1b1]
rf-version: [3.2.2, 4.0.1]

steps:
- uses: actions/checkout@v2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ Selenium move_to workaround Mouse Over
Mouse Over id:some_id

Click Element
[Documentation] LOG 2 Clicking element 'singleClickButton'.
[Documentation] LOG 1 Clicking element 'singleClickButton'.
[Setup] Initialize Page For Click Element
Click Element singleClickButton
Element Text Should Be output single clicked

Double Click Element
[Documentation] LOG 2 Double clicking element 'doubleClickButton'.
[Documentation] LOG 1 Double clicking element 'doubleClickButton'.
[Setup] Initialize Page For Click Element
[Tags] Known Issue Safari Known Issue Firefox
Double Click Element doubleClickButton
Expand All @@ -45,8 +45,8 @@ Double Click Element
Click Element Action Chain
[Tags] NoGrid
[Documentation]
... LOB 1:1 INFO Clicking 'singleClickButton' using an action chain.
... LOG 2:6 DEBUG GLOB: *actions {"actions": [{*
... LOB SETUP:1 INFO Clicking 'singleClickButton' using an action chain.
... LOG 1:6 DEBUG GLOB: *actions {"actions": [{*
[Setup] Initialize Page For Click Element
Click Element singleClickButton action_chain=True
Element Text Should Be output single clicked
Expand Down Expand Up @@ -252,7 +252,7 @@ Click Element Wrong Modifier
... Click Element Button Foobar

Click Element Action Chain and modifier
[Documentation] LOG 2:1 INFO Clicking element 'Button' with CTRL.
[Documentation] LOG 1:1 INFO Clicking element 'Button' with CTRL.
[Setup] Initialize Page For Click Element With Modifier
Click Element Button modifier=CTRL action_chain=True
Element Text Should Be output CTRL click
Expand Down
4 changes: 2 additions & 2 deletions atest/acceptance/create_webdriver.robot
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ Library Collections
*** Test Cases ***
Create Webdriver Creates Functioning WebDriver
[Documentation]
... LOG 2:1 INFO REGEXP: Creating an instance of the \\w+ WebDriver.
... LOG 2:6 DEBUG REGEXP: Created \\w+ WebDriver instance with session id (\\w|-)+.
... LOG 1:1 INFO REGEXP: Creating an instance of the \\w+ WebDriver.
... LOG 1:6 DEBUG REGEXP: Created \\w+ WebDriver instance with session id (\\w|-)+.
[Tags] Known Issue Internet Explorer Known Issue Safari
[Setup] Set Driver Variables
Create Webdriver ${DRIVER_NAME} kwargs=${KWARGS}
Expand Down
14 changes: 7 additions & 7 deletions atest/acceptance/keywords/checkbox_and_radio_buttons.robot
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,28 @@ Resource ../resource.robot

*** Test Cases ***
Checkbox Should Be Selected
[Documentation] LOG 2 Verifying checkbox 'can_send_email' is selected.
[Documentation] LOG 1 Verifying checkbox 'can_send_email' is selected.
Checkbox Should Be Selected can_send_email
Run Keyword And Expect Error
... Checkbox 'can_send_sms' should have been selected but was not.
... Checkbox Should Be Selected can_send_sms

Checkbox Should Not Be Selected
[Documentation] LOG 2 Verifying checkbox 'can_send_sms' is not selected.
[Documentation] LOG 1 Verifying checkbox 'can_send_sms' is not selected.
Checkbox Should Not Be Selected can_send_sms
Run Keyword And Expect Error
... Checkbox 'can_send_email' should not have been selected.
... Checkbox Should Not Be Selected can_send_email

Select Checkbox
[Documentation] LOG 2 Selecting checkbox 'can_send_sms'.
[Documentation] LOG 1 Selecting checkbox 'can_send_sms'.
Select Checkbox can_send_sms
Checkbox Should Be Selected can_send_sms
Select Checkbox can_send_sms
Checkbox Should Be Selected can_send_sms

UnSelect Checkbox
[Documentation] LOG 2 Unselecting checkbox 'can_send_email'.
[Documentation] LOG 1 Unselecting checkbox 'can_send_email'.
Unselect Checkbox can_send_email
Checkbox Should Not Be Selected can_send_email
Unselect Checkbox can_send_email
Expand All @@ -51,21 +51,21 @@ Checkbox keywords don't work with radio buttons
... Unselect Checkbox referrer

Radio Button Should Be Set To
[Documentation] LOG 2 Verifying radio button 'sex' has selection 'female'.
[Documentation] LOG 1 Verifying radio button 'sex' has selection 'female'.
Radio Button Should Be Set To sex female
Run Keyword And Expect Error
... Selection of radio button 'sex' should have been 'male' but was 'female'.
... Radio Button Should Be Set To sex male

Select Radio Button
[Documentation] LOG 2 Selecting 'male' from radio button 'sex'.
[Documentation] LOG 1 Selecting 'male' from radio button 'sex'.
Select Radio Button sex male
Radio Button Should Be Set To sex male
Select Radio Button sex female
Radio Button Should Be Set To sex female

Radio Button Should Not Be Selected
[Documentation] LOG 2 Verifying radio button 'referrer' has no selection.
[Documentation] LOG 1 Verifying radio button 'referrer' has no selection.
Radio Button Should Not Be Selected referrer
Run Keyword And Expect Error
... Radio button group 'sex' should not have had selection, but 'female' was selected.
Expand Down
14 changes: 7 additions & 7 deletions atest/acceptance/keywords/choose_file.robot
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Choose File And Folder

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

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

Input Text Should Work Same Way When Not Using Grid
[Documentation]
... LOG 2:5 DEBUG GLOB: POST*/session/*/clear {"*
... LOG 2:7 DEBUG Finished Request
... LOG 2:8 DEBUG GLOB: POST*/session/*/value*"text": "*
... LOG 2:10 DEBUG Finished Request
... LOG 2:11 DEBUG NONE
... LOG 1:5 DEBUG GLOB: POST*/session/*/clear {"*
... LOG 1:7 DEBUG Finished Request
... LOG 1:8 DEBUG GLOB: POST*/session/*/value*"text": "*
... LOG 1:10 DEBUG Finished Request
... LOG 1:11 DEBUG NONE
[Tags] NoGrid
[Setup] Touch ${CURDIR}${/}temp.txt
Input Text file_to_upload ${CURDIR}${/}temp.txt
Expand Down
6 changes: 3 additions & 3 deletions atest/acceptance/keywords/click_element.robot
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ Resource ../resource.robot

*** Test Cases ***
Click Element
[Documentation] LOG 2 Clicking element 'singleClickButton'.
[Documentation] LOG 1 Clicking element 'singleClickButton'.
Click Element singleClickButton
Element Text Should Be output single clicked

Double Click Element
[Documentation] LOG 2 Double clicking element 'doubleClickButton'.
[Documentation] LOG 1 Double clicking element 'doubleClickButton'.
[Tags] Known Issue Safari Known Issue Firefox
Double Click Element doubleClickButton
Element Text Should Be output double clicked
Expand Down Expand Up @@ -40,7 +40,7 @@ Click Element Action Chain
[Tags] NoGrid
[Documentation]
... LOB 1:1 INFO Clicking 'singleClickButton' using an action chain.
... LOG 2:6 DEBUG GLOB: *actions {"actions": [{*
... LOG 1:6 DEBUG GLOB: *actions {"actions": [{*
Click Element singleClickButton action_chain=True
Element Text Should Be output single clicked

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Resource ../resource.robot

*** Test Cases ***
Click Element At Coordinates
[Documentation] LOG 2 Clicking element 'Clickable' at coordinates x=10, y=20.
[Documentation] LOG 1 Clicking element 'Clickable' at coordinates x=10, y=20.
[Tags] Known Issue Internet Explorer Known Issue Safari
Click Element At Coordinates Clickable ${10} ${20}
Element Text Should Be outputX 110
Expand Down
2 changes: 1 addition & 1 deletion atest/acceptance/keywords/click_element_modifier.robot
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Click Element Wrong Modifier
... Click Element Button Foobar

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

Expand Down
38 changes: 19 additions & 19 deletions atest/acceptance/keywords/content_assertions.robot
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Resource ../resource.robot
*** Test Cases ***
Title Should Be
[Tags] NoGrid
[Documentation] LOG 2:4 Page title is '(root)/index.html'.
[Documentation] LOG 1:4 Page title is '(root)/index.html'.
Title Should Be (root)/index.html
Run Keyword And Expect Error
... Title should have been 'not a title' but was '(root)/index.html'.
Expand All @@ -20,9 +20,9 @@ Page Should Contain
[Tags] NoGrid
[Documentation] The last step fails and doesn't contain the html content.
... FAIL Page should have contained text 'non existing text' but did not.
... LOG 2:7 Current page contains text 'needle'.
... LOG 3:7 INFO Current page contains text 'This is the haystack'.
... LOG 4:14 FAIL Page should have contained text 'non existing text' but did not.
... LOG 1:7 Current page contains text 'needle'.
... LOG 2:7 INFO Current page contains text 'This is the haystack'.
... LOG 3:14 FAIL Page should have contained text 'non existing text' but did not.
Page Should Contain needle
Page Should Contain This is the haystack
Page Should Contain non existing text
Expand All @@ -41,22 +41,22 @@ Page Should Contain With Custom Log Level DEBUG
[Tags] NoGrid
[Documentation] Html content is shown at DEBUG level.
... FAIL Page should have contained text 'non existing text' but did not.
... LOG 2:14 DEBUG REGEXP: (?i)<html.*</html>
... LOG 2:15 FAIL Page should have contained text 'non existing text' but did not.
... LOG 1:14 DEBUG REGEXP: (?i)<html.*</html>
... LOG 1:15 FAIL Page should have contained text 'non existing text' but did not.
Page Should Contain non existing text DEBUG

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

Page Should Contain With Disabling Source Logging
[Documentation] LOG 3:2 NONE
[Documentation] LOG TEARDOWN:2 NONE
Set Log Level INFO
Run Keyword And Expect Error
... Page should have contained text 'non existing text' but did not.
Expand All @@ -71,20 +71,20 @@ Page Should Not Contain
[Tags] NoGrid
[Documentation] Default log level does not have html output.
... FAIL Page should not have contained text 'needle'.
... LOG 2:11 Current page does not contain text 'non existing text'.
... LOG 3:10 FAIL Page should not have contained text 'needle'.
... LOG 1:11 Current page does not contain text 'non existing text'.
... LOG 2:10 FAIL Page should not have contained text 'needle'.
Page Should Not Contain non existing text
Page Should Not Contain needle

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

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

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

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

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

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

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

TextField Value Should Be
[Tags] NoGrid
[Documentation] LOG 2:10 Content of text field 'name' is ''.
[Documentation] LOG 1:10 Content of text field 'name' is ''.
[Setup] Go To Page "forms/email_form.html"
textfield Value Should Be name ${EMPTY}
Input Text name my name
Expand Down
2 changes: 1 addition & 1 deletion atest/acceptance/keywords/cookies.robot
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Test Get Cookie Object Value
Test Get Cookie Keyword Logging
[Tags] NoGrid
[Documentation]
... LOG 2:4 ${cookie} = name=another
... LOG 1:4 ${cookie} = name=another
... value=value
... path=/
... domain=localhost
Expand Down
10 changes: 5 additions & 5 deletions atest/acceptance/keywords/counting_elements.robot
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ Page Should Contain Element When Limit Is None

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

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

Expand All @@ -64,9 +64,9 @@ Page Should Contain Element When Error With Limit And Different Loglevels
[Tags] NoGrid
[Documentation] Only at DEBUG loglevel is the html placed in the log.
... FAIL Page should have contained "99" element(s), but it did contain "2" element(s).
... LOG 2.1:7 FAIL Page should have contained "99" element(s), but it did contain "2" element(s).
... LOG 3:7 DEBUG REGEXP: .*links\\.html.*
... LOG 3:8 FAIL Page should have contained "99" element(s), but it did contain "2" element(s).
... LOG 1.1:7 FAIL Page should have contained "99" element(s), but it did contain "2" element(s).
... LOG 2:7 DEBUG REGEXP: .*links\\.html.*
... LOG 2:8 FAIL Page should have contained "99" element(s), but it did contain "2" element(s).
[Setup] Go To Page "links.html"
Run Keyword And Ignore Error
... Page Should Contain Element name: div_name limit=99
Expand Down
4 changes: 2 additions & 2 deletions atest/acceptance/keywords/forms_and_buttons.robot
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ${FORM SUBMITTED} forms/submit.html

*** Test Cases ***
Submit Form
[Documentation] LOG 2 Submitting form 'form_name'.
[Documentation] LOG 1 Submitting form 'form_name'.
Submit Form form_name
Verify Location Is "${FORM SUBMITTED}"

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

Click Ok Button By Name
[Documentation] LOG 2 Clicking button 'ok_button'.
[Documentation] LOG 1 Clicking button 'ok_button'.
Click Button ok_button
Verify Location Is "${FORM SUBMITTED}"

Expand Down
2 changes: 1 addition & 1 deletion atest/acceptance/keywords/frames.robot
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Page Should Contain Text Within Frames should also work with iframes
Page Should Contain Links

Select And Unselect Frame
[Documentation] LOG 2 Selecting frame 'left'.
[Documentation] LOG 1 Selecting frame 'left'.
Select Frame left
Click Link foo
Unselect Frame
Expand Down
Loading

0 comments on commit 489178c

Please sign in to comment.