[QA] browser tests race condition with login/logout

Željko Filipin zfilipin at wikimedia.org
Wed Jul 2 10:07:30 UTC 2014


On Tue, Jul 1, 2014 at 6:37 PM, Antoine Musso <hashar+wmf at free.fr> wrote:

> The fix would be to use different username probably.
>

The only long term and robust solution that I can think of right now is to
create a user via API as a setup step for every scenario that needs logging
in.

That would create a lot of users over time. I guess we do not care about
that for purely testing sites (like beta.wmflabs.org) but it might be a
problem for test2.wikipedia.org. We can make it easy to delete such users
on a daily/weekly/monthly/yearly bases. (For example, usernames could look
like Selenium_user_12345.)

The alternative is to create 10-100-1000(...) users and then use one user
for each scenario.

Or have the per
> user session invalidation to only invalidate the given session id and
> not per username (havent looked at mediawiki core code).
>

It would be useful if we could enable this for testing sites, so we could
reuse one user, like we do now.

Željko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wikimedia.org/pipermail/qa/attachments/20140702/fbef8387/attachment.html>


More information about the QA mailing list