Last active
December 25, 2015 00:29
-
-
Save datakurre/6887907 to your computer and use it in GitHub Desktop.
Minimal p.a.robotframework configuration for capturing @@widgets-demo
This file contains hidden or 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
[buildout] | |
extends = http://dist.plone.org/release/4.3-latest/versions.cfg | |
parts = robot | |
versions = versions | |
[robot] | |
recipe = zc.recipe.egg | |
eggs = | |
plone.app.widgets | |
plone.app.robotframework | |
robotframework-selenium2screenshots | |
scripts = | |
pybot | |
extra-paths = ${buildout:directory}/fixtures.py | |
[versions] | |
plone.app.jquery = 1.8.3 | |
plone.app.vocabularies = 2.1.11 |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
from plone.app.widgets.testing import PloneAppWidgetsLayer | |
from plone.app.testing import FunctionalTesting | |
from plone.testing import z2 | |
class PloneAppWidgetsDemoLayer(PloneAppWidgetsLayer): | |
def setUpZope(self, app, configurationContext): | |
super(PloneAppWidgetsDemoLayer, self).setUpZope( | |
app, configurationContext) | |
import plone.app.widgets.demos | |
self.loadZCML(package=plone.app.widgets.demos) | |
PLONEAPPWIDGETS_DEMO_FIXTURE = PloneAppWidgetsDemoLayer() | |
PLONEAPPWIDGETS_DEMO_ACCEPTANCE_TESTING = FunctionalTesting( | |
bases=(PLONEAPPWIDGETS_DEMO_FIXTURE, z2.ZSERVER_FIXTURE), | |
name="PloneAppWidgetsDemoLayer:Acceptance") |
This file contains hidden or 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
*** Settings *** | |
Resource plone/app/robotframework/server.robot | |
Resource Selenium2Screenshots/keywords.robot | |
Suite Setup Run keyword Setup Plone site | |
... fixtures.PLONEAPPWIDGETS_DEMO_ACCEPTANCE_TESTING | |
Suite Teardown Teardown Plone Site | |
*** Keywords *** | |
Capture widget screenshot | |
[Arguments] ${id} | |
Update element style ${id} margin 2em | |
Capture and crop page screenshot ${id}.png ${id} | |
*** Test Cases *** | |
Show Plone App Widgets | |
Go to ${PLONE_URL}/@@widgets-demo | |
Capture widget screenshot formfield-form-widgets-textLine | |
Capture widget screenshot formfield-form-widgets-asciiLine | |
Capture widget screenshot formfield-form-widgets-text | |
Capture widget screenshot formfield-form-widgets-password | |
Capture widget screenshot formfield-form-widgets-uri | |
Capture widget screenshot formfield-form-widgets-date | |
Capture widget screenshot formfield-form-widgets-dateTime | |
Capture widget screenshot formfield-form-widgets-time | |
Capture widget screenshot formfield-form-widgets-multiChoiceOrderedList | |
Capture widget screenshot formfield-form-widgets-multiChoiceCheckbox | |
Capture widget screenshot formfield-form-widgets-multiChoiceOne | |
Capture widget screenshot formfield-form-widgets-radioButton | |
Capture widget screenshot formfield-form-widgets-intField | |
Capture widget screenshot formfield-form-widgets-floatField | |
Capture widget screenshot formfield-form-widgets-boolField | |
Capture widget screenshot formfield-form-widgets-boolField2 | |
# Import library Dialogs | |
# Pause execution | |
Author
datakurre
commented
Oct 8, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment