.. Ross Patterson's Blog imported post, created by `$ ./bin/rfc822-to-post` on Mar 15, 2021. .. meta:: :description: collective.testcaselayer 1.2 includes some patches for functional browser testing :keywords: Plone, Zope .. post:: Aug 23, 2009 :tags: Plone, Zope :author: Ross Patterson :redirect: @@redirect-to-uuid/d2ff7d4edf1a6e2ec5b38838a3dc1a20 ################### testbrowser Patches ################### collective.testcaselayer 1.2 includes some patches for functional browser testing To use these patches, include the collective.testcaselayer configure.zcml. The patches address some bugs in Testing.ZopeTestCase. Data streamed to the response ----------------------------- Due to some behavior in Testing.ZopeTestCase.zopedoctest.functional, the testbrowser.contents was empty when data had been streamed directly into the response (as opposed to returning the data from the callable published). This made it difficult to do functional testing for code that needed to stream data to the response for performance, such as when the response data is very large and would consume too much memory. HTTP_REFERRER ------------- Due to `bug #98437 `_, "TestBrowser Referer: header set to 'localhost'", some testbrowser requests would raise NotFound. Two examples would be visiting the Plone login_form directly rather than following a link, or using the Plone content_status_history form. .. update:: Aug 23, 2009 Imported from Plone on Mar 15, 2021. The date for this update is the last modified date in Plone.