Changeset 512
- Timestamp:
- 08/03/09 17:41:16 (3 years ago)
- Location:
- enpraxis.educommons/trunk/enpraxis/educommons/tests/seleniumtests
- Files:
-
- 2 added
- 22 modified
-
accountsLogin.py (modified) (2 diffs)
-
addNewSite.py (added)
-
addNewUsersAll.py (modified) (4 diffs)
-
admin.py (modified) (2 diffs)
-
adminSiteSetup.py (modified) (1 diff)
-
changeHeader.py (modified) (1 diff)
-
courseImport.py (modified) (1 diff)
-
createCourse.py (modified) (1 diff)
-
createDivision.py (modified) (1 diff)
-
createLink.py (modified) (2 diffs)
-
createPage.py (modified) (1 diff)
-
divisionChangeLicense.py (modified) (1 diff)
-
fakeSMTPServer.py (modified) (1 diff)
-
imageUpload.py (modified) (1 diff)
-
imsUpload.py (modified) (1 diff)
-
__init__.py (modified) (2 diffs)
-
producer.py (modified) (1 diff)
-
QA.py (modified) (1 diff)
-
searchReplace.py (added)
-
seleniumWrapper.py (modified) (1 diff)
-
sendEmail.py (modified) (1 diff)
-
ticket567.py (modified) (1 diff)
-
Ticket578.py (modified) (1 diff)
-
wpimport.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
enpraxis.educommons/trunk/enpraxis/educommons/tests/seleniumtests/accountsLogin.py
r506 r512 1 # -*- coding: iso-8859-15 -*- 1 2 ################################################################################## 2 3 # Copyright (c) 2009 Massachusetts Institute of Technology, All rights reserved. … … 50 51 def test_qa_account(self): 51 52 sel = self.selenium 52 sel.login("q a","qa")53 sel.login("quality","quality") 53 54 self.failUnless(sel.is_element_present('//a[@id="user-name"]/span[text()="qa"]')) 54 self.assertEqual("q a(QA)",sel.get_text('//li[a[@id="user-name"]]'))55 self.assertEqual("quality (QA)",sel.get_text('//li[a[@id="user-name"]]')) 55 56 56 57 def test_publisher_account(self): -
enpraxis.educommons/trunk/enpraxis/educommons/tests/seleniumtests/addNewUsersAll.py
r481 r512 1 # -*- coding: iso-8859-15 -*- 1 2 ################################################################################## 2 3 # Copyright (c) 2009 enPraxis, All rights reserved. … … 21 22 __version__ = '$ Revision 0.0 $'[11:-2] 22 23 23 # adds new users24 # adds new users 24 25 25 26 from seleniumWrapper import selenium … … 28 29 import random 29 30 import time 30 class NewTest(unittest.TestCase):31 class AddUsersTest(unittest.TestCase): 31 32 def setUp(self): 32 33 self.verificationErrors = [] … … 34 35 self.selenium.start() 35 36 36 def test_new(self):37 def createUsers(self): 37 38 sel = self.selenium 38 39 sel.open("/eduCommons/logged_out") -
enpraxis.educommons/trunk/enpraxis/educommons/tests/seleniumtests/admin.py
r481 r512 1 # -*- coding: iso-8859-15 -*- 1 2 ################################################################################## 2 3 # Copyright (c) 2009 enPraxis, All rights reserved. … … 29 30 import time 30 31 31 class NewTest(unittest.TestCase):32 class checkAdminRole(unittest.TestCase): 32 33 def setUp(self): 33 34 self.verificationErrors = [] -
enpraxis.educommons/trunk/enpraxis/educommons/tests/seleniumtests/adminSiteSetup.py
r481 r512 1 # -*- coding: iso-8859-15 -*- 1 2 ################################################################################## 2 3 # Copyright (c) 2009 enPraxis, All rights reserved. -
enpraxis.educommons/trunk/enpraxis/educommons/tests/seleniumtests/changeHeader.py
r481 r512 1 # -*- coding: iso-8859-15 -*- 1 2 ################################################################################## 2 3 # Copyright (c) 2009 enPraxis, All rights reserved. -
enpraxis.educommons/trunk/enpraxis/educommons/tests/seleniumtests/courseImport.py
r451 r512 1 # -*- coding: iso-8859-15 -*- 1 2 ################################################################################## 2 3 # Copyright (c) 2009 enPraxis, All rights reserved. -
enpraxis.educommons/trunk/enpraxis/educommons/tests/seleniumtests/createCourse.py
r506 r512 1 # -*- coding: iso-8859-15 -*- 1 2 ################################################################################## 2 3 # Copyright (c) 2009 Massachusetts Institute of Technology, All rights reserved. -
enpraxis.educommons/trunk/enpraxis/educommons/tests/seleniumtests/createDivision.py
r506 r512 1 # -*- coding: iso-8859-15 -*- 1 2 ################################################################################## 2 3 # Copyright (c) 2009 Massachusetts Institute of Technology, All rights reserved. -
enpraxis.educommons/trunk/enpraxis/educommons/tests/seleniumtests/createLink.py
r481 r512 1 # -*- coding: iso-8859-15 -*- 1 2 ################################################################################## 2 3 # Copyright (c) 2009 enPraxis, All rights reserved. … … 30 31 31 32 32 class NewTest(unittest.TestCase):33 class createLink(unittest.TestCase): 33 34 def setUp(self): 34 35 -
enpraxis.educommons/trunk/enpraxis/educommons/tests/seleniumtests/createPage.py
r506 r512 1 # -*- coding: iso-8859-15 -*- 1 2 ################################################################################## 2 3 # Copyright (c) 2009 Massachusetts Institute of Technology, All rights reserved. -
enpraxis.educommons/trunk/enpraxis/educommons/tests/seleniumtests/divisionChangeLicense.py
r506 r512 1 # -*- coding: iso-8859-15 -*- 1 2 ################################################################################## 2 3 # Copyright (c) 2009 enPraxis, All rights reserved. -
enpraxis.educommons/trunk/enpraxis/educommons/tests/seleniumtests/fakeSMTPServer.py
r506 r512 1 1 #! /usr/bin/python 2 # -*- coding: iso-8859-15 -*- 2 3 ################################################################################## 3 4 # Copyright (c) 2009 Massachusetts Institute of Technology, All rights reserved. -
enpraxis.educommons/trunk/enpraxis/educommons/tests/seleniumtests/imageUpload.py
r416 r512 1 # -*- coding: iso-8859-15 -*- 1 2 ################################################################################## 2 3 # Copyright (c) 2009 enPraxis, All rights reserved. -
enpraxis.educommons/trunk/enpraxis/educommons/tests/seleniumtests/imsUpload.py
r506 r512 1 # -*- coding: iso-8859-15 -*- 1 2 ################################################################################## 2 3 # Copyright (c) 2009 Massachusetts Institute of Technology, All rights reserved. -
enpraxis.educommons/trunk/enpraxis/educommons/tests/seleniumtests/__init__.py
r481 r512 1 #import addNewSite 2 #import addNewUsersAll 1 3 import accountsLogin 2 4 import createDivision … … 17 19 import admin 18 20 import viewer 19 import addNewUsersAll -
enpraxis.educommons/trunk/enpraxis/educommons/tests/seleniumtests/producer.py
r481 r512 1 # -*- coding: iso-8859-15 -*- 1 2 ################################################################################## 2 3 # Copyright (c) 2009 enPraxis, All rights reserved. -
enpraxis.educommons/trunk/enpraxis/educommons/tests/seleniumtests/QA.py
r481 r512 1 # -*- coding: iso-8859-15 -*- 1 2 ################################################################################## 2 3 # Copyright (c) 2009 enPraxis, All rights reserved. -
enpraxis.educommons/trunk/enpraxis/educommons/tests/seleniumtests/seleniumWrapper.py
r506 r512 1 # -*- coding: iso-8859-15 -*- 1 2 ################################################################################## 2 3 # Copyright (c) 2009 Massachusetts Institute of Technology, All rights reserved. -
enpraxis.educommons/trunk/enpraxis/educommons/tests/seleniumtests/sendEmail.py
r506 r512 1 # -*- coding: iso-8859-15 -*- 1 2 ################################################################################## 2 3 # Copyright (c) 2009 Massachusetts Institute of Technology, All rights reserved. -
enpraxis.educommons/trunk/enpraxis/educommons/tests/seleniumtests/ticket567.py
r481 r512 1 # -*- coding: iso-8859-15 -*- 1 2 ################################################################################## 2 3 # Copyright (c) 2009 enPraxis, All rights reserved. -
enpraxis.educommons/trunk/enpraxis/educommons/tests/seleniumtests/Ticket578.py
r409 r512 1 # -*- coding: iso-8859-15 -*- 1 2 ################################################################################## 2 3 # Copyright (c) 2009 enPraxis, All rights reserved. -
enpraxis.educommons/trunk/enpraxis/educommons/tests/seleniumtests/wpimport.py
r451 r512 1 # -*- coding: iso-8859-15 -*- 1 2 ################################################################################## 2 3 # Copyright (c) 2009 enPraxis, All rights reserved.
