• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 43. Creating Functional Doc Tests > Setting Up the Zope 3 Environment

Setting Up the Zope 3 Environment

The best way to run a recording session is to have a clean ZODB. Therefore, you need to save your old Data.fs as Data.fs.orig and remove Data.fs. This way, you'll start at the same position as the functional testing framework. Also, the functional tests know about only one user, with login mgr and the password mgrpw. The user has the zope.Manager role. You need to set up this user if you want to be able to access all screens. You can easily add the user by placing the following two directives in principals.zcml:

01 <principal
02     id="zope.mgr"
03     title="Manager"
04     login="mgr"
05     password="mgrpw" />
06
07 <grant role="zope.Manager" principal="zope.mgr" />


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint