[Zope3-Users] testbrowser passes but view fails
benji at zope.com
Wed Sep 27 13:10:28 EDT 2006
ksmith93940-dev at yahoo.com wrote:
> I have a situation where the functional test passes but when the page is actually viewed a ComponentLookupError is raised.
One common cause for these types of errors is differences in
configuration between the testing and production environment. Try
running zope with the testing config and see if you get the same results
when accessing the page with a real browser.
You can do that by specify which ZCML to use with the -X
site-definition=foo.zcml switch, where foo.zcml is either the top-level
ftesting.zcml or the ZCML for your test layer.
Senior Software Engineer
More information about the Zope3-users