[QA] Problems with selenium tests

Željko Filipin zfilipin at wikimedia.org
Tue Jul 16 17:10:48 UTC 2013


Hi Jon,

I am including QA list in the discussion.

Željko


On Wed, Jul 10, 2013 at 10:56 PM, Jon Robson <jrobson at wikimedia.org> wrote:

> Including Zeljko and Chris..
>
> On Wed, Jul 10, 2013 at 1:56 PM, Jon Robson <jrobson at wikimedia.org> wrote:
> > So I finally got the acceptance tests running on my local machine.
> > I've added a convenience function to the Makefile to allow easier
> > discovery of the qa tests:  https://gerrit.wikimedia.org/r/73028
> >
> > Some notes from my experience....
> >
> > * It strikes me that I shouldn't need /private/wmf/ - the password
> > should be stored in an environment variable to be consistent with
> > others or should be the same as the username.
> >
> > * On my instance some pages with lots of templates take a very long to
> > load. As a result occasionally my tests get stuck on the random test
> > or it fails due to a timeout.
> > * It would be nice to have a way to easily setup things such as the
> > selenium user from the command line. I updated the readme in
> > MobileFrontend as this wasn't stated -
> > https://gerrit.wikimedia.org/r/73030
> >
> > * Some tests fail due to expecting the main page to have a div with id
> > mainpage - this is not true. Only special cased pages need this. It
> > should check for the #content element instead. I corrected this (I
> > think!) https://gerrit.wikimedia.org/r/73029
> >
> >
> > * The tests assume a mobile browser - by default MEDIAWIKI_URL on my
> > machine http://localhost:80/w runs the desktop site.
> > http://localhost.m:80/w runs the mobile site. Maybe we should use a
> > new variable MEDIAWIKI_MOBILE_URL for these tests. I want to write
> > some tests that test the desktop version of nearby so we need to be
> > able to support both...
> > * IN addition to this the format of MEDIAWIKI_URL as currently used is
> > inconsistent with other users in the repository and we should
> > standardise. On my machine it is http://localhost:80/w but to get the
> > tests running it needs to be http://localhost:80/w/index.php/
> > * *** DEPRECATION WARNING
> > *** You are calling a method named a at
> >
> /Users/jrobson/Sites/w/extensions/MobileFrontend/tests/acceptance/features/support/pages/home_page.rb:15:in
> > `block in <class:HomePage>'.
> > *** This method does not exist in page-object so it is being passed to
> > the driver.
> > *** This feature will be removed in the near future.
> > *** Please change your code to call the correct page-object method.
> > *** If you are using functionality that does not exist in page-object
> > please request it be added.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wikimedia.org/pipermail/qa/attachments/20130716/5c818fb3/attachment.html>


More information about the QA mailing list