<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 4, 2015 at 11:38 AM, Gergo Tisza <span dir="ltr"><<a href="mailto:gtisza@wikimedia.org" target="_blank">gtisza@wikimedia.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Jun 4, 2015 at 11:23 AM, Jon Robson <span dir="ltr"><<a href="mailto:jrobson@wikimedia.org" target="_blank">jrobson@wikimedia.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Another thing I'd be interested in exploring is using JavaScript to write tests since a lot more devs are comfortable with JS than Ruby but I suspect this is a big undertaking?</div></blockquote><div><br></div><div>Re: browser test language, there has been some debate about this (both PHP and JS have mature gherkin-based tools, and most developers are more familiar with them than with Ruby), but the opinion of QA at the time was that a language which the browser testing community tends to be familiar with is better than a language the MediaWiki community tends to be familiar with.</div></div></div></div></blockquote><div><br></div><div>That's actually not true. We chose Ruby more than three years ago because: </div><div><br></div><div>* of all the candidate languages only Ruby and Python fully support the whole Selenium API.</div><div>* only Ruby has anything like the watir-webdriver API, a fully HTML5-compliant high level wrapper for Selenium that affords features we use every day in the WMF browser tests.</div><div>* only Ruby has a a canonical implementation of the Page Object design pattern in the page_object Ruby gem</div><div>* incidentally, we thought we'd make more use of RSpec custom matching features, and Dan still might</div><div>* Cucumber remains a great way to bring on newbie contributors from GSoC, OPW, etc. </div><div><br></div><div>Three years ago neither PHP nor Javascript had reasonable bindings for Selenium, and that remains true today.  </div><div><br></div><div>The WMF browser test tools are entirely 100% off-the-shelf NIH. That was a design goal from the start. </div></div></div></div>