[QA] screenshots hack?

Nik Everett neverett at wikimedia.org
Sat Feb 15 18:40:31 UTC 2014


I think it'd be pretty heavy to run it per language and you'd have to have a good place to run it per language but eying that you could run it headless if you like. The screenshot API the tests hvw access to is petty good. It'll snap either the whole screen or just a part of it and you can call it any time you like in the test. No sauce required. 

Sent from my iPhone

> On Feb 15, 2014, at 1:27 PM, "Amir E. Aharoni" <amir.aharoni at mail.huji.ac.il> wrote:
> 
> Hi,
> 
> There's something that bothered me for a while about VisualEditor, and essentially it can be said about any other user-facing component that we are developing: If we are writing a user manual, such as https://www.mediawiki.org/wiki/Help:VisualEditor/User_guide , we want to get it translated to as many languages as possible to be useful to all people. It's quite easy to do with the Translate extension, but how do we translate the screenshots?
> 
> It's possible (though not trivial) to make a custom file name for each language, but this still leaves the question of how will the screenshots be created and updated when the developers change the UI.
> 
> And now it suddenly struck me: Can we use our tests for that? To do something like this:
> 1. Write test scenarios that run the features described in the user manual.
> 2. Run these scenarios on all the languages that we support (or at least on a large set, say fifty languages).
> 3. Get the screenshots that are create in SauceLabs, and save them with a suffix of a language code in the file name.
> 4. Upload them automatically to Commons.
> 5. Profit: Truly localized user manuals.
> 6. Profit 2: Truly multilingual tests.
> 
> Maybe we don't even have to run this job regularly, if it's too heavy. It will probably be enough to do it once every couple of weeks or simply by demand, when a feature clearly changes.
> 
> Is this crazy talk? Or can it scale?
> 
> --
> Amir Elisha Aharoni · אָמִיר אֱלִישָׁע אַהֲרוֹנִי
> http://aharoni.wordpress.com
> ‪“We're living in pieces,
> I want to live in peace.” – T. Moore‬
> _______________________________________________
> QA mailing list
> QA at lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/qa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wikimedia.org/pipermail/qa/attachments/20140215/83fbb081/attachment.html>


More information about the QA mailing list