<div dir="ltr">Hi Jagori, <br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 19, 2014 at 5:36 PM, jagori samajdar <span dir="ltr"><<a href="mailto:jagori79@gmail.com" target="_blank">jagori79@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 dir="ltr"><div><div><ul><li>at should I set for MEDIAWIKI_API_URL?It's prompting me to specify this env variable before running.<br>
</li></ul></div></div></div></blockquote><div><br></div><div>Generally the api URL is <yourwiki>/w/api.php . For example "export MEDIAWIKI_API_URL=<a href="http://en.wikipedia.beta.wmflabs.org/w/api.php">http://en.wikipedia.beta.wmflabs.org/w/api.php</a>"</div>
<div> </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 dir="ltr"><div><div><ul>
<li>Also where are the steps under Background usually defined?By that am referring to links.feature file Background: Given I go to the "Links VisualEditor Test" page with content "Links VisualEditor Test" I was trying to have a look at the step definition file for this</li>
<li>Also,was seeing under env.rb :mediawiki_api is a required gem.What purpose does it serve?I know mediawiki_selenium gem has code for login and some shared steps but I wasn't clear with the mediawiki_api.Also I couldn't locate anything related to this on github.</li>
</ul><div><br></div></div></div></div></blockquote><div><br></div><div>Take a look at <a href="https://www.mediawiki.org/wiki/Browser_testing/shared_features#Create_page_at_run_time_via_API">https://www.mediawiki.org/wiki/Browser_testing/shared_features#Create_page_at_run_time_via_API</a> <br>
</div><div><br></div><div>Code is at <a href="https://github.com/wikimedia/mediawiki-ruby-api">https://github.com/wikimedia/mediawiki-ruby-api</a></div><div><br></div></div></div></div>