To echo what Murray said its most likely a slow boot time for your app. Especially if it's been around a while and has a number of included gems. <div><br></div><div>There are a couple of things you can do to establish this.  <br>
</div><div><div><br></div><div>First of all try a scenario that has a step that does nothing. </div><div><br></div><div>If this is taking a significant amount of time you can ease the startup costs using spring or Zeus as suggested. </div>
<div><br></div><div>If this doesn't seem to be too bad, you could try targeting a static page in your public directory. If this is significantly slower the issue is probably something around the web driver you are using. (Make sure you are setting this scenario up in the same way as your slow scenario, the same tags etc).</div>
<div><br></div><div>If the static page isn't too bad, it's likely something around rendering the actual page or setting up the context for the scenario that's slow. </div><div><br></div><div>Steve<span></span><br>
<br>On Friday, 14 March 2014, Murray Steele <<a href="mailto:murray.steele@gmail.com">murray.steele@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">A classic problem would be that it’s not cucumber, but the app itself has a long boot up period.  If the app takes a while to start up as a normal server or console then perhaps look at tools like spring(<a href="https://github.com/rails/spring" target="_blank">https://github.com/rails/spring</a>) or zeus(<a href="https://github.com/burke/zeus" target="_blank">https://github.com/burke/zeus</a>) to pre-load the environment so the tests don’t take the boot up hit to run.</div>

<div class="gmail_extra"><br><br><div class="gmail_quote">On 14 March 2014 12:41, Jon Wood <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','jon@ninjagiraffes.co.uk');" target="_blank">jon@ninjagiraffes.co.uk</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">Hello El Rug,<div><br></div><div>I'm currently at my wits end with a Cucumber suite, but I also don't have any decent ideas on how to improve it. Running a really simple feature which loads a page and asserts some content is found currently takes over two minutes, which as I'm sure you can imagine makes doing BDD properly quite awkward.</div>


<div><br></div><div>To give a little context this is a Rails 2.3 application, running on Ruby 1.8. Upgrading to a newer version of Ruby is in the backlog, but isn't a viable option right now.</div><div><br></div><div>


So, does anyone have any tips on speeding things up, or even just working out where I should start working to speed them up?</div><div><br></div><div>Thanks,</div><div>Jon</div></div>
<br>_______________________________________________<br>
Chat mailing list<br>
<a href="javascript:_e(%7B%7D,'cvml','Chat@lists.lrug.org');" target="_blank">Chat@lists.lrug.org</a><br>
<a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" target="_blank">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br>
<br></blockquote></div><br></div>
</blockquote></div></div><br><br>-- <br>/tooky<br>