[Checkins] SVN: gocept.selenium/trunk/ Wrote a quick start section for packages using ZTK but using ``zope.app.wsgi.testlayer`` instead of ``zope.app.testing``.
Michael Howitz
mh at gocept.com
Wed Feb 2 14:24:05 EST 2011
Log message for revision 120058:
Wrote a quick start section for packages using ZTK but using ``zope.app.wsgi.testlayer`` instead of ``zope.app.testing``.
Changed:
U gocept.selenium/trunk/CHANGES.txt
U gocept.selenium/trunk/src/gocept/selenium/README.txt
-=-
Modified: gocept.selenium/trunk/CHANGES.txt
===================================================================
--- gocept.selenium/trunk/CHANGES.txt 2011-02-02 18:12:59 UTC (rev 120057)
+++ gocept.selenium/trunk/CHANGES.txt 2011-02-02 19:24:05 UTC (rev 120058)
@@ -6,7 +6,10 @@
- Improvements on the README.
+- Wrote a quick start section for packages using ZTK but using
+ ``zope.app.wsgi.testlayer`` instead of ``zope.app.testing``.
+
0.10 (2011-01-18)
-----------------
Modified: gocept.selenium/trunk/src/gocept/selenium/README.txt
===================================================================
--- gocept.selenium/trunk/src/gocept/selenium/README.txt 2011-02-02 18:12:59 UTC (rev 120057)
+++ gocept.selenium/trunk/src/gocept/selenium/README.txt 2011-02-02 19:24:05 UTC (rev 120058)
@@ -31,11 +31,11 @@
layer = test_layer
-Quick start with ZTK
---------------------
+Quick start with ZTK (zope.app.testing)
+---------------------------------------
-Assuming that you already have a package that uses zc.buildout and
-zope.testing, you need to do this to enable Selenium tests:
+Assuming that you already have a package that uses ``zc.buildout`` and
+``zope.app.testing``, you need to do this to enable Selenium tests:
#. Add gocept.selenium to the list of eggs either in your setup.py, or in
buildout.cfg, using the extra ``ztk``, i.e. ``gocept.selenium[ztk]``.
@@ -84,6 +84,14 @@
#. Run bin/test and see it work!
+Quick start with ZTK (zope.app.wsgi)
+------------------------------------
+
+Assuming that you already have a package that uses ``zc.buildout`` and
+``zope.app.wsgi.testlayer``, you should follow the steps described in `Quick
+start with Grok`_.
+
+
Quick start with Zope 2/Plone
-----------------------------
@@ -138,11 +146,11 @@
Selenium HTML tests conversion script
-------------------------------------
-Selenium tests can be written in HTML tables.
+Selenium tests can be written in HTML tables.
Their syntax is a bit clunky. But their development and debugging is eased a
-lot by using Selenium IDE Firefox extension.
-Selenium IDE provides both initial recording of tests and stepping through
+lot by using Selenium IDE Firefox extension.
+Selenium IDE provides both initial recording of tests and stepping through
those tests.
However, HTML tests have a main drawback : they are hard to include in a
continuous integration system.
@@ -152,7 +160,7 @@
``plone.testing``). That Python module contains a ``TestCase`` that can be included in any
``zope.testing`` test suite.
-Using the ``converthtmltests`` script, the developer can use HTML tests - written,
+Using the ``converthtmltests`` script, the developer can use HTML tests - written,
debugged and maintained with the Selenium tools -
while being able to easily include those Selenium
tests in a continuous integration system.
More information about the checkins
mailing list