Skip to content

Commit

Permalink
Use the shared test setup and test teardown keywords in Robot tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rotonen committed May 14, 2019
1 parent ce151fc commit 08aa2c3
Show file tree
Hide file tree
Showing 25 changed files with 74 additions and 53 deletions.
6 changes: 3 additions & 3 deletions Products/CMFPlone/tests/robot/test_actionmenu.robot
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

Resource plone/app/robotframework/keywords.robot
Resource plone/app/robotframework/saucelabs.robot
Resource plone/app/robotframework/selenium.robot

Library Remote ${PLONE_URL}/RobotRemote

Resource keywords.robot

Test Setup Run keywords Plone Test Setup
Test Teardown Run keywords Plone Test Teardown
Test Setup Run Keywords Plone test setup
Test Teardown Run keywords Plone test teardown


*** Variables ****************************************************************
Expand Down Expand Up @@ -195,4 +196,3 @@ first menu should not be visible
actions menu should not be visible
Given patterns are loaded
Wait until keyword succeeds 10s 1s Element Should Not Be Visible xpath=//li[@id='plone-contentmenu-actions-delete']

4 changes: 2 additions & 2 deletions Products/CMFPlone/tests/robot/test_controlpanel_actions.robot
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Library Remote ${PLONE_URL}/RobotRemote

Resource keywords.robot

Test Setup Run keywords Open SauceLabs test browser
Test Teardown Run keywords Plone Test Teardown
Test Setup Run Keywords Plone test setup
Test Teardown Run keywords Plone test teardown


*** Test Cases ***************************************************************
Expand Down
5 changes: 3 additions & 2 deletions Products/CMFPlone/tests/robot/test_controlpanel_editing.robot
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

Resource plone/app/robotframework/keywords.robot
Resource plone/app/robotframework/saucelabs.robot
Resource plone/app/robotframework/selenium.robot

Library Remote ${PLONE_URL}/RobotRemote

Resource keywords.robot

Test Setup Run keywords Plone Test Setup
Test Teardown Run keywords Plone Test Teardown
Test Setup Run Keywords Plone test setup
Test Teardown Run keywords Plone test teardown


*** Test Cases ***************************************************************
Expand Down
5 changes: 3 additions & 2 deletions Products/CMFPlone/tests/robot/test_controlpanel_filter.robot
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@

Resource plone/app/robotframework/keywords.robot
Resource plone/app/robotframework/saucelabs.robot
Resource plone/app/robotframework/selenium.robot

Library Remote ${PLONE_URL}/RobotRemote
Library Collections

Resource keywords.robot

Test Setup Run keywords Plone Test Setup
Test Teardown Run keywords Plone Test Teardown
Test Setup Run Keywords Plone test setup
Test Teardown Run keywords Plone test teardown


*** Test Cases ***************************************************************
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

Resource plone/app/robotframework/keywords.robot
Resource plone/app/robotframework/saucelabs.robot
Resource plone/app/robotframework/selenium.robot

Library Remote ${PLONE_URL}/RobotRemote

Resource keywords.robot

Test Setup Run keywords Plone Test Setup
Test Teardown Run keywords Plone Test Teardown
Test Setup Run Keywords Plone test setup
Test Teardown Run keywords Plone test teardown


*** Test Cases ***************************************************************
Expand Down
5 changes: 3 additions & 2 deletions Products/CMFPlone/tests/robot/test_controlpanel_markup.robot
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ Documentation

Resource plone/app/robotframework/keywords.robot
Resource plone/app/robotframework/saucelabs.robot
Resource plone/app/robotframework/selenium.robot

Library Remote ${PLONE_URL}/RobotRemote

Resource keywords.robot

Test Setup Run keywords Plone Test Setup
Test Teardown Run keywords Plone Test Teardown
Test Setup Run Keywords Plone test setup
Test Teardown Run keywords Plone test teardown


*** Test Cases ***************************************************************
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

Resource plone/app/robotframework/keywords.robot
Resource plone/app/robotframework/saucelabs.robot
Resource plone/app/robotframework/selenium.robot

Library Remote ${PLONE_URL}/RobotRemote

Resource keywords.robot

Test Setup Run keywords Plone Test Setup
Test Teardown Run keywords Plone Test Teardown
Test Setup Run Keywords Plone test setup
Test Teardown Run keywords Plone test teardown


*** Test Cases ***************************************************************
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

Resource plone/app/robotframework/keywords.robot
Resource plone/app/robotframework/saucelabs.robot
Resource plone/app/robotframework/selenium.robot

Library Remote ${PLONE_URL}/RobotRemote

Resource keywords.robot

Test Setup Run keywords Plone Test Setup
Test Teardown Run keywords Plone Test Teardown
Test Setup Run Keywords Plone test setup
Test Teardown Run keywords Plone test teardown


