You are here: Home Plone products Products.PloneTestCase

Products.PloneTestCase (0.9.13)

2
by Ihor Berehulyak last modified 2011-01-05
0.0
0.0
0.0
0.0
Released on 2011-01-03 by Stefan H. Holek for Plone 2.0, Plone 2.1, Plone 2.5, Plone 3.0, Plone 3.1, Plone 3.2, Plone 3.3, Plone 4.0 under GPL - GNU General Public License available for All platforms.
Software development stage: stable
PloneTestCase sits on top of the ZopeTestCase package. It has been developed to simplify testing of Plone and Plone-based applications and products.

The PloneTestCase package provides

  • The function installProduct to install a Zope product into the test environment.

  • The function installPackage to install a Python package registered via five:registerPackage into the test environment. Requires Zope 2.10.4 or higher.

  • The function setupPloneSite to create a Plone portal in the test db.

    Note: setupPloneSite accepts an optional products argument, which allows you to specify a list of products that will be added to the portal using the quickinstaller tool. Since 0.8.2 you can also pass an extension_profiles argument to import GS extension profiles.

  • The class PloneTestCase of which to derive your test cases.

  • The class FunctionalTestCase of which to derive your test cases for functional unit testing.

  • The classes Sandboxed and Functional to mix-in with your own test cases.

  • The constants portal_name, portal_owner, default_policy, default_products, default_base_profile, default_extension_profiles, default_user, and default_password.

  • The constant PLONE21 which evaluates to true for Plone versions >= 2.1.

  • The constant PLONE25 which evaluates to true for Plone versions >= 2.5.

  • The constant PLONE30 which evaluates to true for Plone versions >= 3.0.

  • The constant PLONE31 which evaluates to true for Plone versions >= 3.1.

  • The constant PLONE32 which evaluates to true for Plone versions >= 3.2.

  • The constant PLONE33 which evaluates to true for Plone versions >= 3.3.

  • The constant PLONE40 which evaluates to true for Plone versions >= 4.0.

  • The constant PLONE50 which evaluates to true for Plone versions >= 5.0.

  • The module utils which contains all utility functions from the ZopeTestCase package.

Document Actions
Powered by Plone