Back to index

plone3  3.1.7
get_cmfeditions_ftests.py
Go to the documentation of this file.
00001 ## Script (Python) "get_cmfeditions_ftests"
00002 ##bind container=container
00003 ##bind context=context
00004 ##bind namespace=
00005 ##bind script=script
00006 ##bind subpath=traverse_subpath
00007 ##parameters=
00008 ##title=get cmfeditions ftests
00009 ##
00010 selenium = context.portal_selenium
00011 suite = selenium.getSuite()
00012 target_language='en'
00013 suite.setTargetLanguage(target_language)
00014 
00015 selenium.addUser(id = 'sampleadmin',fullname='Sample Admin',roles=['Member', 'Manager',])
00016 
00017 # 1
00018 test_logout = suite.TestLogout()
00019 test_admin_login  = suite.TestLoginPortlet('admin')
00020 
00021 suite.addTests("CMFEditions",
00022           'Login as Sample Admin',
00023           test_logout,
00024           test_admin_login,
00025           "check versions tab",
00026           suite.open('/index_html'),
00027           suite.verifyTextPresent("versions"),
00028          )
00029 
00030 return suite