[rspec-users] [Cucumber] after feature hook?

2009-01-05 Thread aidy lewis
Hi, Is there a hook or a method to execute some code after a whole feature has run or will I need to embed that in a 'Then'? Regards Aidy ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] [Cucumber] after feature hook?

2009-01-05 Thread aidy lewis
Hi Joe, Aslak 2009/1/5 Joseph Wilk : > aidy lewis wrote: >> >> Hi Alsak, >> >> I am finding it difficult to separate my Acceptance Tests unless I >> have lengthy scenarios. >> >> One scenario would be one sequence of action etc - until a goal is >> reached. >> >> At the end of the feature, I would

Re: [rspec-users] [Cucumber] after feature hook?

2009-01-05 Thread Joseph Wilk
aidy lewis wrote: Hi, Is there a hook or a method to execute some code after a whole feature has run or will I need to embed that in a 'Then'? There are currently no before/after feature hooks. http://github.com/aslakhellesoy/cucumber/wikis/hooks Also if you want something to happen befor

Re: [rspec-users] [Cucumber] after feature hook?

2009-01-05 Thread aslak hellesoy
On Mon, Jan 5, 2009 at 2:33 PM, aidy lewis wrote: > Hi, > > Is there a hook or a method to execute some code after a whole feature > has run or will I need to embed that in a 'Then'? > May I ask what you're planning to use it for? Aslak > > Regards > > Aidy > ___

Re: [rspec-users] [Cucumber] after feature hook?

2009-01-05 Thread aidy lewis
Hi Alsak, I am finding it difficult to separate my Acceptance Tests unless I have lengthy scenarios. One scenario would be one sequence of action etc - until a goal is reached. At the end of the feature, I would like the browser to close: If the browser closes on each scenario - they I have to g

Re: [rspec-users] [Cucumber] after feature hook?

2009-01-05 Thread Joseph Wilk
aidy lewis wrote: Hi Alsak, I am finding it difficult to separate my Acceptance Tests unless I have lengthy scenarios. One scenario would be one sequence of action etc - until a goal is reached. At the end of the feature, I would like the browser to close: So you are using scenarios to get th

Re: [rspec-users] [Cucumber] after feature hook?

2009-01-05 Thread aslak hellesoy
On Mon, Jan 5, 2009 at 3:12 PM, aidy lewis wrote: > Hi Alsak, > > I am finding it difficult to separate my Acceptance Tests unless I > have lengthy scenarios. > > One scenario would be one sequence of action etc - until a goal is reached. > > At the end of the feature, I would like the browser to

[rspec-users] cucumber, finding a row in a table

2009-01-05 Thread James Byrne
I generate the following html on the page in question Just An Entity CORP 01 Show Entity Edit Entity Destroy Entity I have this step definition: When /I delete the "(.*)" entity/ do |row| visits entities_url my_entity = Entity.find_by_entity_name(

Re: [rspec-users] cucumber, finding a row in a table

2009-01-05 Thread Zach Dennis
On Mon, Jan 5, 2009 at 4:18 PM, James Byrne wrote: > I generate the following html on the page in question > > >Just An Entity > >CORP >01 >Show Entity >Edit Entity >Destroy Entity > > > > I have this step definition: > > When /I delete the "(.*)" entity/ do

Re: [rspec-users] Rspec Rails high overhead

2009-01-05 Thread Reza Primardiansyah
Aslak, The best time I get is 6.3 seconds. I'm using "time script/server" command and hitting Ctrl-C immediately after I see "** Use CTRL-C to stop." On Sun, Jan 4, 2009 at 9:43 PM, aslak hellesoy wrote: > > > On Sun, Jan 4, 2009 at 3:58 AM, Reza Primardiansyah < > reza.primardians...@gmail.com>

Re: [rspec-users] Cucumber speed tips

2009-01-05 Thread Luke Melia
On Jan 4, 2009, at 7:08 PM, Ben Mabey wrote: I'm by no means a Selenium expert so I may be making some incorrect assumptions. I thought that it was possible with Selenium to have different sessions open concurrently for the same selenium server. (i.e. have more than one SeleniumDriver/brow

Re: [rspec-users] Cucumber speed tips

2009-01-05 Thread Mischa Fierer
Josh, Ben & Luke -- This is great stuff, thanks a bunch. Over at CaptainU we are probably going to get into the thousands in the next few weeks or so, so speed is a serious issue. I'm going to work on a longer blog post about this, will let you guys know when finished. Best, M On Mon, Jan 5, 20