1 | | Currently having trouble getting Selenium tests to work. The problem can be isolated to this code: |
| 1 | Currently having trouble getting Selenium tests to work... |
| 2 | |
| 3 | {{{ |
| 4 | wjm:Omero will$ omero web seleniumtest webmobile localhost http://localhost:4080 firefox |
| 5 | Selenium test... |
| 6 | ['/Users/will/Documents/workspace/Omero/dist/lib/python/omeroweb/webmobile/tests/seleniumtests.py', 'localhost', 'http://localhost:4080', 'firefox'] |
| 7 | Selenium Result: u'OK,2f69fb7e0fcc4700855dad6fea8b6e23' |
| 8 | seleniumbase.py getSelenium: /webtest/ |
| 9 | Selenium Result: u'XHR ERROR: URL = http://localhost:4080/webtest/ Response_Code = 500 Error_Message = INTERNAL SERVER ERROR' |
| 10 | E |
| 11 | ====================================================================== |
| 12 | ERROR: testTheTests (__main__.TestBase) |
| 13 | ---------------------------------------------------------------------- |
| 14 | Traceback (most recent call last): |
| 15 | File "/Users/will/Documents/workspace/Omero/dist/lib/python/omeroweb/webgateway/tests/seleniumbase.py", line 140, in setUp |
| 16 | self.selenium = self.SERVER.getSelenium() |
| 17 | File "/Users/will/Documents/workspace/Omero/dist/lib/python/omeroweb/webgateway/tests/seleniumbase.py", line 72, in getSelenium |
| 18 | self.selenium.open("/%s/" % self.base) |
| 19 | File "/Users/will/Documents/workspace/Omero/dist/lib/python/selenium.py", line 764, in open |
| 20 | self.do_command("open", [url,]) |
| 21 | File "/Users/will/Documents/workspace/Omero/dist/lib/python/selenium.py", line 215, in do_command |
| 22 | raise Exception, data |
| 23 | Exception: XHR ERROR: URL = http://localhost:4080/webtest/ Response_Code = 500 Error_Message = INTERNAL SERVER ERROR |
| 24 | |
| 25 | ---------------------------------------------------------------------- |
| 26 | Ran 1 test in 5.984s |
| 27 | |
| 28 | FAILED (errors=1) |
| 29 | }}} |
| 30 | |
| 31 | The problem can be isolated to this code: |