Advertisement
Guest User

Untitled

a guest
Jul 17th, 2013
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.82 KB | None | 0 0
  1. replaceafill@system76:~/sandboxes/quiz_assignments$ bin/test-headless -vvv
  2. Running tests at level 1
  3. Running schooltool.quiz.stesting.quiz_selenium_layer tests:
  4. Set up schooltool.quiz.stesting.quiz_selenium_layer serving at http://127.0.0.1:38965/
  5. in 5.466 seconds.
  6. Running:
  7. /home/replaceafill/sandboxes/quiz_assignments/src/schooltool/quiz/browser/stests/quiz_management.txt (30.126 s)
  8. /home/replaceafill/sandboxes/quiz_assignments/src/schooltool/quiz/browser/stests/quiz_import.txt (8.043 s)
  9. /home/replaceafill/sandboxes/quiz_assignments/src/schooltool/quiz/browser/stests/student_answers.txt (49.522 s)
  10.  
  11.  
  12. Failure in test /home/replaceafill/sandboxes/quiz_assignments/src/schooltool/quiz/browser/stests/student_answers.txt
  13. Failed doctest test for student_answers.txt
  14. File "/home/replaceafill/sandboxes/quiz_assignments/src/schooltool/quiz/browser/stests/student_answers.txt", line 0
  15.  
  16. ----------------------------------------------------------------------
  17. File "/home/replaceafill/sandboxes/quiz_assignments/src/schooltool/quiz/browser/stests/student_answers.txt", line 113, in student_answers.txt
  18. Failed example:
  19. camila.query.id('form-widgets-QuizItem').ui.set_value(answer_1)
  20. Exception raised:
  21. Traceback (most recent call last):
  22. File "/usr/lib/python2.7/doctest.py", line 1289, in __run
  23. compileflags, 1) in test.globs
  24. File "/home/replaceafill/sandboxes/quiz_assignments/src/schooltool/quiz/browser/stests/student_answers.txt", line 113, in <module>
  25. >>> camila.query.id('form-widgets-QuizItem').ui.set_value(answer_1)
  26. File "/home/replaceafill/.buildout/eggs/schooltool-2.4.3dev_r3593-py2.7.egg/schooltool/testing/selenium.py", line 575, in find_element
  27. return self._wrap(method(param))
  28. File "/home/replaceafill/.buildout/eggs/selenium-2.24.0-py2.7.egg/selenium/webdriver/remote/webdriver.py", line 188, in find_element_by_id
  29. return self.find_element(by=By.ID, value=id_)
  30. File "/home/replaceafill/.buildout/eggs/selenium-2.24.0-py2.7.egg/selenium/webdriver/remote/webdriver.py", line 667, in find_element
  31. {'using': by, 'value': value})['value']
  32. File "/home/replaceafill/.buildout/eggs/selenium-2.24.0-py2.7.egg/selenium/webdriver/remote/webdriver.py", line 155, in execute
  33. self.error_handler.check_response(response)
  34. File "/home/replaceafill/.buildout/eggs/selenium-2.24.0-py2.7.egg/selenium/webdriver/remote/errorhandler.py", line 147, in check_response
  35. raise exception_class(message, screen, stacktrace)
  36. NoSuchElementException: Message: u'The element could not be found'
  37. Screenshots:
  38. file:///home/replaceafill/sandboxes/quiz_assignments/parts/test-headless/screenshots/student_answers.txt-line_112-manager.png
  39. file:///home/replaceafill/sandboxes/quiz_assignments/parts/test-headless/screenshots/student_answers.txt-line_112-teacher.png
  40. file:///home/replaceafill/sandboxes/quiz_assignments/parts/test-headless/screenshots/student_answers.txt-line_112-camila.png
  41.  
  42.  
  43. The following test left new threads behind:
  44. /home/replaceafill/sandboxes/quiz_assignments/src/schooltool/quiz/browser/stests/student_answers.txt
  45. New thread(s): [<_DummyThread(Dummy-2, started daemon 140049121441536)>]
  46. /home/replaceafill/sandboxes/quiz_assignments/src/schooltool/quiz/browser/stests/quiz_preferences.txt (10.654 s)
  47. /home/replaceafill/sandboxes/quiz_assignments/src/schooltool/quiz/browser/stests/update_skills_button.txt (45.822 s)
  48.  
  49.  
  50. Failure in test /home/replaceafill/sandboxes/quiz_assignments/src/schooltool/quiz/browser/stests/update_skills_button.txt
  51. Failed doctest test for update_skills_button.txt
  52. File "/home/replaceafill/sandboxes/quiz_assignments/src/schooltool/quiz/browser/stests/update_skills_button.txt", line 0
  53.  
  54. ----------------------------------------------------------------------
  55. File "/home/replaceafill/sandboxes/quiz_assignments/src/schooltool/quiz/browser/stests/update_skills_button.txt", line 59, in update_skills_button.txt
  56. Failed example:
  57. "Skills" in views.text[0]
  58. Differences (ndiff with -expected +actual):
  59. - True
  60. + False
  61. Screenshots:
  62. file:///home/replaceafill/sandboxes/quiz_assignments/parts/test-headless/screenshots/update_skills_button.txt-line_58-manager.png
  63. file:///home/replaceafill/sandboxes/quiz_assignments/parts/test-headless/screenshots/update_skills_button.txt-line_58-teacher.png
  64.  
  65.  
  66. /home/replaceafill/sandboxes/quiz_assignments/src/schooltool/quiz/browser/stests/quiz_duplicate.txt (14.997 s)
  67. /home/replaceafill/sandboxes/quiz_assignments/src/schooltool/quiz/browser/stests/duplicated_choices.txt (18.190 s)
  68.  
  69.  
  70. Failure in test /home/replaceafill/sandboxes/quiz_assignments/src/schooltool/quiz/browser/stests/duplicated_choices.txt
  71. Failed doctest test for duplicated_choices.txt
  72. File "/home/replaceafill/sandboxes/quiz_assignments/src/schooltool/quiz/browser/stests/duplicated_choices.txt", line 0
  73.  
  74. ----------------------------------------------------------------------
  75. File "/home/replaceafill/sandboxes/quiz_assignments/src/schooltool/quiz/browser/stests/duplicated_choices.txt", line 93, in duplicated_choices.txt
  76. Failed example:
  77. print camila.query.css('.page .header h1').text
  78. Differences (ndiff with -expected +actual):
  79. - Repeated Choices Quiz
  80. + Server Error
  81. Screenshots:
  82. file:///home/replaceafill/sandboxes/quiz_assignments/parts/test-headless/screenshots/duplicated_choices.txt-line_92-manager.png
  83. file:///home/replaceafill/sandboxes/quiz_assignments/parts/test-headless/screenshots/duplicated_choices.txt-line_92-teacher.png
  84. file:///home/replaceafill/sandboxes/quiz_assignments/parts/test-headless/screenshots/duplicated_choices.txt-line_92-camila.png
  85.  
  86.  
  87. /home/replaceafill/sandboxes/quiz_assignments/src/schooltool/quiz/browser/stests/quiz_deployment.txt (49.625 s)
  88.  
  89.  
  90. Failure in test /home/replaceafill/sandboxes/quiz_assignments/src/schooltool/quiz/browser/stests/quiz_deployment.txt
  91. Failed doctest test for quiz_deployment.txt
  92. File "/home/replaceafill/sandboxes/quiz_assignments/src/schooltool/quiz/browser/stests/quiz_deployment.txt", line 0
  93.  
  94. ----------------------------------------------------------------------
  95. File "/home/replaceafill/sandboxes/quiz_assignments/src/schooltool/quiz/browser/stests/quiz_deployment.txt", line 151, in quiz_deployment.txt
  96. Failed example:
  97. camila.query.id('form-widgets-QuizItem').ui.set_value(answer_1)
  98. Exception raised:
  99. Traceback (most recent call last):
  100. File "/usr/lib/python2.7/doctest.py", line 1289, in __run
  101. compileflags, 1) in test.globs
  102. File "/home/replaceafill/sandboxes/quiz_assignments/src/schooltool/quiz/browser/stests/quiz_deployment.txt", line 151, in <module>
  103. >>> camila.query.id('form-widgets-QuizItem').ui.set_value(answer_1)
  104. File "/home/replaceafill/.buildout/eggs/schooltool-2.4.3dev_r3593-py2.7.egg/schooltool/testing/selenium.py", line 575, in find_element
  105. return self._wrap(method(param))
  106. File "/home/replaceafill/.buildout/eggs/selenium-2.24.0-py2.7.egg/selenium/webdriver/remote/webdriver.py", line 188, in find_element_by_id
  107. return self.find_element(by=By.ID, value=id_)
  108. File "/home/replaceafill/.buildout/eggs/selenium-2.24.0-py2.7.egg/selenium/webdriver/remote/webdriver.py", line 667, in find_element
  109. {'using': by, 'value': value})['value']
  110. File "/home/replaceafill/.buildout/eggs/selenium-2.24.0-py2.7.egg/selenium/webdriver/remote/webdriver.py", line 155, in execute
  111. self.error_handler.check_response(response)
  112. File "/home/replaceafill/.buildout/eggs/selenium-2.24.0-py2.7.egg/selenium/webdriver/remote/errorhandler.py", line 147, in check_response
  113. raise exception_class(message, screen, stacktrace)
  114. NoSuchElementException: Message: u'The element could not be found'
  115. Screenshots:
  116. file:///home/replaceafill/sandboxes/quiz_assignments/parts/test-headless/screenshots/quiz_deployment.txt-line_150-manager.png
  117. file:///home/replaceafill/sandboxes/quiz_assignments/parts/test-headless/screenshots/quiz_deployment.txt-line_150-teacher.png
  118. file:///home/replaceafill/sandboxes/quiz_assignments/parts/test-headless/screenshots/quiz_deployment.txt-line_150-camila.png
  119.  
  120.  
  121. /home/replaceafill/sandboxes/quiz_assignments/src/schooltool/quiz/browser/stests/update_skills.txt (64.587 s)
  122.  
  123.  
  124. Failure in test /home/replaceafill/sandboxes/quiz_assignments/src/schooltool/quiz/browser/stests/update_skills.txt
  125. Failed doctest test for update_skills.txt
  126. File "/home/replaceafill/sandboxes/quiz_assignments/src/schooltool/quiz/browser/stests/update_skills.txt", line 0
  127.  
  128. ----------------------------------------------------------------------
  129. File "/home/replaceafill/sandboxes/quiz_assignments/src/schooltool/quiz/browser/stests/update_skills.txt", line 81, in update_skills.txt
  130. Failed example:
  131. student1.query.id("form-widgets-QuizItem-0").click()
  132. Exception raised:
  133. Traceback (most recent call last):
  134. File "/usr/lib/python2.7/doctest.py", line 1289, in __run
  135. compileflags, 1) in test.globs
  136. File "/home/replaceafill/sandboxes/quiz_assignments/src/schooltool/quiz/browser/stests/update_skills.txt", line 81, in <module>
  137. >>> student1.query.id("form-widgets-QuizItem-0").click()
  138. File "/home/replaceafill/.buildout/eggs/schooltool-2.4.3dev_r3593-py2.7.egg/schooltool/testing/selenium.py", line 575, in find_element
  139. return self._wrap(method(param))
  140. File "/home/replaceafill/.buildout/eggs/selenium-2.24.0-py2.7.egg/selenium/webdriver/remote/webdriver.py", line 188, in find_element_by_id
  141. return self.find_element(by=By.ID, value=id_)
  142. File "/home/replaceafill/.buildout/eggs/selenium-2.24.0-py2.7.egg/selenium/webdriver/remote/webdriver.py", line 667, in find_element
  143. {'using': by, 'value': value})['value']
  144. File "/home/replaceafill/.buildout/eggs/selenium-2.24.0-py2.7.egg/selenium/webdriver/remote/webdriver.py", line 155, in execute
  145. self.error_handler.check_response(response)
  146. File "/home/replaceafill/.buildout/eggs/selenium-2.24.0-py2.7.egg/selenium/webdriver/remote/errorhandler.py", line 147, in check_response
  147. raise exception_class(message, screen, stacktrace)
  148. NoSuchElementException: Message: u'The element could not be found'
  149. Screenshots:
  150. file:///home/replaceafill/sandboxes/quiz_assignments/parts/test-headless/screenshots/update_skills.txt-line_80-manager.png
  151. file:///home/replaceafill/sandboxes/quiz_assignments/parts/test-headless/screenshots/update_skills.txt-line_80-teacher.png
  152. file:///home/replaceafill/sandboxes/quiz_assignments/parts/test-headless/screenshots/update_skills.txt-line_80-student1.png
  153.  
  154.  
  155. /home/replaceafill/sandboxes/quiz_assignments/src/schooltool/quiz/browser/stests/quiz_editors.txt (12.078 s)
  156. /home/replaceafill/sandboxes/quiz_assignments/src/schooltool/quiz/browser/stests/quiz_export.txt (14.439 s)
  157.  
  158.  
  159. Failure in test /home/replaceafill/sandboxes/quiz_assignments/src/schooltool/quiz/browser/stests/quiz_export.txt
  160. Failed doctest test for quiz_export.txt
  161. File "/home/replaceafill/sandboxes/quiz_assignments/src/schooltool/quiz/browser/stests/quiz_export.txt", line 0
  162.  
  163. ----------------------------------------------------------------------
  164. File "/home/replaceafill/sandboxes/quiz_assignments/src/schooltool/quiz/browser/stests/quiz_export.txt", line 73, in quiz_export.txt
  165. Failed example:
  166. print_sheet(xls.sheet_by_name('QuizItems'))
  167. Exception raised:
  168. Traceback (most recent call last):
  169. File "/usr/lib/python2.7/doctest.py", line 1289, in __run
  170. compileflags, 1) in test.globs
  171. File "/home/replaceafill/sandboxes/quiz_assignments/src/schooltool/quiz/browser/stests/quiz_export.txt", line 73, in <module>
  172. >>> print_sheet(xls.sheet_by_name('QuizItems'))
  173. AttributeError: 'str' object has no attribute 'sheet_by_name'
  174. Screenshots:
  175. file:///home/replaceafill/sandboxes/quiz_assignments/parts/test-headless/screenshots/quiz_export.txt-line_72-manager.png
  176. file:///home/replaceafill/sandboxes/quiz_assignments/parts/test-headless/screenshots/quiz_export.txt-line_72-teacher.png
  177.  
  178.  
  179. Ran 11 tests with 6 failures and 0 errors in 5 minutes 20.270 seconds.
  180. Tearing down left over layers:
  181. Tear down schooltool.quiz.stesting.quiz_selenium_layer in 0.100 seconds.
  182.  
  183. Tests with failures:
  184. /home/replaceafill/sandboxes/quiz_assignments/src/schooltool/quiz/browser/stests/student_answers.txt
  185. /home/replaceafill/sandboxes/quiz_assignments/src/schooltool/quiz/browser/stests/update_skills_button.txt
  186. /home/replaceafill/sandboxes/quiz_assignments/src/schooltool/quiz/browser/stests/duplicated_choices.txt
  187. /home/replaceafill/sandboxes/quiz_assignments/src/schooltool/quiz/browser/stests/quiz_deployment.txt
  188. /home/replaceafill/sandboxes/quiz_assignments/src/schooltool/quiz/browser/stests/update_skills.txt
  189. /home/replaceafill/sandboxes/quiz_assignments/src/schooltool/quiz/browser/stests/quiz_export.txt
  190. replaceafill@system76:~/sandboxes/quiz_assignments$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement