-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add example acceptance tests for IFTTT control panel
- Loading branch information
Showing
18 changed files
with
245 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,3 +39,4 @@ report.html | |
Pipfile | ||
.DS_Store | ||
docs/_build/ | ||
selenium-screenshot*.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# ============================================================================ | ||
# ROBOT SCREENSHOTS | ||
# ============================================================================ | ||
# | ||
# Update screenshots from the project root directory by running | ||
# | ||
# $ ./bin/pybot -v SCREENSHOTS:true docs/_screenshots | ||
# | ||
# Add and commit the updated screenshots into git repository and use them | ||
# in the package Sphinx documentation as any other image files. | ||
# | ||
# Add new screenshots by writing new acceptance tests / test suites into | ||
# ./src/collective/ifttt/tests/robot, follow the existing examples and | ||
# symlink the .robot files into this directory to include their screenshots. | ||
# | ||
# ============================================================================ | ||
|
||
*** Settings *** | ||
|
||
Library plone.app.robotframework.Zope2Server | ||
|
||
Suite Setup Suite Setup | ||
Suite Teardown Suite Teardown | ||
|
||
Test Setup Test Setup | ||
Test Teardown Test Teardown | ||
|
||
*** Variables *** | ||
|
||
${FIXTURE} collective.ifttt.testing.COLLECTIVE_IFTTT_ACCEPTANCE_TESTING | ||
|
||
*** Keywords *** | ||
|
||
Suite Setup | ||
Start Zope server ${FIXTURE} | ||
|
||
Suite Teardown | ||
Stop Zope server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../src/collective/ifttt/tests/robot/keywords.robot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../src/collective/ifttt/tests/robot/test_controlpanel.robot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../src/collective/ifttt/tests/robot/test_example.robot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
<?xml version="1.0"?> | ||
<rolemap> | ||
<permissions> | ||
<!-- -*- extra stuff goes here -*- --> | ||
|
||
<permission name="Plone Site Setup: IFTTT" acquire="False"> | ||
<role name="Manager"/> | ||
<role name="Site Administrator"/> | ||
</permission> | ||
</permissions> | ||
</rolemap> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
*** Settings *** | ||
|
||
Library SeleniumLibrary timeout=30 implicit_wait=0 | ||
|
||
*** Variables *** | ||
|
||
${FIXTURE} collective.ifttt.testing.COLLECTIVE_IFTTT_ACCEPTANCE_TESTING | ||
${BROWSER} firefox | ||
|
||
*** Keywords *** | ||
|
||
### Test Setup and Test Teardown are only called when robot tests are run for | ||
### the whole directory (see: ./__init__.robot). These keyword import | ||
### Zope2Server library to make it possible to run individual test case | ||
### files without Zope2Server in PYTHONPATH of pybot test runner. | ||
|
||
Test Setup | ||
Import library plone.app.robotframework.Zope2Server | ||
Set Zope layer ${FIXTURE} | ||
ZODB Setup | ||
Open default browser | ||
Set window size 1200 900 | ||
|
||
Test Teardown | ||
Import library plone.app.robotframework.Zope2Server | ||
Set Zope layer ${FIXTURE} | ||
ZODB TearDown | ||
Close all browsers | ||
|
||
### |
Oops, something went wrong.