Back to index

plone3  3.1.7
Public Member Functions | Public Attributes Class Reference
Inheritance diagram for
Inheritance graph
Collaboration diagram for
Collaboration graph

List of all members.

Public Member Functions

def afterSetUp
def loginAsManager

Public Attributes


Detailed Description

base test case with convenience methods for all control panel tests

Definition at line 12 of file

Member Function Documentation

Definition at line 15 of file

00016     def afterSetUp(self):
00017         super(ControlPanelTestCase, self).afterSetUp()
00019         self.browser = Browser()
00021         self.uf = self.portal.acl_users
00022         self.uf.userFolderAddUser('root', 'secret', ['Manager'], [])
00024         self.ptool = getToolByName(self.portal, 'portal_properties')
00025         self.site_props = self.ptool.site_properties

def (   self,
  user = 'root',
  pwd = 'secret' 
points the browser to the login screen and logs in as user root with Manager role.

Definition at line 26 of file

00027     def loginAsManager(self, user='root', pwd='secret'):
00028         """points the browser to the login screen and logs in as user root with Manager role."""
00030         self.browser.getLink('Log in').click()
00031         self.browser.getControl('Login Name').value = user
00032         self.browser.getControl('Password').value = pwd
00033         self.browser.getControl('Log in').click()

Member Data Documentation

Definition at line 18 of file

Definition at line 23 of file

Definition at line 24 of file

Definition at line 20 of file

The documentation for this class was generated from the following file: