Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
dist: xenial
language: python
python: 2.7
sudo: false
addons:
sauce_connect:
username: $SAUCE_USERNAME
access_key: $SAUCE_ACCESS_KEY
sauce_connect: true
cache:
pip: true
directories:
Expand All @@ -19,6 +18,7 @@ env:
- ARTIFACTS_S3_BUCKET=plone.app.robotframework
- ROBOT_BUILD_NUMBER=travis-$TRAVIS_BUILD_NUMBER
- ROBOT_REMOTE_URL=http://$SAUCE_USERNAME:$SAUCE_ACCESS_KEY@ondemand.saucelabs.com:80/wd/hub
- ZSERVER_PORT=55001
matrix:
- ROBOT_BROWSER=firefox ROBOT_DESIRED_CAPABILITIES=tunnel-identifier:$TRAVIS_JOB_NUMBER
- ROBOT_BROWSER=chrome ROBOT_DESIRED_CAPABILITIES=tunnel-identifier:$TRAVIS_JOB_NUMBER
Expand Down
6 changes: 5 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ New features:

Bug fixes:

- *add item here*
- Stabilize tests by defaulting to a browser window size of 4K x 4K.
[Rotonen]

- Fix the travis build which is broken since we are picking a random port
(fixes #100)
[ale-rt]

1.3.1 (2018-10-31)
------------------
Expand Down
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
2 changes: 1 addition & 1 deletion src/plone/app/robotframework/selenium.robot
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Wait until location is

Plone Test Setup
Open SauceLabs test browser
Refresh JS/CSS resources
Run keyword and ignore error Set window size 4096 4096

Plone Test Teardown
Run Keyword If Test Failed ${SELENIUM_RUN_ON_FAILURE}
Expand Down
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