<div dir="ltr"><div class="gmail_extra">On Mon, Oct 21, 2013 at 4:10 PM, Rachel Thomas <span dir="ltr"><<a href="mailto:rachelqa99@gmail.com" target="_blank">rachelqa99@gmail.com</a>></span> wrote:<br><div class="gmail_quote">

<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>A related question:  What are the steps to reproduce the tests at Sauce Labs?  It doesn't seem to work for me.  To start with, I am logged into Sauce Labs with my own account (rachelqa99).  From Cloudbees, I click on the link for the failed test [1] to take me to Sauce Labs.  Then click Resources, All platforms, and put in platform and browser I want to use.  Then click Manual test.  From there I put in the URL of the saucelabs failed job.[2]  This doesnt execute the test, but shows me the SauceLabs login screen.<br>



</div>Can you give me the correct steps to run these tests off of SauceLabs?  </blockquote></div><br>Hi Rachel,</div><div class="gmail_extra"><br></div><div class="gmail_extra">apologies for the late reply, I was really busy this week.</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">If you want to run the test manually (clicking with the mouse) at Sauce Labs, just log in there (they have free and open source accounts), click "new interactive session", pick a OS/browser/version/resolution combination and test. Warning: it is really slow.</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">If you want to run a Selenium test so the browser opens at Sauce Labs (instead of opening at your machine), just set these environment variables in your command prompt/terminal:</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">Linux/Unix/Mac<br></div><div class="gmail_extra"><div class="gmail_extra">export SAUCE_ONDEMAND_USERNAME=(username)</div><div class="gmail_extra">export SAUCE_ONDEMAND_ACCESS_KEY=(key)</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">Windows<br></div><div class="gmail_extra"><div class="gmail_extra">set SAUCE_ONDEMAND_USERNAME=(username)</div><div class="gmail_extra">set SAUCE_ONDEMAND_ACCESS_KEY=(key)</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">Replace "(username)" and "(key)" with your Sauce Labs username and key. You can get the key at <a href="https://saucelabs.com/account">https://saucelabs.com/account</a> at the bottom-left part of the screen.</div>

<div class="gmail_extra"><br></div>If you want to run "Go to Log in page" scenario[1] for example, just run it with this:</div><div class="gmail_extra"><br></div><div class="gmail_extra">bundle exec cucumber features/login.feature:18<br>

</div><div class="gmail_extra"><br></div><div class="gmail_extra">Let me know if you have any questions.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Željko</div><div class="gmail_extra">--</div><div class="gmail_extra">

1: <a href="https://github.com/wikimedia/qa-browsertests/blob/master/features/login.feature#L18">https://github.com/wikimedia/qa-browsertests/blob/master/features/login.feature#L18</a></div></div></div>