Skip to content

Instantly share code, notes, and snippets.

@antoviaque
Created September 28, 2014 08:56
Show Gist options
  • Select an option

  • Save antoviaque/c7df6ba7a66bd6d67c3e to your computer and use it in GitHub Desktop.

Select an option

Save antoviaque/c7df6ba7a66bd6d67c3e to your computer and use it in GitHub Desktop.
$ DJANGO_SETTINGS_MODULE="workbench.settings_local" nosetests --with-django
..E..........
======================================================================
ERROR: test_assessment (tests.integration.test_assessment.MentoringAssessmentTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/antoviaque/prog/edx/edx-platform/dev/xblock-mentoring/tests/integration/test_assessment.py", line 71, in test_assessment
mentoring = self.go_to_page('Assessment 1')
File "/home/antoviaque/prog/edx/edx-platform/dev/xblock-mentoring/mentoring/test_base.py", line 75, in go_to_page
self.browser.find_element_by_link_text(page_name).click()
File "/home/antoviaque/.virtualenvs/edx-xblock-mentoring-solutions/local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 254, in find_element_by_link_text
return self.find_element(by=By.LINK_TEXT, value=link_text)
File "/home/antoviaque/.virtualenvs/edx-xblock-mentoring-solutions/local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 662, in find_element
{'using': by, 'value': value})['value']
File "/home/antoviaque/.virtualenvs/edx-xblock-mentoring-solutions/local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 173, in execute
self.error_handler.check_response(response)
File "/home/antoviaque/.virtualenvs/edx-xblock-mentoring-solutions/local/lib/python2.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 166, in check_response
raise exception_class(message, screen, stacktrace)
NoSuchElementException: Message: u'Unable to locate element: {"method":"link text","selector":"Assessment 1"}' ; Stacktrace:
at FirefoxDriver.prototype.findElementInternal_ (file:///tmp/tmpzHV8Og/extensions/fxdriver@googlecode.com/components/driver-component.js:9618:133)
at fxdriver.Timer.prototype.setTimeout/<.notify (file:///tmp/tmpzHV8Og/extensions/fxdriver@googlecode.com/components/driver-component.js:548:5)
-------------------- >> begin captured logging << --------------------
selenium.webdriver.remote.remote_connection: DEBUG: DELETE http://127.0.0.1:55705/hub/session/468884d0-e434-43c3-be4c-b72ddec940be {"sessionId": "468884d0-e434-43c3-be4c-b72ddec940be"}
selenium.webdriver.remote.remote_connection: DEBUG: Finished Request
selenium.webdriver.remote.remote_connection: DEBUG: POST http://127.0.0.1:50351/hub/session {"desiredCapabilities": {"platform": "ANY", "browserName": "firefox", "version": "", "javascriptEnabled": true}}
selenium.webdriver.remote.remote_connection: DEBUG: Finished Request
selenium.webdriver.remote.remote_connection: DEBUG: POST http://127.0.0.1:50351/hub/session/a4ba0ee0-6bdc-403f-80b5-649c96db24ff/timeouts/implicit_wait {"sessionId": "a4ba0ee0-6bdc-403f-80b5-649c96db24ff", "ms": 1000.0}
selenium.webdriver.remote.remote_connection: DEBUG: Finished Request
mentoring.light_children: DEBUG: parse_xml called
mentoring.light_children: DEBUG: parse_xml called
mentoring.light_children: DEBUG: parse_xml called
selenium.webdriver.remote.remote_connection: DEBUG: POST http://127.0.0.1:50351/hub/session/a4ba0ee0-6bdc-403f-80b5-649c96db24ff/url {"url": "http://localhost:8081", "sessionId": "a4ba0ee0-6bdc-403f-80b5-649c96db24ff"}
django.request: WARNING: Not Found: /favicon.ico
selenium.webdriver.remote.remote_connection: DEBUG: Finished Request
django.request: WARNING: Not Found: /favicon.ico
mentoring.light_children: DEBUG: parse_xml called
mentoring.light_children: DEBUG: parse_xml called
mentoring.light_children: DEBUG: parse_xml called
mentoring.light_children: DEBUG: parse_xml called
mentoring.light_children: DEBUG: parse_xml called
mentoring.light_children: DEBUG: parse_xml called
mentoring.light_children: DEBUG: parse_xml called
mentoring.light_children: DEBUG: parse_xml called
mentoring.light_children: DEBUG: parse_xml called
mentoring.light_children: DEBUG: parse_xml called
selenium.webdriver.remote.remote_connection: DEBUG: POST http://127.0.0.1:50351/hub/session/a4ba0ee0-6bdc-403f-80b5-649c96db24ff/url {"url": "http://localhost:8081", "sessionId": "a4ba0ee0-6bdc-403f-80b5-649c96db24ff"}
selenium.webdriver.remote.remote_connection: DEBUG: Finished Request
selenium.webdriver.remote.remote_connection: DEBUG: POST http://127.0.0.1:50351/hub/session/a4ba0ee0-6bdc-403f-80b5-649c96db24ff/element {"using": "css selector", "sessionId": "a4ba0ee0-6bdc-403f-80b5-649c96db24ff", "value": "h1"}
selenium.webdriver.remote.remote_connection: DEBUG: Finished Request
selenium.webdriver.remote.remote_connection: DEBUG: GET http://127.0.0.1:50351/hub/session/a4ba0ee0-6bdc-403f-80b5-649c96db24ff/element/{f9cf42c6-b891-4870-8467-d90a612e5ff3}/text {"sessionId": "a4ba0ee0-6bdc-403f-80b5-649c96db24ff", "id": "{f9cf42c6-b891-4870-8467-d90a612e5ff3}"}
selenium.webdriver.remote.remote_connection: DEBUG: Finished Request
selenium.webdriver.remote.remote_connection: DEBUG: POST http://127.0.0.1:50351/hub/session/a4ba0ee0-6bdc-403f-80b5-649c96db24ff/url {"url": "http://localhost:8081", "sessionId": "a4ba0ee0-6bdc-403f-80b5-649c96db24ff"}
selenium.webdriver.remote.remote_connection: DEBUG: Finished Request
selenium.webdriver.remote.remote_connection: DEBUG: POST http://127.0.0.1:50351/hub/session/a4ba0ee0-6bdc-403f-80b5-649c96db24ff/element {"using": "link text", "sessionId": "a4ba0ee0-6bdc-403f-80b5-649c96db24ff", "value": "Assessment 1"}
selenium.webdriver.remote.remote_connection: DEBUG: Finished Request
--------------------- >> end captured logging << ---------------------
Loaded fixtures 0 times
Flushed the db 7 times
Sync'd the db 1 times
----------------------------------------------------------------------
Ran 13 tests in 69.456s
FAILED (errors=1)
Destroying test database for alias 'default'...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment