[Zope3-checkins] SVN: Zope3/branches/testbrowser-integration/
Changed the setup, so that the ftests directory is registered as a
Stephan Richter
srichter at cosmos.phy.tufts.edu
Wed Jul 27 13:12:39 EDT 2005
Log message for revision 37494:
Changed the setup, so that the ftests directory is registered as a
resource directory. Now we can provide a wide range of resources to test
the test browser.
Changed:
A Zope3/branches/testbrowser-integration/package-includes/testbrowser-ftesting.zcml
U Zope3/branches/testbrowser-integration/src/zope/app/testing/testbrowser/README.txt
A Zope3/branches/testbrowser-integration/src/zope/app/testing/testbrowser/ftests/__init__.py
A Zope3/branches/testbrowser-integration/src/zope/app/testing/testbrowser/ftests/ftesting.zcml
A Zope3/branches/testbrowser-integration/src/zope/app/testing/testbrowser/ftests/simple.html
U Zope3/branches/testbrowser-integration/src/zope/app/testing/testbrowser/ftests/testdoc.py
-=-
Added: Zope3/branches/testbrowser-integration/package-includes/testbrowser-ftesting.zcml
===================================================================
--- Zope3/branches/testbrowser-integration/package-includes/testbrowser-ftesting.zcml 2005-07-27 16:58:41 UTC (rev 37493)
+++ Zope3/branches/testbrowser-integration/package-includes/testbrowser-ftesting.zcml 2005-07-27 17:12:39 UTC (rev 37494)
@@ -0,0 +1 @@
+<include package="zope.app.testing.testbrowser.ftests" file="ftesting.zcml" />
\ No newline at end of file
Property changes on: Zope3/branches/testbrowser-integration/package-includes/testbrowser-ftesting.zcml
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: Zope3/branches/testbrowser-integration/src/zope/app/testing/testbrowser/README.txt
===================================================================
--- Zope3/branches/testbrowser-integration/src/zope/app/testing/testbrowser/README.txt 2005-07-27 16:58:41 UTC (rev 37493)
+++ Zope3/branches/testbrowser-integration/src/zope/app/testing/testbrowser/README.txt 2005-07-27 17:12:39 UTC (rev 37494)
@@ -11,9 +11,9 @@
The browser can `open` web pages:
- >>> browser.open('http://localhost/++etc++site/default')
+ >>> browser.open('http://localhost/@@/testbrowser/simple.html')
>>> browser.url
- 'http://localhost/++etc++site/default'
+ 'http://localhost/@@/testbrowser/simple.html'
Page Contents
@@ -22,13 +22,20 @@
The contents of the current page are available:
>>> print browser.contents
- <...
- <html...>
- <body...>
- ...
+ <html>
+ <head>
+ <title>Simple Page</title>
+ </head>
+ <body>
+ <h1>Simple Page</h1>
+ </body>
+ </html>
+ <BLANKLINE>
Making assertions about page contents are easy.
+ >>> browser.open('http://localhost/++etc++site/default')
+
>>> '<a href="RootErrorReportingUtility">' in browser.contents
True
Added: Zope3/branches/testbrowser-integration/src/zope/app/testing/testbrowser/ftests/__init__.py
===================================================================
--- Zope3/branches/testbrowser-integration/src/zope/app/testing/testbrowser/ftests/__init__.py 2005-07-27 16:58:41 UTC (rev 37493)
+++ Zope3/branches/testbrowser-integration/src/zope/app/testing/testbrowser/ftests/__init__.py 2005-07-27 17:12:39 UTC (rev 37494)
@@ -0,0 +1 @@
+# Make a package.
Property changes on: Zope3/branches/testbrowser-integration/src/zope/app/testing/testbrowser/ftests/__init__.py
___________________________________________________________________
Name: svn:eol-style
+ native
Added: Zope3/branches/testbrowser-integration/src/zope/app/testing/testbrowser/ftests/ftesting.zcml
===================================================================
--- Zope3/branches/testbrowser-integration/src/zope/app/testing/testbrowser/ftests/ftesting.zcml 2005-07-27 16:58:41 UTC (rev 37493)
+++ Zope3/branches/testbrowser-integration/src/zope/app/testing/testbrowser/ftests/ftesting.zcml 2005-07-27 17:12:39 UTC (rev 37494)
@@ -0,0 +1,7 @@
+<configure xmlns="http://namespaces.zope.org/browser">
+
+ <resourceDirectory
+ name="testbrowser"
+ directory="." />
+
+</configure>
\ No newline at end of file
Property changes on: Zope3/branches/testbrowser-integration/src/zope/app/testing/testbrowser/ftests/ftesting.zcml
___________________________________________________________________
Name: svn:eol-style
+ native
Added: Zope3/branches/testbrowser-integration/src/zope/app/testing/testbrowser/ftests/simple.html
===================================================================
--- Zope3/branches/testbrowser-integration/src/zope/app/testing/testbrowser/ftests/simple.html 2005-07-27 16:58:41 UTC (rev 37493)
+++ Zope3/branches/testbrowser-integration/src/zope/app/testing/testbrowser/ftests/simple.html 2005-07-27 17:12:39 UTC (rev 37494)
@@ -0,0 +1,8 @@
+<html>
+ <head>
+ <title>Simple Page</title>
+ </head>
+ <body>
+ <h1>Simple Page</h1>
+ </body>
+</html>
\ No newline at end of file
Modified: Zope3/branches/testbrowser-integration/src/zope/app/testing/testbrowser/ftests/testdoc.py
===================================================================
--- Zope3/branches/testbrowser-integration/src/zope/app/testing/testbrowser/ftests/testdoc.py 2005-07-27 16:58:41 UTC (rev 37493)
+++ Zope3/branches/testbrowser-integration/src/zope/app/testing/testbrowser/ftests/testdoc.py 2005-07-27 17:12:39 UTC (rev 37494)
@@ -19,8 +19,9 @@
import unittest
from zope.app.testing.functional import FunctionalDocFileSuite
+
def test_suite():
- return FunctionalDocFileSuite('README.txt')
+ return FunctionalDocFileSuite('../README.txt')
if __name__ == '__main__':
unittest.main(defaultTest='test_suite')
More information about the Zope3-Checkins
mailing list