*** Test Cases ***************************************************************
Expand Down
7 changes: 3 additions & 4 deletions Products/CMFPlone/tests/robot/test_controlpanel_search.robot
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

Resource plone/app/robotframework/keywords.robot
Resource plone/app/robotframework/saucelabs.robot
Resource plone/app/robotframework/selenium.robot

Library Remote ${PLONE_URL}/RobotRemote

Resource keywords.robot

Test Setup Run keywords Plone Test Setup
Test Teardown Run keywords Plone Test Teardown
Test Setup Run Keywords Plone test setup
Test Teardown Run keywords Plone test teardown


*** Test Cases ***************************************************************
Expand Down Expand Up @@ -75,5 +76,3 @@ searching for '${search_term}' will not return any results
Submit Form name=searchform
Wait until page contains items matching your search terms
XPath Should Match X Times //strong[@id='search-results-number' and contains(.,'0')] 1


Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Library Remote ${PLONE_URL}/RobotRemote

Resource keywords.robot

Test Setup Run keywords Plone Test Setup
Test Teardown Run keywords Plone Test Teardown
Test Setup Run Keywords Plone test setup
Test Teardown Run keywords Plone test teardown


*** Test Cases ***************************************************************
Expand Down
5 changes: 3 additions & 2 deletions Products/CMFPlone/tests/robot/test_controlpanel_site.robot
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ Documentation

Resource plone/app/robotframework/keywords.robot
Resource plone/app/robotframework/saucelabs.robot
Resource plone/app/robotframework/selenium.robot
Variables Products/CMFPlone/tests/robot/variables.py

Library Remote ${PLONE_URL}/RobotRemote

Resource keywords.robot

Test Setup Run keywords Plone Test Setup
Test Teardown Run keywords Plone Test Teardown
Test Setup Run Keywords Plone test setup
Test Teardown Run keywords Plone test teardown


*** Test Cases ***************************************************************
Expand Down
5 changes: 3 additions & 2 deletions Products/CMFPlone/tests/robot/test_controlpanel_social.robot
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

Resource plone/app/robotframework/keywords.robot
Resource plone/app/robotframework/saucelabs.robot
Resource plone/app/robotframework/selenium.robot

Library Remote ${PLONE_URL}/RobotRemote

Resource keywords.robot

Test Setup Run keywords Plone Test Setup
Test Teardown Run keywords Plone Test Teardown
Test Setup Run Keywords Plone test setup
Test Teardown Run keywords Plone test teardown


*** Test Cases ***************************************************************
Expand Down
5 changes: 3 additions & 2 deletions Products/CMFPlone/tests/robot/test_controlpanel_types.robot
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

Resource plone/app/robotframework/keywords.robot
Resource plone/app/robotframework/saucelabs.robot
Resource plone/app/robotframework/selenium.robot

Library Remote ${PLONE_URL}/RobotRemote

Resource keywords.robot

Test Setup Run keywords Plone Test Setup
Test Teardown Run keywords Plone Test Teardown
Test Setup Run Keywords Plone test setup
Test Teardown Run keywords Plone test teardown


*** Test Cases ***************************************************************
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@

Resource plone/app/robotframework/keywords.robot
Resource plone/app/robotframework/saucelabs.robot
Resource plone/app/robotframework/selenium.robot

Library Remote ${PLONE_URL}/RobotRemote

Resource keywords.robot

Test Setup Run keywords Plone Test Setup
Test Teardown Run keywords Plone Test Teardown
Test Setup Run Keywords Plone test setup
Test Teardown Run keywords Plone test teardown


*** Test Cases ***************************************************************
Expand Down
5 changes: 3 additions & 2 deletions Products/CMFPlone/tests/robot/test_edit.robot
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

Resource plone/app/robotframework/keywords.robot
Resource plone/app/robotframework/saucelabs.robot
Resource plone/app/robotframework/selenium.robot

Library Remote ${PLONE_URL}/RobotRemote

Resource keywords.robot

Test Setup Run keywords Plone Test Setup
Test Teardown Run keywords Plone Test Teardown
Test Setup Run Keywords Plone test setup
Test Teardown Run keywords Plone test teardown


*** Variables ****************************************************************
Expand Down
5 changes: 3 additions & 2 deletions Products/CMFPlone/tests/robot/test_edit_user_schema.robot
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@

Resource plone/app/robotframework/keywords.robot
Resource plone/app/robotframework/saucelabs.robot
Resource plone/app/robotframework/selenium.robot

Library Remote ${PLONE_URL}/RobotRemote

Resource keywords.robot

Test Setup Run keywords Plone Test Setup
Test Teardown Run keywords Plone Test Teardown
Test Setup Run Keywords Plone test setup
Test Teardown Run keywords Plone test teardown


