Skip to content

Commit

Permalink
Use the 'Plone test setup' and 'Plone test teardown' keywords.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rotonen committed May 11, 2019
1 parent ba66a43 commit 090d6fe
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 30 deletions.
13 changes: 7 additions & 6 deletions docs/source/happy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ For example, a ``test_hello.robot`` :
Force Tags wip-not_in_docs
Resource plone/app/robotframework/selenium.robot
Test Setup Open test browser
Test Teardown Close all browsers
Test Setup Plone test setup
Test Teardown Plone test teardown
*** Test Cases ***
Expand Down Expand Up @@ -167,12 +167,13 @@ Here is a more complicated example with some user keywords in action:
Force Tags wip-not_in_docs
Resource plone/app/robotframework/saucelabs.robot
Resource plone/app/robotframework/selenium.robot
Library Remote ${PLONE_URL}/RobotRemote
Test Setup Open test browser
Test Teardown Close all browsers
Test Setup Plone test setup
Test Teardown Plone test teardown
*** Variables ***
Expand Down Expand Up @@ -378,8 +379,8 @@ what to do next:
Library Remote ${PLONE_URL}/RobotRemote
Test Setup Open test browser
Test Teardown Close all browsers
Test Setup Plone test setup
Test Teardown Plone test teardown
*** Test Cases ***
Expand Down
3 changes: 3 additions & 0 deletions news/110.bugfix
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@

- Removed the legacy keyword ``Refresh JS/CSS resources``.
[Rotonen]

- Use the 'Plone test setup' and 'Plone test teardown' keywords in the Robot tests.
[Rotonen]
5 changes: 3 additions & 2 deletions src/plone/app/robotframework/tests/docs/test_hello.robot
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

Force Tags wip-not_in_docs

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

Test Setup Open test browser
Test Teardown Close all browsers
Test Setup Run keywords Plone test setup
Test Teardown Run keywords Plone test teardown

*** Test Cases ***

Expand Down
5 changes: 3 additions & 2 deletions src/plone/app/robotframework/tests/docs/test_keywords.robot
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@

Force Tags wip-not_in_docs

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

Library Remote ${PLONE_URL}/RobotRemote

Test Setup Open test browser
Test Teardown Close all browsers
Test Setup Run keywords Plone test setup
Test Teardown Run keywords Plone test teardown

*** Variables ***

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
*** Settings ***

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

Library Remote ${PLONE_URL}/RobotRemote

Test Setup Run keywords Open SauceLabs test browser
Test Teardown Run keywords Report test status Close all browsers
Test Setup Run keywords Plone test setup
Test Teardown Run keywords Plone test teardown

*** Test Cases ***

Expand Down
6 changes: 3 additions & 3 deletions src/plone/app/robotframework/tests/test_content_library.robot
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
*** Settings ***

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

Library Remote ${PLONE_URL}/RobotRemote

Test Setup Open SauceLabs test browser
Test Teardown Run keywords Report test status Close all browsers
Test Setup Run keywords Plone test setup
Test Teardown Run keywords Plone test teardown

*** Test Cases ***

Expand Down
6 changes: 3 additions & 3 deletions src/plone/app/robotframework/tests/test_i18n_library.robot
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
*** Settings ***

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

Library Remote ${PLONE_URL}/RobotRemote

Test Setup Open SauceLabs test browser
Test Teardown Run keywords Report test status Close all browsers
Test Setup Run keywords Plone test setup
Test Teardown Run keywords Plone test teardown

*** Test Cases ***

Expand Down
6 changes: 3 additions & 3 deletions src/plone/app/robotframework/tests/test_robotfixture.robot
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
*** Settings ***

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

Library Remote ${PLONE_URL}/RobotRemote

Test Setup Open SauceLabs test browser
Test Teardown Run keywords Report test status Close all browsers
Test Setup Run keywords Plone test setup
Test Teardown Run keywords Plone test teardown

*** Test Cases ***

Expand Down
6 changes: 3 additions & 3 deletions src/plone/app/robotframework/tests/test_speakjs_library.robot
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
*** Settings ***

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

Library Remote ${PLONE_URL}/RobotRemote

Test Setup Open SauceLabs test browser
Test Teardown Run keywords Report test status Close all browsers
Test Setup Run keywords Plone test setup
Test Teardown Run keywords Plone test teardown

*** Keywords ***

Expand Down
10 changes: 5 additions & 5 deletions src/plone/app/robotframework/tests/test_users_library.robot
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
*** Settings ***

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

Library Remote ${PLONE_URL}/RobotRemote

Test Setup Open SauceLabs test browser
Test Teardown Run keywords Report test status Close all browsers
Test Setup Run keywords Plone test setup
Test Teardown Run keywords Plone test teardown

*** Test Cases ***

Expand All @@ -26,7 +26,7 @@ Test user creation with roles as args
Disable autologin
Log in siteadmin siteadmin
Go to homepage

Page should contain siteadmin
Page should contain Manage portlets

Expand All @@ -36,6 +36,6 @@ Test user creation with roles as kwarg
Create user siteadmin roles=@{roles}
Log in siteadmin siteadmin
Go to homepage

Page should contain siteadmin
Page should contain Manage portlets

0 comments on commit 090d6fe

Please sign in to comment.