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 f65a340 commit 60f25fe
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 24 deletions.
12 changes: 6 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 @@ -171,8 +171,8 @@ Here is a more complicated example with some user keywords in action:
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 +378,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]
4 changes: 2 additions & 2 deletions src/plone/app/robotframework/tests/docs/test_hello.robot
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Force Tags wip-not_in_docs

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
4 changes: 2 additions & 2 deletions src/plone/app/robotframework/tests/docs/test_keywords.robot
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ 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
Expand Up @@ -6,8 +6,8 @@ Resource plone/app/robotframework/saucelabs.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
4 changes: 2 additions & 2 deletions src/plone/app/robotframework/tests/test_content_library.robot
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Resource plone/app/robotframework/saucelabs.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
4 changes: 2 additions & 2 deletions src/plone/app/robotframework/tests/test_i18n_library.robot
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ Resource plone/app/robotframework/saucelabs.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
4 changes: 2 additions & 2 deletions src/plone/app/robotframework/tests/test_robotfixture.robot
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ Resource plone/app/robotframework/saucelabs.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
4 changes: 2 additions & 2 deletions src/plone/app/robotframework/tests/test_speakjs_library.robot
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ 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
8 changes: 4 additions & 4 deletions src/plone/app/robotframework/tests/test_users_library.robot
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ 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 60f25fe

Please sign in to comment.