*** Test Cases ***************************************************************
Expand Down
5 changes: 3 additions & 2 deletions Products/CMFPlone/tests/robot/test_folder_contents.robot
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

Resource plone/app/robotframework/keywords.robot
Resource plone/app/robotframework/saucelabs.robot
Resource plone/app/robotframework/selenium.robot

Library Remote ${PLONE_URL}/RobotRemote

Resource keywords.robot

Test Setup Run keywords Plone Test Setup
Test Teardown Run keywords Plone Test Teardown
Test Setup Run Keywords Plone test setup
Test Teardown Run keywords Plone test teardown


*** Test cases ***************************************************************
Expand Down
6 changes: 3 additions & 3 deletions Products/CMFPlone/tests/robot/test_linkintegrity.robot
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@

Resource plone/app/robotframework/keywords.robot
Resource plone/app/robotframework/saucelabs.robot
Resource plone/app/robotframework/selenium.robot

Library Remote ${PLONE_URL}/RobotRemote

Resource keywords.robot

# Suite setup Set Selenium speed 0.5s
Test Setup Run keywords Plone Test Setup
Test Teardown Run keywords Plone Test Teardown
Test Setup Run Keywords Plone test setup
Test Teardown Run keywords Plone test teardown


*** Test Cases ***************************************************************
Expand Down
5 changes: 3 additions & 2 deletions Products/CMFPlone/tests/robot/test_livesearch.robot
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

Resource plone/app/robotframework/keywords.robot
Resource plone/app/robotframework/saucelabs.robot
Resource plone/app/robotframework/selenium.robot

Library Remote ${PLONE_URL}/RobotRemote

Resource keywords.robot

Test Setup Run keywords Plone Test Setup
Test Teardown Run keywords Plone Test Teardown
Test Setup Run Keywords Plone test setup
Test Teardown Run keywords Plone test teardown


*** Test cases ***************************************************************
Expand Down
5 changes: 3 additions & 2 deletions Products/CMFPlone/tests/robot/test_overlays.robot
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ Documentation These tests are just testing the overlay behavior not the
Resource plone/app/robotframework/keywords.robot
Resource plone/app/robotframework/saucelabs.robot
Resource plone/app/robotframework/selenium.robot

Library Remote ${PLONE_URL}/RobotRemote

Resource common.robot

Test Setup Run keywords Plone Test Setup Background
Test Teardown Run keywords Plone Test Teardown
Test Setup Run Keywords Plone test setup
Test Teardown Run keywords Plone test teardown


*** Test cases ***
Expand Down
5 changes: 3 additions & 2 deletions Products/CMFPlone/tests/robot/test_portlets.robot
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

Resource plone/app/robotframework/keywords.robot
Resource plone/app/robotframework/saucelabs.robot
Resource plone/app/robotframework/selenium.robot

Library Remote ${PLONE_URL}/RobotRemote

Resource keywords.robot

Test Setup Run keywords Plone Test Setup
Test Teardown Run keywords Plone Test Teardown
Test Setup Run Keywords Plone test setup
Test Teardown Run keywords Plone test teardown


*** Test cases ***************************************************************
Expand Down
7 changes: 4 additions & 3 deletions Products/CMFPlone/tests/robot/test_querystring.robot
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

Resource plone/app/robotframework/keywords.robot
Resource plone/app/robotframework/saucelabs.robot
Resource plone/app/robotframework/selenium.robot

Library Remote ${PLONE_URL}/RobotRemote

Resource keywords.robot

Test Setup Run keywords Plone Test Setup
Test Teardown Run keywords Plone Test Teardown
Test Setup Run Keywords Plone test setup
Test Teardown Run keywords Plone test teardown

*** Test Cases **************************************************************

Expand Down Expand Up @@ -346,4 +347,4 @@ mark results
Execute Javascript $("dl.searchResults").attr("marker", "marked")

wait until result is no longer marked
Wait for condition return $("dl.searchResults").length > 0 && $("dl.searchResults").attr("marker") != "marked"
Wait for condition return $("dl.searchResults").length > 0 && $("dl.searchResults").attr("marker") != "marked"
5 changes: 3 additions & 2 deletions Products/CMFPlone/tests/robot/test_thememapper.robot
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

Resource plone/app/robotframework/keywords.robot
Resource plone/app/robotframework/saucelabs.robot
Resource plone/app/robotframework/selenium.robot

Library Remote ${PLONE_URL}/RobotRemote

Resource keywords.robot

Test Setup Run keywords Plone Test Setup
Test Teardown Run keywords Plone Test Teardown
Test Setup Run Keywords Plone test setup
Test Teardown Run keywords Plone test teardown

*** Variables ***

Expand Down
Loading

0 comments on commit 08aa2c3

Please sign in to comment.