Bug#847555: tracker.debian.org: Functional testing suite seems broken
On Fri, 09 Dec 2016, efkin wrote:
> I looked for the driver but it was not on stable/main so went for
> chromedriver. And the situation improved considireously. Then realized
> that improper method was used for closing the driver, leading to
> undesired spwaning of driver processes.
Thanks, I applied your patches. But while you say that the situation
improved, I still see failures (both on jessie and on stretch/sid). Do you
plan to look into those failures?
$ xvfb-run ./manage.py test functional_tests
Creating test database for alias 'default'...
Destroying old test database 'default'...
F.........EFF...F...............
======================================================================
ERROR: test_repository_add (functional_tests.tests.RepositoryAdminTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/mock.py", line 1210, in patched
return func(*args, **keywargs)
File "/home/rhertzog/deb/core/distro-tracker/functional_tests/tests.py", line 426, in test_repository_add
'.field-architectures select option[value="1"]')
File "/usr/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 434, in find_element_by_css_selector
return self.find_element(by=By.CSS_SELECTOR, value=css_selector)
File "/usr/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 744, in find_element
{'using': by, 'value': value})['value']
File "/usr/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 233, in execute
self.error_handler.check_response(response)
File "/usr/lib/python2.7/dist-packages/selenium/webdriver/remote/errorhandler.py", line 194, in check_response
raise exception_class(message, screen, stacktrace)
NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":".field-architectures select option[value="1"]"}
(Session info: chrome=53.0.2785.143)
(Driver info: chromedriver=2.22 (undefined),platform=Linux 4.8.0-1-amd64 x86_64)
======================================================================
FAIL: test_change_password (functional_tests.tests.ChangeProfileTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/rhertzog/deb/core/distro-tracker/functional_tests/tests.py", line 1094, in test_change_password
self.assert_in_page_body('Successfully updated your password')
File "/home/rhertzog/deb/core/distro-tracker/functional_tests/tests.py", line 109, in assert_in_page_body
self.assertIn(text, body.text)
AssertionError: u'Successfully updated your password' not found in u'Register | Log in\nHome Package Tracker\nEmail\nPassword\nSubmit\nForgot your password?\nHome Package Tracker\nCopyright 2013-2016 The Distro Tracker Developers\nGit Repository'
======================================================================
FAIL: test_package_subscription_no_email_from_subscription_tab_fails (functional_tests.tests.SubscribeToPackageTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/rhertzog/deb/core/distro-tracker/functional_tests/tests.py", line 943, in test_package_subscription_no_email_from_subscription_tab_fails
self.assert_element_with_id_in_page('package-search-input')
File "/home/rhertzog/deb/core/distro-tracker/functional_tests/tests.py", line 125, in assert_element_with_id_in_page
self.fail(custom_message)
AssertionError: package-search-input not found in the page.
======================================================================
FAIL: test_package_subscription_no_package_from_subscription_tab_fails (functional_tests.tests.SubscribeToPackageTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/rhertzog/deb/core/distro-tracker/functional_tests/tests.py", line 976, in test_package_subscription_no_package_from_subscription_tab_fails
self.assert_element_with_id_in_page('package-search-input')
File "/home/rhertzog/deb/core/distro-tracker/functional_tests/tests.py", line 125, in assert_element_with_id_in_page
self.fail(custom_message)
AssertionError: package-search-input not found in the page.
======================================================================
FAIL: test_subscribe_package_from_subscription_tab (functional_tests.tests.SubscribeToPackageTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/rhertzog/deb/core/distro-tracker/functional_tests/tests.py", line 916, in test_subscribe_package_from_subscription_tab
self.assert_element_with_id_in_page('package-search-input')
File "/home/rhertzog/deb/core/distro-tracker/functional_tests/tests.py", line 125, in assert_element_with_id_in_page
self.fail(custom_message)
AssertionError: package-search-input not found in the page.
----------------------------------------------------------------------
Ran 32 tests in 159.865s
FAILED (failures=4, errors=1)
Cheers,
--
Raphaël Hertzog ◈ Debian Developer
Support Debian LTS: http://www.freexian.com/services/debian-lts.html
Learn to master Debian: http://debian-handbook.info/get/
Reply to: