[QA] Running browser tests against firefox with addons installed?

Gilles Dubuc gilles at wikimedia.org
Thu Mar 19 08:31:13 UTC 2015


Sounds great! I have to leave that on the backburner until Q4 because we
have to wrap up our team's core objectives, but consider me game starting
April 1st. I've made a task for it: https://phabricator.wikimedia.org/T93174

On Wed, Mar 18, 2015 at 6:17 PM, Dan Duvall <dduvall at wikimedia.org> wrote:

> On Wed, Mar 18, 2015 at 7:25 AM, Željko Filipin <zfilipin at wikimedia.org>
> wrote:
> >
> > On Wed, Mar 18, 2015 at 10:33 AM, Gilles Dubuc <gilles at wikimedia.org>
> wrote:
> >>
> >> How difficult would it be to set that up (profile to run firefox with
> that addon) for a specific cucumber feature in the UploadWizard test suite?
> >
> >
> > It should not be hard to do. You do not have to set up a profile, you
> can just point to the extension that needs to be installed.
>
>
> This may be the perfect opportunity to refactor the UW test suite to
> make use of mediawiki_selenium 1.0.x features—it provides a dependency
> injection system for easily setting custom Watir/Selenium browser
> options.[0][1] It would go something like this:
>
> Before('@use-some-extension') do
>   browser_factory(:firefox).bind do |options|
>     options[:profile].add_extension('/path/to/extension.xpi')
>   end
> end
>
> Željko/Gilles, maybe we could all pair on the refactoring.
>
> [0]
> https://www.mediawiki.org/wiki/Quality_Assurance/Browser_testing/Environment_abstraction_layer#Customization
> [1]
> https://doc.wikimedia.org/rubygems/mediawiki-selenium/MediawikiSelenium/BrowserFactory/Base.html#bind-instance_method
>
> --
> Dan Duvall
> Automation Engineer
> Wikimedia Foundation
>
> _______________________________________________
> QA mailing list
> QA at lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/qa
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.wikimedia.org/pipermail/qa/attachments/20150319/f91df22e/attachment.html>


More information about the QA mailing list