<div dir="ltr">Hi Željko, thanks a lot! I have some issues with how the environment variables are handled, I left some comments in gerrit. There is one other thing that should be changed if possible: we have two different modes of the test (upload new file, upload existing file) which hit different code paths in PHP, so the script should look like this:<div>

<br></div><div><font face="courier new, monospace">...</font></div><div><font face="courier new, monospace">DEV/bin/python tests/api/upload-wizard_tests.py --username "Selenium_user" --api_url "<a href="https://commons.wikimedia.org/w/api.php" target="_blank">https://commons.wikimedia.org/w/api.php</a>"<br>

</font></div><div><font face="courier new, monospace">DEV/bin/python tests/api/upload-wizard_tests.py --gen_new_image --username "Selenium_user" --api_url "<a href="https://commons.wikimedia.org/w/api.php" target="_blank">https://commons.wikimedia.org/w/api.php</a>"<br>

</font></div><div><br></div><div>best</div><div>Gergő</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jan 27, 2014 at 8:59 AM, Željko Filipin <span dir="ltr"><<a href="mailto:zfilipin@wikimedia.org" target="_blank">zfilipin@wikimedia.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div class="im">On Fri, Jan 24, 2014 at 11:53 PM, Aaron Arcos <span dir="ltr"><<a href="mailto:aarcos.wiki@gmail.com" target="_blank">aarcos.wiki@gmail.com</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><span style="font-family:arial,sans-serif;font-size:13px">Just <a href="https://gerrit.wikimedia.org/r/#/c/109335/" target="_blank">changed</a> the script to support environment variables (</span><font face="arial, sans-serif">MEDIAWIKI_USER and MEDIAWIKI_PASSWORD).</font></div>




</blockquote><div><br></div></div><div>Thanks, but I have forgot that since we use different users and passwords at different sites we need something a bit more complicated. I did my best to implement the change, but my Python-fu is not the best[1].</div>
<div class="im">

<div><br></div><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><font face="arial, sans-serif">Also, we would like to get this script to run against every beta build.</font></div></blockquote></div></div><div class="gmail_extra"><br></div><div class="gmail_extra">I am not sure I understood you. I have created two Jenkins jobs[2]. One runs at <a href="http://commons.wikimedia.org" target="_blank">commons.wikimedia.org</a>, the other one at <a href="http://commons.wikimedia.beta.wmflabs.org" target="_blank">commons.wikimedia.beta.wmflabs.org</a>. The first one runs every 6 hours, the second one pulls Git repository every minute and runs if there are new commits. Both jobs ping #wikimedia-qa IRC channel every time the job finishes (pass or fail). Also, both jobs send e-mail notification (to <a href="mailto:aarcos.wiki@gmail.com" target="_blank">aarcos.wiki@gmail.com</a> <a href="mailto:cmcmahon@wikimedia.org" target="_blank">cmcmahon@wikimedia.org</a> <a href="mailto:gtisza@wikimedia.org" target="_blank">gtisza@wikimedia.org</a> <a href="mailto:zfilipin@wikimedia.org" target="_blank">zfilipin@wikimedia.org</a>) if the job fails.</div>


<div class="gmail_extra"><br></div><div class="gmail_extra">Let me know if something needs to be changed[3].</div><div class="gmail_extra"><br></div>Željko</div><div class="gmail_extra">--</div><div class="gmail_extra">1: <a href="https://gerrit.wikimedia.org/r/#/c/109661" target="_blank">https://gerrit.wikimedia.org/r/#/c/109661</a></div>



<div class="gmail_extra">2: <a href="https://wmf.ci.cloudbees.com/view/r-uw/" target="_blank">https://wmf.ci.cloudbees.com/view/r-uw/</a></div><div class="gmail_extra">3: <a href="https://gerrit.wikimedia.org/r/#/c/109680/" target="_blank">https://gerrit.wikimedia.org/r/#/c/109680/</a></div>



</div>
</blockquote></div><br></div>