[Checkins] SVN: gocept.selenium/branches/janjaapdriessen-wsgi/src/gocept/selenium/README.txt Add rudimentary documentation

Wolfgang Schnerring wosc at wosc.de
Sat Dec 4 05:51:16 EST 2010


Log message for revision 118705:
  Add rudimentary documentation
  

Changed:
  U   gocept.selenium/branches/janjaapdriessen-wsgi/src/gocept/selenium/README.txt

-=-
Modified: gocept.selenium/branches/janjaapdriessen-wsgi/src/gocept/selenium/README.txt
===================================================================
--- gocept.selenium/branches/janjaapdriessen-wsgi/src/gocept/selenium/README.txt	2010-12-04 10:35:05 UTC (rev 118704)
+++ gocept.selenium/branches/janjaapdriessen-wsgi/src/gocept/selenium/README.txt	2010-12-04 10:51:14 UTC (rev 118705)
@@ -1,7 +1,8 @@
 Selenium RC integration with zope.testing
 =========================================
 
-gocept.selenium integrates Selenium RC with your Plone/Zope 2/ZTK test suite.
+gocept.selenium integrates Selenium RC with your Plone/Zope 2/ZTK/Grok test
+suite.
 
 
 Quick start with ZTK
@@ -11,7 +12,7 @@
 zope.testing, you need to do this to enable Selenium tests:
 
 1. Add gocept.selenium to the list of eggs either in your setup.py, or in
-   buildout.cfg
+   buildout.cfg, using the extra ``ztk``, i.e. ``gocept.selenium[ztk]``.
 
 2. Install Selenium RC by some means, e.g. by downloading a version from
     <http://release.seleniumhq.org/selenium-remote-control/>. We do not
@@ -60,6 +61,23 @@
 instead of gocept.selenium.ztk.
 
 
+Quick start with Grok
+---------------------
+
+The layer works a little different than in the ZTK steps above, instead of
+delegating to a (probably alredy existing functional-testing) layer, you'll
+need a separate one for the Selenium tests.
+
+1. Use the ``grok`` extra when requiring gocept.selenium.
+4. Create a layer for your tests::
+
+   import gocept.selenium.grok
+
+   selenium_layer = gocept.selenium.grok.Layer(my.package)
+
+5. Inherit from `gocept.selenium.grok.TestCase` (not ztk).
+
+
 Similar packages
 ----------------
 



More information about the checkins mailing list