[Pkg-giraffe-discuss] autopkgtest in kopano-webapp

Carsten Schoenert c.schoenert at t-online.de
Wed Dec 26 18:10:16 GMT 2018


Am 26.12.18 um 18:57 schrieb Guido Günther:
> Can't be the same.

Absolutely spoken is this of course correct.

> ======================================================================
> ERROR: test_login (test_webapp.TestWebApp)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/tmp/autopkgtest.cEOg0f/build.tRZ/src/debian/tests/test_webapp.py", line 64, in test_login
>     element = WebDriverWait(self.driver, 40).until(lambda t: t.find_element_by_("class_name", "icon_createEmailMessage"))
>   File "/usr/lib/python2.7/dist-packages/selenium/webdriver/support/wait.py", line 71, in until
>     value = method(self._driver)
>   File "/tmp/autopkgtest.cEOg0f/build.tRZ/src/debian/tests/test_webapp.py", line 64, in <lambda>
>     element = WebDriverWait(self.driver, 40).until(lambda t: t.find_element_by_("class_name", "icon_createEmailMessage"))
> AttributeError: 'WebDriver' object has no attribute 'find_element_by_'

...

> Can you put the whole script and the whole trace
> somewhere (so line numbers match (I was just guessing since I didn't
> have the script as you ran it)?

Sure. This is my current version of test_webapp.py

https://paste.debian.net/1057463/

If you want to run this locally you also need to adjust d/t/smoke a bit
due the needed store for the mailtest user.

> diff --git a/debian/tests/smoke b/debian/tests/smoke
> index 17e925b..38dbfb8 100755
> --- a/debian/tests/smoke
> +++ b/debian/tests/smoke
> @@ -23,6 +23,7 @@ apt-get -y install kopano-webapp-apache2 kopano-utils
>  kopano-admin  -c mailtest -p r00tme \
>                -e admin at example.com -f "Mail test user" -a 1 | grep -qs "User created."
>  
> +kopano-storeadm -h default: -Cn mailtest
>  
>  cd debian/tests
>  export AUTH_USER='mailtest'
-- 
Regards
Carsten Schoenert



More information about the Pkg-giraffe-discuss mailing list